selftest: move gdb_* and valgrind_* scripts to selftest/
authorStefan Metzmacher <metze@samba.org>
Tue, 28 Oct 2008 11:20:59 +0000 (12:20 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 Oct 2008 11:20:59 +0000 (12:20 +0100)
metze

selftest/gdb_backtrace [moved from source4/script/gdb_backtrace with 100% similarity]
selftest/gdb_backtrace_test.c [moved from source4/script/gdb_backtrace_test.c with 100% similarity]
selftest/gdb_run [moved from source4/script/gdb_run with 100% similarity]
selftest/selftest.pl
selftest/target/Samba4.pm
selftest/valgrind_run [moved from source4/script/valgrind_run with 100% similarity]
source4/selftest/config.mk

similarity index 100%
rename from source4/script/gdb_run
rename to selftest/gdb_run
index 2484bd0687641216beb7c4a31fe24cae21f74284..aa99b2ed6fbb11bd6904c430979f16b3028189d2 100755 (executable)
@@ -573,7 +573,7 @@ sub write_clientconf($$)
        print CF "
        private dir = $prefix_abs/client/private
        name resolve order = bcast
-       panic action = $srcdir_abs/script/gdb_backtrace \%PID\% \%PROG\%
+       panic action = $RealBin/gdb_backtrace \%PID\% \%PROG\%
        max xmit = 32K
        notify:inotify = false
        ldb:nosync = true
index 9364008ee2fc6b70e8413587e406104e7fc5d7cd..8c79a31448836153d4f7b5a53e3e65c2101750e8 100644 (file)
@@ -562,7 +562,7 @@ sub provision($$$$$$)
        name resolve order = bcast
        interfaces = $interfaces
        tls dh params file = $tlsdir/dhparms.pem
-       panic action = $srcdir/script/gdb_backtrace \%PID% \%PROG%
+       panic action = $RealBin/gdb_backtrace \%PID% \%PROG%
        wins support = yes
        server role = $server_role
        max xmit = 32K
index 43c5855d3aefb072b86edb8cad41fb93c9b29a48..c5f7c5adb43ac5edbdf953ca08dbaf9cc27f0cef 100644 (file)
@@ -58,30 +58,31 @@ test-%::
 valgrindtest:: valgrindtest-all
 
 valgrindtest-quick:: all
-       SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
+       SMBD_VALGRIND="xterm -n server -e $(selftestdir)/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
        VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
        $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
 
 valgrindtest-all:: everything
-       SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
+       SMBD_VALGRIND="xterm -n server -e $(selftestdir)/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
        VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
 
 valgrindtest-env:: everything
-       SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
+       SMBD_VALGRIND="xterm -n server -e $(selftestdir)/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
        VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
 
 gdbtest:: gdbtest-all
 
 gdbtest-quick:: all
-       SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
+       SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
        $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
 
 gdbtest-all:: everything
-       SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
+       SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
 
 gdbtest-env:: everything
-       SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
+       SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
+