diff --git a/test/scripts/run_test.sh b/test/scripts/run_test.sh new file mode 100755 index 0000000..79ea10b --- /dev/null +++ b/test/scripts/run_test.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +TEST_FILE=$1 + +source ./$TEST_FILE + +pre +body +post + diff --git a/test/scripts/run_tests.sh b/test/scripts/run_tests.sh new file mode 100755 index 0000000..2e84b8b --- /dev/null +++ b/test/scripts/run_tests.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +./run_test.sh test_1.sh + diff --git a/test/scripts/test_1.sh b/test/scripts/test_1.sh new file mode 100755 index 0000000..3acbd4f --- /dev/null +++ b/test/scripts/test_1.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +function pre { +echo 'in pre'; +} + +function post { +echo 'in post'; +} + +function body { + echo 'in body'; +} + +