# 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 if [ "$DEFAULT_HEAD" == "1" ]; then VERSION="head" else echo "Must specify version" exit 1 fi fi UVERSION=`echo "$VERSION" | sed s/[-.]/_/g` TESTID="${TESTNAME}_$UVERSION" echo "$TESTID" TESTDIR="testdir_${TESTNAME}_$VERSION" if [ "$WIZARD_ADMIN_NAME" == "" ]; then export WIZARD_ADMIN_NAME="admin" fi if [ "$WIZARD_ADMIN_PASSWORD" == "" ]; then export WIZARD_ADMIN_PASSWORD="wizard" fi if [ -e "config" ]; then source ./config fi if [ -e "$TESTDIR" ]; then echo "Removing previous $TESTDIR folder..." wizard remove "$TESTDIR" || rm -Rf "$TESTDIR" fi if [ -e "prepare" ]; then source ./prepare fi