Add samba4-slow file listing tests that succeed but are just slow.
[kai/samba-autobuild/.git] / source4 / 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 SELFTEST_NOSLOW_OPTS = --exclude=$(srcdir)/samba4-slow
11 SELFTEST_QUICK_OPTS = $(SELFTEST_NOSLOW_OPTS) --quick 
12
13 slowtest:: everything
14         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate $(TESTS)
15
16 test:: everything
17         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
18                 $(TESTS)
19
20 kvmtest:: everything
21         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
22                 --target=kvm --image=$(KVM_IMAGE)
23
24 kvmquicktest:: everything
25         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate \
26                 $(SELFTEST_QUICK_OPTS) --target=kvm --image=$(KVM_IMAGE)
27
28 testone:: everything
29         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --one $(TESTS)
30
31 test-swrap:: everything
32         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --immediate $(TESTS)
33
34 test-swrap-pcap:: everything
35         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-pcap --immediate $(TESTS)
36
37 test-swrap-keep-pcap:: everything
38         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-keep-pcap --immediate $(TESTS)
39
40 test-noswrap:: everything
41         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate $(TESTS)
42
43 quicktest:: all
44         $(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --immediate $(TESTS)
45
46 quicktestone:: all
47         $(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --one $(TESTS)
48
49 testenv:: everything
50         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
51
52 valgrindtest:: valgrindtest-all
53
54 valgrindtest-quick:: all
55         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
56         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
57         $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
58
59 valgrindtest-all:: everything
60         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
61         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
62         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
63
64 valgrindtest-env:: everything
65         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
66         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
67         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
68
69 gdbtest:: gdbtest-all
70
71 gdbtest-quick:: all
72         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
73         $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
74
75 gdbtest-all:: everything
76         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
77         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate --socket-wrapper $(TESTS)
78
79 gdbtest-env:: everything
80         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
81         $(SELFTEST) $(SELFTEST_NOSLOW_OPTS)--socket-wrapper --testenv