build: better waf test script
authorAndrew Tridgell <tridge@samba.org>
Sun, 28 Mar 2010 04:39:16 +0000 (15:39 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:12 +0000 (20:27 +1000)
buildtools/testwaf.sh

index 16c3198f08039e3935cd618509f0f92dbf260ad2..3be5ef96a976db5c632b85f94d8218f5b2e9e077 100755 (executable)
@@ -5,7 +5,15 @@ d=$(dirname $0)
 cd $d/..
 PREFIX=$HOME/testprefix
 
-for d in lib/replace lib/talloc lib/tevent lib/tdb source4/lib/ldb; do
+if [ $# -gt 0 ]; then
+    tests="$*"
+else
+    tests="lib/replace lib/talloc lib/tevent lib/tdb source4/lib/ldb"
+fi
+
+echo "testing in dirs $tests"
+
+for d in $tests; do
     echo "`date`: testing $d"
     pushd $d || exit 1
     rm -rf bin
@@ -14,6 +22,19 @@ for d in lib/replace lib/talloc lib/tevent lib/tdb source4/lib/ldb; do
     time waf build || exit 1
     time waf build || exit 1
     waf install || exit 1
+    case $d in
+       "source4/lib/ldb")
+           ldd bin/ldbadd || exit 1
+           ;;
+       "lib/replace")
+           ldd bin/replace_testsuite || exit 1
+           ;;
+       "lib/talloc")
+           ldd bin/talloc_testsuite || exit 1
+           ;;
+       "lib/tdb")
+           ldd bin/tdbtool || exit 1
+           ;;
+    esac
     popd
 done
-ldd source4/lib/ldb/bin/ldbadd