2017-09-27 10:52:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-10-05 16:20:12 +00:00
|
|
|
TEST_FILE=test_$1.sh
|
|
|
|
|
|
|
|
test_success=0
|
2017-09-27 10:52:53 +00:00
|
|
|
|
|
|
|
source ./$TEST_FILE
|
|
|
|
|
2017-10-05 16:20:12 +00:00
|
|
|
function do_it() {
|
|
|
|
pre
|
|
|
|
body
|
|
|
|
post
|
|
|
|
return $?
|
|
|
|
}
|
2017-09-27 10:52:53 +00:00
|
|
|
|
2017-10-05 16:20:12 +00:00
|
|
|
do_it
|
|
|
|
exit $test_success
|