]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: check for 'make check'
authorKarel Zak <kzak@redhat.com>
Mon, 30 Jul 2012 16:00:33 +0000 (18:00 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Jul 2012 16:00:33 +0000 (18:00 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/run.sh

index 43aae83062521f176b562706a0c68f8782718614..15bce71ed1ffd9cd3664c3971be4c42c95647f1a 100755 (executable)
@@ -57,9 +57,19 @@ if [ -n "$SUBTESTS" ]; then
        done
 else
        # all tests
+       if [ ! -f "$TS_TOPDIR/../test_tt" ]; then
+               echo "Tests not compiled! Run 'make check' to fix the problem."
+               exit 1
+       fi
+       if [ ! -f "$TS_TOPDIR/commands.sh" ]; then
+               echo "Not ready to run tests! Run './configure' or './config.status' to fix the problem."
+               exit 1
+       fi
+
        comps=$(find $TS_TOPDIR/ts/ -type f -perm /a+x -regex ".*/[^\.~]*" |  sort)
 fi
 
+
 echo
 echo "-------------------- util-linux regression tests --------------------"
 echo