added a test for the shunit. not quite right though;
authorChris Koeritz <fred@gruntose.com>
Thu, 10 May 2012 19:30:02 +0000 (15:30 -0400)
committerChris Koeritz <fred@gruntose.com>
Thu, 10 May 2012 19:30:02 +0000 (15:30 -0400)
feisty needs to set the SHUNIT_DIR variable.

scripts/shunit/example_shunit_test.sh [new file with mode: 0755]

diff --git a/scripts/shunit/example_shunit_test.sh b/scripts/shunit/example_shunit_test.sh
new file mode 100755 (executable)
index 0000000..ab3e01c
--- /dev/null
@@ -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
+