# Script to setup running Bacula regression tests
#
cwd=`pwd`
-if [ $# != 4 ] ; then
- echo "Incorrect number of arguments. Need:"
- echo "setup bacula-src depkgs email-address --with-DBNAME"
+if [ $# != 3 ] ; then
+ echo "Incorrect number of arguments. Got $#. Need:"
+ echo "setup bacula-src email-address --with-DBNAME"
echo " "
exit 1
fi
echo " "
exit 1
fi
-if [ ! -d $2 ] ; then
- cd ..
- cwd=`pwd`
- echo "The regression scripts require DEPKGS as arg 2 but not found!"
- echo " "
- exit 1
-fi
rm -rf build bin
# Copy new source
+echo "Copying source from $1"
cp -rp $1 build
cp scripts/regress-config build
cd build
rm -f Makefile config.cache
# Run Bacula configuration, make, install
-./regress-config ${cwd} $2 $3 $4
+./regress-config ${cwd} $2 $3
make
make install
cp src/tools/testls ../bin