3
SELFTEST = $(LD_LIBPATH_OVERRIDE) PYTHON=$(PYTHON) \
4
$(PERL) $(selftestdir)/selftest.pl --prefix=${selftest_prefix} \
5
--builddir=$(builddir) --srcdir=$(srcdir) \
6
--expected-failures=$(srcdir)/selftest/knownfail \
7
--format=$(TEST_FORMAT) \
8
--exclude=$(srcdir)/selftest/skip --testlist="./selftest/tests.sh|" \
11
SELFTEST_NOSLOW_OPTS = --exclude=$(srcdir)/selftest/slow
12
SELFTEST_QUICK_OPTS = $(SELFTEST_NOSLOW_OPTS) --quick --include=$(srcdir)/selftest/quick
15
$(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate $(TESTS)
18
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
22
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
23
--target=kvm --image=$(KVM_IMAGE)
25
kvmquicktest:: everything
26
$(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate \
27
$(SELFTEST_QUICK_OPTS) --target=kvm --image=$(KVM_IMAGE)
30
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --one $(TESTS)
32
test-swrap:: everything
33
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --immediate $(TESTS)
35
test-swrap-pcap:: everything
36
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-pcap --immediate $(TESTS)
38
test-swrap-keep-pcap:: everything
39
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-keep-pcap --immediate $(TESTS)
41
test-noswrap:: everything
42
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate $(TESTS)
45
$(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --immediate $(TESTS)
48
$(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --one $(TESTS)
51
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
53
testenv-%:: everything
54
SELFTEST_TESTENV=$* $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
59
valgrindtest:: valgrindtest-all
61
valgrindtest-quick:: all
62
SMBD_VALGRIND="xterm -n server -e $(selftestdir)/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
63
VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
64
$(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
66
valgrindtest-all:: everything
67
SMBD_VALGRIND="xterm -n server -e $(selftestdir)/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
68
VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
69
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
71
valgrindtest-env:: everything
72
SMBD_VALGRIND="xterm -n server -e $(selftestdir)/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
73
VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
74
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
79
SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
80
$(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
82
gdbtest-all:: everything
83
SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
84
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
86
gdbtest-env:: everything
87
SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
88
$(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv