summaryrefslogtreecommitdiff
path: root/source3/script/tests/selftest.sh
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-08 20:38:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:19 -0500
commit4a83c77c95206b35e6eba246918f5b5cf073b398 (patch)
tree3d8958e89f330549d130adccf243c709120c3024 /source3/script/tests/selftest.sh
parent0e66bafd47df4712666a022f7c4ad04faef7ac3c (diff)
downloadsamba-4a83c77c95206b35e6eba246918f5b5cf073b398.tar.gz
samba-4a83c77c95206b35e6eba246918f5b5cf073b398.tar.bz2
samba-4a83c77c95206b35e6eba246918f5b5cf073b398.zip
r19170: use a very clever trick to pass the binary name to the
gdb_backtrace script, I never noticed that %$(envvar) exists... Thanks to Bjoern Jacke for the suggestion! metze (This used to be commit 12a37bab3eafdabeb4f0dc23254bdec41860cd87)
Diffstat (limited to 'source3/script/tests/selftest.sh')
-rwxr-xr-xsource3/script/tests/selftest.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh
index 80efb68f6a..f4dcee1a7d 100755
--- a/source3/script/tests/selftest.sh
+++ b/source3/script/tests/selftest.sh
@@ -106,7 +106,7 @@ cat >$CONFFILE<<EOF
[global]
netbios name = TORTURE_6
interfaces = $TORTURE_INTERFACES
- panic action = $SCRIPTDIR/gdb_backtrace %d
+ panic action = $SCRIPTDIR/gdb_backtrace %d %\$(MAKE_TEST_BINARY)
include = $COMMONCONFFILE
EOF
@@ -123,7 +123,7 @@ cat >$SERVERCONFFILE<<EOF
netbios name = $SERVER
interfaces = $SERVER_IP/8
bind interfaces only = yes
- panic action = $SCRIPTDIR/gdb_backtrace %d
+ panic action = $SCRIPTDIR/gdb_backtrace %d %\$(MAKE_TEST_BINARY)
include = $COMMONCONFFILE
; Necessary to add the build farm hacks
@@ -174,6 +174,9 @@ export NMBD_TEST_LOG
SMBD_TEST_LOG="$PREFIX/smbd_test.log"
export SMBD_TEST_LOG
+MAKE_TEST_BINARY=""
+export MAKE_TEST_BINARY
+
# start off with 0 failures
failed=0
export failed