3 SELFTEST = $(LD_LIBPATH_OVERRIDE) $(PERL) $(selftestdir)/selftest.pl --prefix=${selftest_prefix} \
4 --builddir=$(builddir) --srcdir=$(srcdir) \
5 --expected-failures=$(srcdir)/selftest/knownfail \
6 --format=$(TEST_FORMAT) \
7 --exclude=$(srcdir)/selftest/skip --testlist="./selftest/tests.sh|" \
10 SELFTEST_NOSLOW_OPTS = --exclude=$(srcdir)/selftest/slow
11 SELFTEST_QUICK_OPTS = $(SELFTEST_NOSLOW_OPTS) --quick
14 $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate $(TESTS)
17 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
21 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
22 --target=kvm --image=$(KVM_IMAGE)
24 kvmquicktest:: everything
25 $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate \
26 $(SELFTEST_QUICK_OPTS) --target=kvm --image=$(KVM_IMAGE)
29 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --one $(TESTS)
31 test-swrap:: everything
32 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --immediate $(TESTS)
34 test-swrap-pcap:: everything
35 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-pcap --immediate $(TESTS)
37 test-swrap-keep-pcap:: everything
38 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-keep-pcap --immediate $(TESTS)
40 test-noswrap:: everything
41 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate $(TESTS)
44 $(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --immediate $(TESTS)
47 $(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --one $(TESTS)
50 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
52 testenv-%:: everything
53 SELFTEST_TESTENV=$* $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
58 valgrindtest:: valgrindtest-all
60 valgrindtest-quick:: all
61 SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
62 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
63 $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
65 valgrindtest-all:: everything
66 SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
67 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
68 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
70 valgrindtest-env:: everything
71 SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
72 VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
73 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
78 SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
79 $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
81 gdbtest-all:: everything
82 SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
83 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
85 gdbtest-env:: everything
86 SMBD_VALGRIND="xterm -n server -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
87 $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv