2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # Makefile for Bacula regression testing
8 # Before running, you must create a file named config containing
9 # the configuration parameters. Create it by doing:
11 # cp prototype.conf config
13 # Then edit config and set the value for what are appropriate for you.
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.
27 @rm -rf bin build weird-files tmp
29 @cp weird-files.tar.gz w.tar.gz
33 @rm -rf tmp working dumps
34 mkdir tmp working dumps
35 echo "Doing: scripts/setup"
39 echo "Doing: scripts/do_sed"
46 # run all tape and disk tests
48 ./all-tape-and-disk-tests
50 # These tests require you to run as root
57 rm -fr tmp/* working/* dumps/* Testing
60 rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
61 find . -name .#* -exec rm -rf {} \;
63 # Reset our userid after running as root
65 chown -R ${USER}:${USER} . tmp working
70 rm -rf bin build weird-files weird-files weird-files2 tmp working