s3:test: use the blackbox subunit test driver in the net_registry tests.
authorMichael Adam <obnox@samba.org>
Tue, 15 Feb 2011 21:54:06 +0000 (22:54 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 16 Feb 2011 11:56:41 +0000 (12:56 +0100)
source3/script/tests/test_net_registry.sh

index 525e13a81118f0198c3af1c36034b4e46296923a..2d8a135eb551189eb611726c974b09169e4ea381 100755 (executable)
@@ -14,8 +14,8 @@ else
 fi
 
 test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
-incdir=`dirname $0`
-. $incdir/test_functions.sh
+incdir=`dirname $0`/../../../testprogs/blackbox
+. $incdir/subunit.sh
 }
 
 failed=0
@@ -420,11 +420,10 @@ conf_roundtrip()
     rm -r $DIR
 }
 
-CONF_FILES=${CONF_FILES:-$(find $SRCDIR/.. -name *.conf | xargs grep -l "\[global\]")}
+CONF_FILES=${CONF_FILES:-$(find $SRCDIR/ -name '*.conf' | xargs grep -l "\[global\]")}
 
 for conf_file in $CONF_FILES
 do
-    conf_file=${conf_file#$SRCDIR/}
     testit "conf_roundtrip $conf_file" \
        conf_roundtrip $conf_file \
        || failed=`expr $failed + 1`