absolute path on the script name.
# Author: Chris Koeritz
export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
# Author: Chris Koeritz
export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory.
-cd $WORKDIR
-
-# this variable needs to be set somewhere. feisty meow scripts will set it.
-#SHUNIT_DIR=/home/fred/shunit
+#cd $WORKDIR
+if [[ ! "$0" =~ ^/.* ]]; then
+ # re-run the script with the absolute path if it didn't start that way; otherwise
+ # shunit is not happy with finding the script.
+ exec "$WORKDIR/$(basename $0)" $*
+fi
+ echo "into oneTimeSetUp."
+ echo "got to test case. sleeping for a bit..."
zero=0
assertEquals "zero should be equal to 0" 0 $zero
sleep 23
zero=0
assertEquals "zero should be equal to 0" 0 $zero
sleep 23
+ echo "woke up. passed tautological test."
+ echo "into oneTimeTearDown."