projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicer arrangement of the words...
[feisty_meow.git]
/
scripts
/
shunit
/
example_shunit_test.sh
diff --git
a/scripts/shunit/example_shunit_test.sh
b/scripts/shunit/example_shunit_test.sh
index 4b3482adf9b435855a71db60c3ab640937ab8d35..9d389bee41a93d6a5b013cd6a951e6ebfb4a4c0b 100755
(executable)
--- a/
scripts/shunit/example_shunit_test.sh
+++ b/
scripts/shunit/example_shunit_test.sh
@@
-20,11
+20,14
@@
oneTimeSetUp()
testOneThing()
{
testOneThing()
{
- echo "got to
test case. sleeping for a bit..
."
+ echo "got to
primary test case
."
zero=0
assertEquals "zero should be equal to 0" 0 $zero
zero=0
assertEquals "zero should be equal to 0" 0 $zero
- sleep 23
- echo "woke up. passed tautological test."
+ echo "passed tautological test."
+ sleep_time=83
+ echo "$(date): now sleeping for $sleep_time seconds."
+ sleep $sleep_time
+ echo "$(date): woke up."
}
oneTimeTearDown()
}
oneTimeTearDown()