diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-08-09 21:29:45 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-08-09 21:29:45 +0100 |
commit | 33b7c33ab447a0463e414c6cf8f9a2cd2d047a20 (patch) | |
tree | baeaae3eca65536bbe17ad9fe196c7383eafd4da /test/scorsh_functions | |
parent | 231beb5c3fc50f40e31b9e00237c67f267188057 (diff) |
added more tests about basic scorsh setup
Diffstat (limited to 'test/scorsh_functions')
-rw-r--r-- | test/scorsh_functions | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/scorsh_functions b/test/scorsh_functions index 1917188..7f4fb1b 100644 --- a/test/scorsh_functions +++ b/test/scorsh_functions @@ -41,6 +41,25 @@ check(){ } ## func +check_fatal(){ + EXPR="$1" + TEST_NAME="$2" + TEST_SECTION="$3" + + TOT_TESTS=$((${TOT_TESTS} + 1)) + + ##echo "EXPR: ${EXPR}" + if $(echo ${EXPR}) ; then + passed ${TEST_NAME} ${TEST_SECTION} + else + failed ${TEST_NAME} ${TEST_SECTION} + echo "Fatal test failed -- Aborting" + exit 1 + fi +} + + +## func report_results(){ echo -n "TOTAL_TESTS: ${TOT_TESTS} -- " |