summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-19 13:42:53 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-19 16:34:14 +1000
commit4e51bf1ffdf55b8292383415bcc23803c8a56bc9 (patch)
treee9cc10c52412cae4b1518ee04c2bc117ec26a03d /buildtools
parent59fa1e1890e0a007f56776d9539bf3f1ce074a34 (diff)
downloadsamba-4e51bf1ffdf55b8292383415bcc23803c8a56bc9.tar.gz
samba-4e51bf1ffdf55b8292383415bcc23803c8a56bc9.tar.bz2
samba-4e51bf1ffdf55b8292383415bcc23803c8a56bc9.zip
build: expanded testwaf to include cross-compiling and python versions
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/testwaf.sh42
1 files changed, 31 insertions, 11 deletions
diff --git a/buildtools/testwaf.sh b/buildtools/testwaf.sh
index 00e37c6a16..5f24bdddda 100755
--- a/buildtools/testwaf.sh
+++ b/buildtools/testwaf.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+set -e
+set -x
+
d=$(dirname $0)
cd $d/..
@@ -15,28 +18,45 @@ echo "testing in dirs $tests"
for d in $tests; do
echo "`date`: testing $d"
- pushd $d || exit 1
+ pushd $d
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
+ waf dist
+ waf configure -C --enable-developer --prefix=$PREFIX
+ time waf build
+ time waf build
+ waf install
+ waf distcheck
case $d in
"source4/lib/ldb")
- ldd bin/ldbadd || exit 1
+ ldd bin/ldbadd
;;
"lib/replace")
- ldd bin/replace_testsuite || exit 1
+ ldd bin/replace_testsuite
;;
"lib/talloc")
- ldd bin/talloc_testsuite || exit 1
+ ldd bin/talloc_testsuite
;;
"lib/tdb")
- ldd bin/tdbtool || exit 1
+ ldd bin/tdbtool
;;
esac
popd
done
+
+echo "testing python portability"
+pushd lib/talloc
+#versions="python2.4 python2.5 python2.6 python3.0 python3.1"
+versions="python2.4 python2.5 python2.6"
+for p in $versions; do
+ echo "Testing $p"
+ $p ../../buildtools/bin/waf configure -C --enable-developer --prefix=$PREFIX
+ $p ../../buildtools/bin/waf build install
+done
+popd
+
+echo "testing cross compiling"
+pushd lib/talloc
+CC=arm-linux-gnu-gcc ./configure -C --prefix=$PREFIX --cross-compile --cross-execute='qemu-arm-static -L /usr/arm-linux-gnu'
+make && make install
+popd