Fix and test python scripts and kerberos
[samba.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 test:: everything
11         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate $(TESTS)
12
13 kvmtest:: everything
14         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate --target=kvm --image=$(KVM_IMAGE)
15
16 kvmquicktest:: everything
17         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate --quick --target=kvm --image=$(KVM_IMAGE)
18
19 testone:: everything
20         $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --one $(TESTS)
21
22 test-swrap:: everything
23         $(SELFTEST) --socket-wrapper --immediate $(TESTS)
24
25 test-swrap-pcap:: everything
26         $(SELFTEST) --socket-wrapper-pcap --immediate $(TESTS)
27
28 test-swrap-keep-pcap:: everything
29         $(SELFTEST) --socket-wrapper-keep-pcap --immediate $(TESTS)
30
31 test-noswrap:: everything
32         $(SELFTEST) --immediate $(TESTS)
33
34 quicktest:: all
35         $(SELFTEST) --quick --socket-wrapper --immediate $(TESTS)
36
37 quicktestone:: all
38         $(SELFTEST) --quick --socket-wrapper --one $(TESTS)
39
40 testenv:: everything
41         $(SELFTEST) --socket-wrapper --testenv
42
43 valgrindtest:: valgrindtest-all
44
45 valgrindtest-quick:: all
46         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
47         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
48         $(SELFTEST) --quick --immediate --socket-wrapper $(TESTS)
49
50 valgrindtest-all:: everything
51         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
52         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
53         $(SELFTEST) --immediate --socket-wrapper $(TESTS)
54
55 valgrindtest-env:: everything
56         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/valgrind_run $(LD_LIBPATH_OVERRIDE)" \
57         VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
58         $(SELFTEST) --socket-wrapper --testenv
59
60 gdbtest:: gdbtest-all
61
62 gdbtest-quick:: all
63         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
64         $(SELFTEST) --immediate --quick --socket-wrapper $(TESTS)
65
66 gdbtest-all:: everything
67         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
68         $(SELFTEST) --immediate --socket-wrapper $(TESTS)
69
70 gdbtest-env:: everything
71         SMBD_VALGRIND="xterm -n smbd -e $(srcdir)/script/gdb_run $(LD_LIBPATH_OVERRIDE)" \
72         $(SELFTEST) --socket-wrapper --testenv