From: Chris Koeritz Date: Thu, 10 May 2012 19:30:02 +0000 (-0400) Subject: added a test for the shunit. not quite right though; X-Git-Tag: 2.140.90~1354 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=e25ac6e59711fa21200845327cafe07a1b4a4f25;p=feisty_meow.git added a test for the shunit. not quite right though; feisty needs to set the SHUNIT_DIR variable. --- diff --git a/scripts/shunit/example_shunit_test.sh b/scripts/shunit/example_shunit_test.sh new file mode 100755 index 00000000..ab3e01c9 --- /dev/null +++ b/scripts/shunit/example_shunit_test.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# An example of using shunit2. +# +# Author: Chris Koeritz + +export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's working directory. +cd $WORKDIR + +SHUNIT_DIR=/home/fred/xsede/xsede_tests/shunit + +oneTimeSetUp() +{ + echo into set up. +} + +testOneThing() +{ + echo got to test case. + zero=0 + assertEquals "zero should be equal to 0" 0 $zero + sleep 23 +} + +oneTimeTearDown() +{ + echo into tear down. +} + +# load and run shUnit2 +source $SHUNIT_DIR/shunit2 +