diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-17 07:37:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:51 -0500 |
commit | aff28fa2271736945b54dd140f11a4eb567b5b74 (patch) | |
tree | 84bb72350f0108300bfdb6444903779c9073827f /source4/script | |
parent | cd8cb33d3a897f0a1d84f75e9de09b70cca95536 (diff) | |
download | samba-aff28fa2271736945b54dd140f11a4eb567b5b74.tar.gz samba-aff28fa2271736945b54dd140f11a4eb567b5b74.tar.bz2 samba-aff28fa2271736945b54dd140f11a4eb567b5b74.zip |
r6852: implement an idea from kinkie to make the 'make test' target automatically kill smbd
when finished, using a fifo
this makes 'make test' much safer for build farm usage
(This used to be commit a33a424d5bdb24797a83097b8ae6b9ca70793295)
Diffstat (limited to 'source4/script')
-rwxr-xr-x | source4/script/tests/selftest.sh | 17 |
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 |