s3:smbd: implement fsctl_network_iface_info
[kai/samba-autobuild/.git] / buildtools / testwaf.sh
index 5f24bdddda829305d696ae3e919e9a8931c51081..127e52589103e455423ccbc24c464d43540df9cd 100755 (executable)
@@ -11,7 +11,7 @@ PREFIX=$HOME/testprefix
 if [ $# -gt 0 ]; then
     tests="$*"
 else
-    tests="lib/replace lib/talloc lib/tevent lib/tdb source4/lib/ldb"
+    tests="lib/replace lib/talloc lib/tevent lib/tdb lib/ldb"
 fi
 
 echo "testing in dirs $tests"
@@ -22,13 +22,12 @@ for d in $tests; do
     rm -rf bin
     type waf
     waf dist
-    waf configure -C --enable-developer --prefix=$PREFIX
-    time waf build
-    time waf build
-    waf install
-    waf distcheck
+    ./configure -C --enable-developer --prefix=$PREFIX
+    time make
+    make install
+    make distcheck
     case $d in
-       "source4/lib/ldb")
+       "lib/ldb")
            ldd bin/ldbadd
            ;;
        "lib/replace")
@@ -46,9 +45,13 @@ 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"
+versions="python2.4 python2.5 python2.6 python3.0 python3.1"
 for p in $versions; do
+    ret=$(which $p || echo "failed")
+    if [ $ret = "failed" ]; then
+        echo "$p not found, skipping"
+        continue
+    fi
     echo "Testing $p"
     $p ../../buildtools/bin/waf configure -C --enable-developer --prefix=$PREFIX
     $p ../../buildtools/bin/waf build install
@@ -57,6 +60,11 @@ 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
+ret=$(which arm-linux-gnueabi-gcc || echo "failed")
+if [ $ret != "failed" ]; then
+    CC=arm-linux-gnueabi-gcc ./configure -C --prefix=$PREFIX  --cross-compile --cross-execute='runarm'
+    make && make install
+else
+    echo "Cross-compiler not installed, skipping test"
+fi
 popd