runtest: search also for Applicationtests
André Hentschel
nerv at dawncrow.de
Thu Feb 11 07:06:41 CST 2010
So it works with cmd.exe_test.exe.so now
---
tools/runtest | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/tools/runtest b/tools/runtest
index 86f8680..b7091ca 100755
--- a/tools/runtest
+++ b/tools/runtest
@@ -6,6 +6,7 @@
#
# Copyright 2002 Alexandre Julliard
# Copyright 2002 Dimitrie O. Paun
+# Copyright 2010 André Hentschel
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -96,13 +97,19 @@ if [ -z "$program" ]; then
parent_path=`dirname "$working_path"`
parent_basename=`basename "$parent_path"`
program="${parent_basename}_test.exe.so"
+ programexe="${parent_basename}.exe_test.exe.so"
elif [ -d "tests" ]; then
program="tests/${working_basename}_test.exe.so"
+ programexe="tests/${working_basename}.exe_test.exe.so"
fi
fi
if [ ! -f "$program" ]; then
- echo "Can't find the test program, use the -p argument to specify one" 1>&2
- usage
+ if [ ! -f "$programexe" ]; then
+ echo "Can't find the test program, use the -p argument to specify one" 1>&2
+ usage
+ else
+ program=$programexe
+ fi
fi
# check/detect topobjdir
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list