2007-12-20 15:54:00 +01:00
TEST_FORMAT = plain
2009-01-30 20:38:27 +01:00
SELFTEST = $( LD_LIBPATH_OVERRIDE) PYTHON = $( PYTHON) \
$( PERL) $( selftestdir) /selftest.pl --prefix= ${ selftest_prefix } \
2007-10-22 01:05:31 +02:00
--builddir= $( builddir) --srcdir= $( srcdir) \
2008-09-18 19:51:03 +02:00
--expected-failures= $( srcdir) /selftest/knownfail \
2007-12-20 15:54:00 +01:00
--format= $( TEST_FORMAT) \
2008-09-18 19:51:03 +02:00
--exclude= $( srcdir) /selftest/skip --testlist= "./selftest/tests.sh|" \
2007-10-22 01:05:31 +02:00
$( TEST_OPTIONS)
2008-09-18 19:51:03 +02:00
SELFTEST_NOSLOW_OPTS = --exclude= $( srcdir) /selftest/slow
2008-10-22 04:09:17 +02:00
SELFTEST_QUICK_OPTS = $( SELFTEST_NOSLOW_OPTS) --quick --include= $( srcdir) /selftest/quick
2008-05-29 18:19:19 +02:00
slowtest :: everything
2007-10-22 01:05:31 +02:00
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --immediate $( TESTS)
2008-05-29 18:19:19 +02:00
test :: everything
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) $( DEFAULT_TEST_OPTIONS) --immediate \
$( TESTS)
2008-02-19 03:29:03 +01:00
kvmtest :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) $( DEFAULT_TEST_OPTIONS) --immediate \
--target= kvm --image= $( KVM_IMAGE)
2008-02-19 03:29:03 +01:00
2008-02-19 15:12:57 +01:00
kvmquicktest :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( DEFAULT_TEST_OPTIONS) --immediate \
$( SELFTEST_QUICK_OPTS) --target= kvm --image= $( KVM_IMAGE)
2008-02-19 15:12:57 +01:00
2008-02-09 16:05:55 +01:00
testone :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) $( DEFAULT_TEST_OPTIONS) --one $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
test-swrap :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper --immediate $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
test-swrap-pcap :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper-pcap --immediate $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
test-swrap-keep-pcap :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper-keep-pcap --immediate $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
test-noswrap :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --immediate $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
quicktest :: all
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_QUICK_OPTS) --socket-wrapper --immediate $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
quicktestone :: all
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_QUICK_OPTS) --socket-wrapper --one $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
testenv :: everything
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
2007-10-22 01:05:31 +02:00
2008-10-06 16:00:10 +02:00
testenv-% :: everything
SELFTEST_TESTENV = $* $( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
2008-10-11 22:22:29 +02:00
test-% ::
$( MAKE) test TESTS = $*
2008-02-09 16:05:55 +01:00
valgrindtest :: valgrindtest -all
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
valgrindtest-quick :: all
2008-10-28 12:20:59 +01:00
SMBD_VALGRIND = " xterm -n server -e $( selftestdir) /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 " \
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
valgrindtest-all :: everything
2008-10-28 12:20:59 +01:00
SMBD_VALGRIND = " xterm -n server -e $( selftestdir) /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 " \
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
valgrindtest-env :: everything
2008-10-28 12:20:59 +01:00
SMBD_VALGRIND = " xterm -n server -e $( selftestdir) /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 " \
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
gdbtest :: gdbtest -all
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
gdbtest-quick :: all
2008-10-28 12:20:59 +01:00
SMBD_VALGRIND = " xterm -n server -e $( selftestdir) /gdb_run $( LD_LIBPATH_OVERRIDE) " \
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
gdbtest-all :: everything
2008-10-28 12:20:59 +01:00
SMBD_VALGRIND = " xterm -n server -e $( selftestdir) /gdb_run $( LD_LIBPATH_OVERRIDE) " \
2008-05-29 18:19:19 +02:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $( TESTS)
2007-10-22 01:05:31 +02:00
2008-02-09 16:05:55 +01:00
gdbtest-env :: everything
2008-10-28 12:20:59 +01:00
SMBD_VALGRIND = " xterm -n server -e $( selftestdir) /gdb_run $( LD_LIBPATH_OVERRIDE) " \
2008-07-15 15:01:43 +10:00
$( SELFTEST) $( SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
2008-10-28 12:20:59 +01:00