# this file is meant to be source'd by any test script # we expect the source script to have specified: # VERSION = version number to apply the test to # TESTNAME = name of the test # we produce $TESTDIR and $TESTID for config and test script to use. VERSION="$1" if [ "$VERSION" == "" ]; then echo "Must specify version" exit 1 fi UVERSION=`echo "$VERSION" | sed s/[-.]/_/g` TESTID="${TESTNAME}_$UVERSION" TESTDIR="testdir_${TESTNAME}_$VERSION" export WIZARD_ADMIN_NAME="admin" export WIZARD_ADMIN_PASSWORD="wizard" if [ -e "config" ]; then source config fi if [ -e "$TESTDIR" ]; then echo "Removing previous $TESTDIR folder..." rm -Rf "$TESTDIR" fi