summaryrefslogtreecommitdiff
path: root/automated/lib/sh-test-lib
diff options
context:
space:
mode:
Diffstat (limited to 'automated/lib/sh-test-lib')
-rwxr-xr-xautomated/lib/sh-test-lib12
1 files changed, 12 insertions, 0 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index 0b81fc8..818fc90 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -60,6 +60,18 @@ check_return() {
fi
}
+report_pass() {
+ [ "$#" -ne 1 ] && error_msg "Usage: report_pass test"
+ local test="$1"
+ echo "${test} pass" | tee -a "${RESULT_FILE}"
+}
+
+report_fail() {
+ [ "$#" -ne 1 ] && error_msg "Usage: report_fail test"
+ local test="$1"
+ echo "${test} fail" | tee -a "${RESULT_FILE}"
+}
+
add_metric() {
if [ "$#" -ne 4 ]; then
warn_msg "The number of parameters less then 4"