From c564834cdc4554c601ad6d23a17a4b84ab95953d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 May 2008 16:03:10 -0500 Subject: Teach run-all-tests mode to only test enabled commands. --- scripts/test.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts/test.sh') diff --git a/scripts/test.sh b/scripts/test.sh index 1833682f..8a080dbf 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -7,7 +7,7 @@ mkdir -p testdir if [ -z "$OLD" ] then - make install_flat PREFIX=testdir + make install_flat PREFIX=testdir || exit 1 fi cd testdir @@ -25,6 +25,12 @@ then else for i in "$TOPDIR"/scripts/test/*.test do - . $i + CMDNAME="$(echo "$i" | sed 's@.*/\(.*\)\.test@\1@')" + if [ -h $CMDNAME ] + then + . $i + else + echo "$CMDNAME disabled" + fi done fi -- cgit v1.2.3