[1/2] runtest: Modified the default program so that it might find the test program. (try 2)

Dylan Smith dylan.ah.smith at gmail.com
Tue Oct 7 11:17:39 CDT 2008

Previously the test program was found using the infile parameter.  In other
words, if there is a test in editor.c, it will look for editor.exe.  Of
course this will never find the test program since they all have the form
$(dllname)_test.exe.so or $(dllname)_crosstest.exe

I modified it to look at the current directory to see if it is in tests
directory, or if tests was in the working directory.  This means that
someone can cd to dlls/* or dlls/*/tests, and then not have to specify the
test program with -p.

Update for try 2: Tried to keep the script portable by using the pwd
command instead of the $PWD environment variable, and avoided using
the $() construct.  I also made sure the path variables were quoted to
allow spaces.
 tools/runtest |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-1-2-runtest-Modified-the-default-program-so-th.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081007/a4ef7c47/attachment.txt 

More information about the wine-patches mailing list