]> git.sur5r.net Git - bacula/bacula/blob - regress/Makefile
Forgot to add the images for the new button.
[bacula/bacula] / regress / Makefile
1 #
2 # Makefile for Bacula regression testing
3 #
4 # Before running, you must create a file named config containing
5 #   the configuration parameters.  Create it by doing:
6
7 #  cp prototype.conf config
8 #
9 # Then edit config and set the value for what are appropriate for you.
10 #                
11
12 first_rule: all
13
14 all:
15
16 setup: bacula sed
17
18
19 # Some machines cannot handle the sticky bit and other garbage that
20 #  is in weird-files, so we load and run it only on Linux machines.
21 #
22 bacula: all
23         @rm -rf bin build weird-files tmp
24         @rm -f w.tar.gz w.tar
25         @cp weird-files.tar.gz w.tar.gz
26         @-gunzip w.tar.gz
27         @-tar xf w.tar
28         @rm -f w.tar.gz w.tar
29         @rm -rf tmp working
30         mkdir tmp working
31         echo "Doing: scripts/setup"
32         scripts/setup
33
34 sed:
35         echo "Doing: scripts/do_sed"
36         scripts/do_sed
37
38 # Run all non-root userid tests
39 test: 
40         ./all-non-root-tests
41
42 # run all file and tape tests
43 full_test:
44         ./all-tape-and-file-tests
45
46 # These tests require you to run as root
47 root_test:
48         ./all-root-tests
49
50 clean:
51         scripts/cleanup
52         rm -f tmp/file-list
53         rm -fr tmp/* working/* Testing
54         rm -f test.out
55         rm -f diff
56         rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
57         find . -name .#* -exec rm -rf {} \;
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/* working/*
64
65 distclean: clean
66         rm -rf bin build weird-files weird-files weird-files2 tmp working
67         rm -f scripts/*.conf
68