added a test for the shunit. not quite right though;
[feisty_meow.git] / scripts / shunit / example_shunit_test.sh
1 #!/bin/bash
2
3 # An example of using shunit2.
4 #
5 # Author: Chris Koeritz
6
7 export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )"  # obtain the script's working directory.
8 cd $WORKDIR
9
10 SHUNIT_DIR=/home/fred/xsede/xsede_tests/shunit
11
12 oneTimeSetUp()
13 {
14   echo into set up.
15 }
16
17 testOneThing()
18 {
19   echo got to test case.
20   zero=0
21   assertEquals "zero should be equal to 0" 0 $zero
22   sleep 23
23 }
24
25 oneTimeTearDown()
26 {
27   echo into tear down.
28 }
29
30 # load and run shUnit2
31 source $SHUNIT_DIR/shunit2
32