2007-12-20 15:54:00 +01:00
TEST_FORMAT = plain
2007-12-22 00:47:44 -06:00
SELFTEST = $( LD_LIBPATH_OVERRIDE) $( PERL) $( srcdir) /selftest/selftest.pl --prefix= ${ selftest_prefix } \
2007-10-22 01:05:31 +02:00
--builddir= $( builddir) --srcdir= $( srcdir) \
--expected-failures= $( srcdir) /samba4-knownfail \
2007-12-20 15:54:00 +01:00
--format= $( TEST_FORMAT) \
2007-10-25 22:20:52 +02:00
--exclude= $( srcdir) /samba4-skip --testlist= "./selftest/samba4_tests.sh|" \
2007-10-22 01:05:31 +02:00
$( TEST_OPTIONS)
test : everything
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --immediate $( TESTS)
testone : everything
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --one $( TESTS)
test-swrap : everything
$( SELFTEST) --socket-wrapper --immediate $( TESTS)
test-swrap-pcap : everything
$( SELFTEST) --socket-wrapper-pcap --immediate $( TESTS)
test-swrap-keep-pcap : everything
$( SELFTEST) --socket-wrapper-keep-pcap --immediate $( TESTS)
test-noswrap : everything
$( SELFTEST) --immediate $( TESTS)
quicktest : all
$( SELFTEST) --quick --socket-wrapper --immediate $( TESTS)
quicktestone : all
$( SELFTEST) --quick --socket-wrapper --one $( TESTS)
testenv : everything
$( SELFTEST) --socket-wrapper --testenv
valgrindtest : valgrindtest -all
valgrindtest-quick : all
2007-12-22 00:47:48 -06:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/valgrind_run $( LD_LIBPATH_OVERRIDE) " \
2007-10-22 01:05:31 +02:00
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
$( SELFTEST) --quick --immediate --socket-wrapper $( TESTS)
valgrindtest-all : everything
2007-12-22 00:47:48 -06:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/valgrind_run $( LD_LIBPATH_OVERRIDE) " \
2007-10-22 01:05:31 +02:00
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
$( SELFTEST) --immediate --socket-wrapper $( TESTS)
valgrindtest-env : everything
2007-12-22 00:47:48 -06:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/valgrind_run $( LD_LIBPATH_OVERRIDE) " \
2007-10-22 01:05:31 +02:00
VALGRIND = " valgrind -q --num-callers=30 --log-file= ${ selftest_prefix } /valgrind.log " \
$( SELFTEST) --socket-wrapper --testenv
gdbtest : gdbtest -all
gdbtest-quick : all
2007-12-22 00:47:48 -06:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/gdb_run $( LD_LIBPATH_OVERRIDE) " \
2007-10-22 01:05:31 +02:00
$( SELFTEST) --immediate --quick --socket-wrapper $( TESTS)
gdbtest-all : everything
2007-12-22 00:47:48 -06:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/gdb_run $( LD_LIBPATH_OVERRIDE) " \
2007-10-22 01:05:31 +02:00
$( SELFTEST) --immediate --socket-wrapper $( TESTS)
gdbtest-env : everything
2007-12-22 00:47:48 -06:00
SMBD_VALGRIND = " xterm -n smbd -e $( srcdir) /script/gdb_run $( LD_LIBPATH_OVERRIDE) " \
2007-10-22 01:05:31 +02:00
$( SELFTEST) --socket-wrapper --testenv
wintest : all
$( SELFTEST) win