Allow /build/<checksum>
[amitay/build-farm.git] / m104.fns
index a5931584d08cbb6218f3e7470e2cadee51c6c980..6e4216315f49d0668c9ca326e975143e0c7fd710 100644 (file)
--- a/m104.fns
+++ b/m104.fns
@@ -3,7 +3,7 @@
 
 export CC="gcc"
 export CFLAGS=""
-export CPPFLAGS="-D_POSIX_C_SOURCE=200112L -D_SYSV"
+export CPPFLAGS="-D_POSIX_C_SOURCE=200112L -D_SYSV -D_VOS_EXTENDED_NAMES"
 export MAXTIME=14400
 export TIMELIMIT_FLAGS="-D_POSIX_C_SOURCE=200112L"
 export noclean="yes"
@@ -35,15 +35,17 @@ action_configure() {
        echo "The following differences from standard POSIX systems are"
        echo "essentially unfixable:"
        echo "      5. VOS has symbolic links not hard links. link() is a dummy."
-       echo "      6. VOS has a 32-character limit on file names, and a 256-char"
-       echo "         limit on pathnames."
+       echo "      6. VOS has a 256-character limit on pathnames."
        echo "      7. VOS does not implement shared libraries (no gcc -shared)."
        echo " "
        echo "Please contact Paul dot Green at stratus.com for further information."
        echo " "
-        if [ ! -x configure ]; then
-           ls -l configure
-           ./autogen.sh
+        if [ ! -x $srcdir/configure ]; then
+           ls -l $srcdir/configure
+           echo "$srcdir/configure is missing"
+           cstatus=255
+           echo "CONFIGURE STATUS: $cstatus"
+           return $cstatus;
        fi
        echo "CPPFLAGS=$CPPFLAGS"
        echo "CFLAGS=$CFLAGS"
@@ -54,15 +56,13 @@ action_configure() {
 # VOS: explicitly invoke bash here.
        ./timelimit $MAXTIME bash $srcdir/configure $config_and_prefix
        cstatus=$?
-       echo "CONFIGURE STATUS: $cstatus"
-       if [ -f config.h ]; then
-           echo "contents of config.h:"
-           cat config.h
-       fi
-       if [ -f include/config.h ]; then
-           echo "contents of include/config.h:"
-           cat include/config.h
+       if [ x"$cstatus" != x"0" ]; then
+               if [ -f config.log ]; then
+                       echo "contents of config.log:"
+                       cat config.log
+               fi
        fi
+       echo "CONFIGURE STATUS: $cstatus"
        return $cstatus;
 }
 
@@ -92,7 +92,7 @@ fetch_tree() {
                echo "skipping tree transfer"
        else
                fetchtree=$1
-               if rsync --exclude=autom4te.cache/ --exclude=.svn/ --delete-excluded -q --partial --timeout=200 -crlpz --delete --ignore-errors --exclude=granig* --exclude=lisa--* --exclude=distccmon-gnome* \
+               if rsync --exclude=autom4te.cache/ --exclude=.svn/ --exclude=.git/ --delete-excluded -q --partial --timeout=200 -crlpz --delete --ignore-errors \
                        samba.org::ftp/unpacked/$fetchtree/ $test_root/$fetchtree; then
                        echo "transferred $fetchtree OK"
                else
@@ -126,6 +126,6 @@ per_run_hook
 
 . common.fns
 
-test_tree samba_3_2_test source gcc
-#Skip Samba4 until we shorten file names
-#test_tree samba4 source gcc
+test_tree samba_3_current source gcc
+test_tree samba_3_next source gcc
+test_tree samba_3_master source gcc