summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-28 15:39:16 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:12 +1000
commit28a05bc1b0ff7e090753c9d8e248f00136fb491a (patch)
treed2bddf6d6b5b2a220cf747833e7d049902740700 /buildtools
parent29b1e8b70f3966c538929f4556c4a3b7ebb4a38d (diff)
downloadsamba-28a05bc1b0ff7e090753c9d8e248f00136fb491a.tar.gz
samba-28a05bc1b0ff7e090753c9d8e248f00136fb491a.tar.bz2
samba-28a05bc1b0ff7e090753c9d8e248f00136fb491a.zip
build: better waf test script
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/testwaf.sh25
1 files changed, 23 insertions, 2 deletions
diff --git a/buildtools/testwaf.sh b/buildtools/testwaf.sh
index 16c3198f08..3be5ef96a9 100755
--- a/buildtools/testwaf.sh
+++ b/buildtools/testwaf.sh
@@ -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