]> git.sur5r.net Git - bacula/bacula/blob - regress/Makefile.in
b1fc696d4fbead0d6c65485b104b32cdb18d09e1
[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 first_rule: all
18
19 all:
20
21 setup: bacula sed
22
23
24 # Some machines cannot handle the sticky bit and other garbage that
25 #  is in weird-files, so we load and run it only on Linux machines.
26 #
27 bacula: all
28         @rm -rf bin build weird-files tmp
29         (if test x`uname` = xLinux -o x`uname` = xFreeBSD ; then \
30            tar xfz weird-files.tar.gz ;\
31          fi)
32         rm -rf tmp working
33         mkdir tmp working
34         echo "Doing: scripts/setup ${BACULA_SOURCE} ${EMAIL} ${WHICHDB} ${TCPWRAPPERS} ${OPENSSL}"
35         scripts/setup ${BACULA_SOURCE} ${EMAIL} ${WHICHDB} ${TCPWRAPPERS} ${SMTP_HOST} ${OPENSSL}
36
37 sed:
38         echo "Doing: scripts/do_sed ${EMAIL} ${TAPE_DRIVE} ${AUTOCHANGER} ${AUTOCHANGER_PATH} ${TAPE_DRIVE1} ${SMTP_HOST}"
39         scripts/do_sed ${EMAIL} ${TAPE_DRIVE} ${AUTOCHANGER} ${AUTOCHANGER_PATH} ${TAPE_DRIVE1} ${SMTP_HOST}
40
41 # Run all non-root userid tests
42 test: 
43         ./all-non-root-tests
44
45 # run all file and tape tests
46 full_test:
47         ./all-tape-and-file-tests
48
49 # These tests require you to run as root
50 root_test:
51         ./all-root-tests
52
53 clean:
54         scripts/cleanup
55         rm -f /tmp/file-list
56         rm -f tmp/* working/*
57         rm -f test.out
58         rm -f diff
59         rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
60         @find . -name .#* -exec $(RMF) {} \;
61
62 # Reset our userid after running as root
63 reset:
64         chown -R ${USER}:${USER} . tmp working
65         scripts/cleanup
66         rm -f /tmp/file-list tmp/file-list
67         rm -f tmp/* working/*
68
69 distclean: clean
70         rm -rf bin build weird-files weird-files weird-files2 tmp working
71         rm -f scripts/*.conf
72