libcli/named_pipe_auth: we need to hide length of the message mode header from the...
[Samba/gebeck_regimport.git] / buildtools / testwaf.sh
blobb0771bb4ad408d224a90585bfc4b8ce56ee7706e
1 #!/bin/bash
3 set -e
4 set -x
6 d=$(dirname $0)
8 cd $d/..
9 PREFIX=$HOME/testprefix
11 if [ $# -gt 0 ]; then
12 tests="$*"
13 else
14 tests="lib/replace lib/talloc lib/tevent lib/tdb source4/lib/ldb"
17 echo "testing in dirs $tests"
19 for d in $tests; do
20 echo "`date`: testing $d"
21 pushd $d
22 rm -rf bin
23 type waf
24 waf dist
25 waf configure -C --enable-developer --prefix=$PREFIX
26 time waf build
27 time waf build
28 waf install
29 waf distcheck
30 case $d in
31 "source4/lib/ldb")
32 ldd bin/ldbadd
34 "lib/replace")
35 ldd bin/replace_testsuite
37 "lib/talloc")
38 ldd bin/talloc_testsuite
40 "lib/tdb")
41 ldd bin/tdbtool
43 esac
44 popd
45 done
47 echo "testing python portability"
48 pushd lib/talloc
49 #versions="python2.4 python2.5 python2.6 python3.0 python3.1"
50 versions="python2.4 python2.5 python2.6"
51 for p in $versions; do
52 echo "Testing $p"
53 $p ../../buildtools/bin/waf configure -C --enable-developer --prefix=$PREFIX
54 $p ../../buildtools/bin/waf build install
55 done
56 popd
58 echo "testing cross compiling"
59 pushd lib/talloc
60 CC=arm-linux-gnueabi-gcc ./configure -C --prefix=$PREFIX --cross-compile --cross-execute='runarm'
61 make && make install
62 popd