~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/selftest/config.mk

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TEST_FORMAT = plain
 
2
 
 
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|" \
 
9
    $(TEST_OPTIONS) 
 
10
 
 
11
SELFTEST_NOSLOW_OPTS = --exclude=$(srcdir)/selftest/slow
 
12
SELFTEST_QUICK_OPTS = $(SELFTEST_NOSLOW_OPTS) --quick --include=$(srcdir)/selftest/quick
 
13
 
 
14
slowtest:: everything
 
15
        $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate $(TESTS)
 
16
 
 
17
test:: everything
 
18
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
 
19
                $(TESTS)
 
20
 
 
21
kvmtest:: everything
 
22
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --immediate \
 
23
                --target=kvm --image=$(KVM_IMAGE)
 
24
 
 
25
kvmquicktest:: everything
 
26
        $(SELFTEST) $(DEFAULT_TEST_OPTIONS) --immediate \
 
27
                $(SELFTEST_QUICK_OPTS) --target=kvm --image=$(KVM_IMAGE)
 
28
 
 
29
testone:: everything
 
30
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) $(DEFAULT_TEST_OPTIONS) --one $(TESTS)
 
31
 
 
32
test-swrap:: everything
 
33
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --immediate $(TESTS)
 
34
 
 
35
test-swrap-pcap:: everything
 
36
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-pcap --immediate $(TESTS)
 
37
 
 
38
test-swrap-keep-pcap:: everything
 
39
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper-keep-pcap --immediate $(TESTS)
 
40
 
 
41
test-noswrap:: everything
 
42
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --immediate $(TESTS)
 
43
 
 
44
quicktest:: all
 
45
        $(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --immediate $(TESTS)
 
46
 
 
47
quicktestone:: all
 
48
        $(SELFTEST) $(SELFTEST_QUICK_OPTS) --socket-wrapper --one $(TESTS)
 
49
 
 
50
testenv:: everything
 
51
        $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
 
52
 
 
53
testenv-%:: everything
 
54
        SELFTEST_TESTENV=$* $(SELFTEST) $(SELFTEST_NOSLOW_OPTS) --socket-wrapper --testenv
 
55
 
 
56
test-%:: 
 
57
        $(MAKE) test TESTS=$*
 
58
 
 
59
valgrindtest:: valgrindtest-all
 
60
 
 
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)
 
65
 
 
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)
 
70
 
 
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
 
75
 
 
76
gdbtest:: gdbtest-all
 
77
 
 
78
gdbtest-quick:: all
 
79
        SMBD_VALGRIND="xterm -n server -e $(selftestdir)/gdb_run $(LD_LIBPATH_OVERRIDE)" \
 
80
        $(SELFTEST) $(SELFTEST_QUICK_OPTS) --immediate --socket-wrapper $(TESTS)
 
81
 
 
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)
 
85
 
 
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
 
89