1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/buildtools/testwaf.sh
2010-04-06 20:27:26 +10:00

43 lines
789 B
Bash
Executable File

#!/bin/bash
d=$(dirname $0)
cd $d/..
PREFIX=$HOME/testprefix
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
type waf
waf dist || exit 1
waf configure -C --enable-developer --prefix=$PREFIX || exit 1
time waf build || exit 1
time waf build || exit 1
waf install || exit 1
waf distcheck || 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