Get "make check" ($srcdir) to work with the new testsuite.
authorRob Landley <rob@landley.net>
Tue, 20 Sep 2005 18:19:34 +0000 (18:19 -0000)
committerRob Landley <rob@landley.net>
Tue, 20 Sep 2005 18:19:34 +0000 (18:19 -0000)
testsuite/runtest

index 6e43fce8e401548528c22e0ce87d76b0fbe4a1e8..7411aec6487aae72df0546d3ac9d4fa0526b9d3a 100755 (executable)
@@ -90,6 +90,7 @@ else
 fi
 
 for applet in $applets; do
+       if [ "$applet" == links ]; then continue; fi
        if [ "$applet" != CVS -a -d "$srcdir/$applet" ]; then
                if run_applet_tests $applet; then
                        :
@@ -102,8 +103,8 @@ for applet in $applets; do
        then
                mkdir links 2>/dev/null
                rm -f links/"$applet"
-               ln -s ../../busybox links/"$applet"
-               PATH=links:$PATH ./"$applet".tests
+               ln -s ${bindir:-../..}/busybox links/"$applet"
+               PATH="$srcdir:$PATH" COMMAND="links/$applet" "${srcdir:-.}/$applet".tests
                if [ $? -ne 0 ]; then status=1; fi
        fi