0d5f4d6ab47c4de2e06889418512b58800ac7c6c
[ira/wip.git] / source / selftest / config.mk
1 TEST_FORMAT = plain
2
3 SELFTEST = $(LD_LIBPATH_OVERRIDE) $(PERL) $(srcdir)/selftest/selftest.pl --prefix=${selftest_prefix} \
4     --builddir=$(builddir) --srcdir=$(srcdir) \
5     --expected-failures=$(srcdir)/samba4-knownfail \
6         --format=$(TEST_FORMAT) \
7     --exclude=$(srcdir)/samba4-skip --testlist="./selftest/samba4_tests.sh|" \
8     $(TEST_OPTIONS) 
9
10 test: everything
11         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate $(TESTS)
12
13 testone: everything
14         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --one $(TESTS)
15
16 test-swrap: everything
17         $(SELFTEST) --socket-wrapper --immediate $(TESTS)
18
19 test-swrap-pcap: everything
20         $(SELFTEST) --socket-wrapper-pcap --immediate $(TESTS)
21
22 test-swrap-keep-pcap: everything
23         $(SELFTEST) --socket-wrapper-keep-pcap --immediate $(TESTS)
24
25 test-noswrap: everything
26         $(SELFTEST) --immediate $(TESTS)
27
28 quicktest: all
29         $(SELFTEST) --quick --socket-wrapper --immediate $(TESTS)
30
31 quicktestone: all
32         $(SELFTEST) --quick --socket-wrapper --one $(TESTS)
33
34 testenv: everything
35         $(SELFTEST) --socket-wrapper --testenv
36
37 valgrindtest: valgrindtest-all
38
39 valgrindtest-quick: all
40         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
41         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
42         $(SELFTEST) --quick --immediate --socket-wrapper $(TESTS)
43
44 valgrindtest-all: everything
45         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
46         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
47         $(SELFTEST) --immediate --socket-wrapper $(TESTS)
48
49 valgrindtest-env: everything
50         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
51         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
52         $(SELFTEST) --socket-wrapper --testenv
53
54 gdbtest: gdbtest-all
55
56 gdbtest-quick: all
57         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
58         $(SELFTEST) --immediate --quick --socket-wrapper $(TESTS)
59
60 gdbtest-all: everything
61         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
62         $(SELFTEST) --immediate --socket-wrapper $(TESTS)
63
64 gdbtest-env: everything
65         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
66         $(SELFTEST) --socket-wrapper --testenv
67
68 wintest: all
69         $(SELFTEST) win
70
71