2 # Makefile for Bacula regression testing
4 # Note, Makefile is built from Makefile.in, which you should not really
5 # need to change, by envoking:
7 # ./config <user's configuration>
14 # suck in user's configuration
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.
28 @rm -rf bin build weird-files tmp
30 @cp weird-files.tar.gz w.tar.gz
36 echo "Doing: scripts/setup ${BACULA_SOURCE} ${EMAIL} ${WHICHDB} ${TCPWRAPPERS} ${OPENSSL}"
37 scripts/setup ${BACULA_SOURCE} ${EMAIL} ${WHICHDB} ${TCPWRAPPERS} ${SMTP_HOST} ${OPENSSL}
40 echo "Doing: scripts/do_sed ${EMAIL} ${TAPE_DRIVE} ${AUTOCHANGER} ${AUTOCHANGER_PATH} ${TAPE_DRIVE1} ${SMTP_HOST}"
41 scripts/do_sed ${EMAIL} ${TAPE_DRIVE} ${AUTOCHANGER} ${AUTOCHANGER_PATH} ${TAPE_DRIVE1} ${SMTP_HOST}
43 # Run all non-root userid tests
47 # run all file and tape tests
49 ./all-tape-and-file-tests
51 # These tests require you to run as root
58 rm -fr tmp/* working/*
61 rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
62 find . -name .#* -exec rm -rf {} \;
64 # Reset our userid after running as root
66 chown -R ${USER}:${USER} . tmp working
68 rm -f /tmp/file-list tmp/file-list
72 rm -rf bin build weird-files weird-files weird-files2 tmp working