summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/tests/selftest.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index d1a60c02e8..f012c7c347 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -41,11 +41,14 @@ EOF
ADDARG="-s $CONFFILE"
-$SRCDIR/bin/smbd -s $CONFFILE -M single || exit 1
+rm -f smbd_test.fifo
+mkfifo smbd_test.fifo
+$SRCDIR/bin/smbd -d1 -s $CONFFILE -M single -i < smbd_test.fifo || exit 1 &
sleep 2
-$SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || exit 1
-$SRCDIR/script/tests/test_binding_string.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || exit 1
-$SRCDIR/script/tests/test_echo.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || exit 1
-$SRCDIR/script/tests/test_posix.sh //localhost/tmp $USERNAME $PASSWORD $ADDARG || exit 1
-$SRCDIR/bin/smbtorture $ADDARG ncalrpc: LOCAL-* || exit 1
-kill `cat $PIDDIR/smbd.pid`
+(
+ $SRCDIR/script/tests/test_rpc.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || exit 1
+ $SRCDIR/script/tests/test_binding_string.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || exit 1
+ $SRCDIR/script/tests/test_echo.sh localhost $USERNAME $PASSWORD $DOMAIN $ADDARG || exit 1
+ $SRCDIR/script/tests/test_posix.sh //localhost/tmp $USERNAME $PASSWORD $ADDARG || exit 1
+ $SRCDIR/bin/smbtorture $ADDARG ncalrpc: LOCAL-* || exit 1
+) 9>smbd_test.fifo