r9813: Conver testsuite for samba3sam module to EJS
[samba.git] / source / script / tests / selftest.sh
index 673e6a06a8f1df0893f5b4541aeef0d4bc14e898..82cac6459f8cad1a1102a845bad268e0103a59c9 100755 (executable)
@@ -88,11 +88,14 @@ cat >$CONFFILE<<EOF
        ncalrpc dir = $NCALRPCDIR
        lock dir = $LOCKDIR
        setup directory = $SRCDIR/setup
-        js include = $SRCDIR/scripting/libjs
+       js include = $SRCDIR/scripting/libjs
        name resolve order = bcast
        interfaces = lo*
        tls enabled = $TLS_ENABLED
        panic action = $SRCDIR/script/gdb_backtrace %PID% %PROG%
+       wins support = yes
+       domain master = yes
+       domain logons = yes
 
 [tmp]
        path = $TMPDIR
@@ -104,10 +107,10 @@ cat >$CONFFILE<<EOF
 [cifs]
        read only = no
        ntvfs handler = cifs
-        cifs:server = localhost
-        cifs:user = $USERNAME
-        cifs:password = $PASSWORD
-        cifs:domain = $DOMAIN
+       cifs:server = localhost
+       cifs:user = $USERNAME
+       cifs:password = $PASSWORD
+       cifs:domain = $DOMAIN
        cifs:share = tmp
 EOF
 
@@ -145,4 +148,16 @@ END=`date`
 echo "START: $START ($0)";
 echo "END:   $END ($0)";
 
+# if there were any valgrind failures, show them
+count=`find $PREFIX -name 'valgrind.log*' | wc -l`
+if [ "$count" != 0 ]; then
+    for f in $PREFIX/valgrind.log*; do
+       if [ -s $f ]; then
+           echo "VALGRIND FAILURE";
+           failed=`expr $failed + 1`
+           cat $f
+       fi
+    done
+fi
+
 teststatus $0 $failed