Created
December 26, 2014 17:37
-
-
Save dlangille/55cd9298fbdd39d3fb48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat ~/bin/bacula7-nightly-run-trunk.sh | |
#!/bin/sh | |
# This script can be used to launch either MySQL or PostgreSQL scripts. It runs PostgreSQL by default. | |
# usage: bacula-nightly-run-trunk.sh postgresql | |
echo $PATH | |
GIT="/usr/local/bin/git" | |
SRCDIR="${HOME}/src/Bacula7RegressionTesting-TRUNK" | |
REGRESSCONFIGIN="regress/scripts/regress-config.in" | |
CONFIG_DIR_SRC=${HOME}/bin | |
CONFIG_PREFIX='Bacula-regress-config' | |
CONFIG='Bacula-regress-config7' | |
cd ${SRCDIR} | |
rm ${REGRESSCONFIGIN} | |
${GIT} checkout ${REGRESSCONFIGIN} | |
${GIT} pull | |
# patch the printf / echo problem | |
#cd bacula | |
#patch -N < ${CONFIG_DIR_SRC}/patch-bacula7-printf | |
#cd - | |
# add in our configuration file | |
cd regress | |
cp ${CONFIG_DIR_SRC}/${CONFIG} config | |
# run the tests | |
./nightly-disk | |
# now clean up | |
cd ${SRCDIR} | |
rm ${REGRESSCONFIGIN} | |
${GIT} checkout ${REGRESSCONFIGIN} | |
rm regress/config | |
# undo that patch | |
rm bacula/configure | |
${GIT} checkout bacula/configure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment