]> git.sur5r.net Git - bacula/bacula/blob - regress/Makefile
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / Makefile
1 #
2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
4 #
5 #
6 # Makefile for Bacula regression testing
7 #
8 # Before running, you must create a file named config containing
9 #   the configuration parameters.  Create it by doing:
10
11 #  cp prototype.conf config
12 #
13 # Then edit config and set the value for what are appropriate for you.
14 #                
15
16 first_rule: all
17
18 all:
19
20 setup: bacula sed
21
22
23 # Some machines cannot handle the sticky bit and other garbage that
24 #  is in weird-files, so we load and run it only on Linux machines.
25 #
26 bacula: all
27         @rm -rf bin build weird-files tmp
28         @rm -f w.tar.gz w.tar
29         @cp weird-files.tar.gz w.tar.gz
30         @-gunzip w.tar.gz
31         @-tar xf w.tar
32         @rm -f w.tar.gz w.tar
33         @rm -rf tmp working dumps
34         mkdir tmp working dumps
35         echo "Doing: scripts/setup"
36         scripts/setup
37
38 sed:
39         echo "Doing: scripts/do_sed"
40         scripts/do_sed
41
42 # Run all disk tests
43 test: 
44         ./all-disk-tests
45
46 # run all tape and disk tests
47 full_test:
48         ./all-tape-and-disk-tests
49
50 # These tests require you to run as root
51 root_test:
52         ./all-root-tests
53
54 clean:
55         scripts/cleanup
56         rm -f tmp/file-list
57         rm -fr tmp/* tmp2/* working/* dumps/* Testing
58         rm -f test.out
59         rm -f diff
60         rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
61         find . -name .#* -exec rm -rf {} \;
62
63 # Reset our userid after running as root
64 reset:
65         mkdir -p tmp working || true
66         chown -R ${USER}:${USER} . tmp working
67         scripts/cleanup
68         rm -f tmp/* working/*
69
70 distclean: clean
71         rm -rf bin build weird-files weird-files weird-files2 tmp working
72         rm -f scripts/*.conf
73