]> git.sur5r.net Git - bacula/bacula/blob - regress/Makefile.in
Provide a better patch explanation
[bacula/bacula] / regress / Makefile.in
1 #
2 # Makefile for Bacula regression testing
3 #
4 #  Note, Makefile is built from Makefile.in, which you should not really 
5 #    need to change, by envoking:
6 #
7 #  ./config <user's configuration>
8 # e.g.
9 #
10 #  ./config kern.conf
11 #
12 #
13
14 # suck in user's configuration
15 @CONFIG@
16
17 WHICHDB?="--with-sqlite=${SQLITE_DIR}"
18
19 first_rule: all
20
21 all:
22
23 setup: bacula
24
25
26 # Some machines cannot handle the sticky bit and other garbage that
27 #  is in weird-files, so we load and run it only on Linux machines.
28 #
29 bacula: all   
30         @rm -rf bin build weird-files tmp
31         (if test x`uname` = xLinux -o x`uname` = xFreeBSD ; then \
32            tar xfz weird-files.tar.gz ;\
33          fi)
34         rm -rf tmp working
35         mkdir tmp working
36         scripts/setup ${BACULA_SOURCE} ${EMAIL} ${WHICHDB}
37         scripts/do_sed ${EMAIL} ${TAPE_DRIVE} ${AUTOCHANGER} ${AUTOCHANGER_PATH}
38
39 # Run all non-root userid tests
40 test: 
41         ./all-non-root-tests
42
43 # run all file and tape tests
44 full_test:
45         ./all-tape-and-file-tests
46
47 # These tests require you to run as root
48 root_test:
49         ./all-root-tests
50
51 clean:
52         scripts/cleanup
53         rm -f /tmp/file-list
54         rm -f tmp/* working/*
55         rm -f test.out
56         rm -f diff
57         rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
58
59 # Reset our userid after running as root
60 reset:
61         chown -R ${USER}:${USER} . tmp working
62         scripts/cleanup
63         rm -f /tmp/file-list tmp/file-list
64         rm -f tmp/* working/*
65
66 distclean: clean
67         rm -rf bin build weird-files weird-files weird-files2 tmp working
68         rm -f scripts/*.conf
69