aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/tst-multiple.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/tst-multiple.sh')
-rw-r--r--test/tst-multiple.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/tst-multiple.sh b/test/tst-multiple.sh
new file mode 100644
index 0000000..74a2d23
--- /dev/null
+++ b/test/tst-multiple.sh
@@ -0,0 +1,18 @@
+test_run() {
+ local i
+ for i in 1 2 3; do
+ cat > "$test_root_dir/tst-$i.sh" <<EOF
+test_run() {
+ log "Hello from test #$i"
+}
+EOF
+ done
+
+ local output
+ output="$( test_run_harness )"
+
+ test_check_harness_log "$output" "tst-1.sh | Hello from test #1"
+ test_check_harness_log "$output" "tst-2.sh | Hello from test #2"
+ test_check_harness_log "$output" "tst-3.sh | Hello from test #3"
+ test_check_harness_summary "$output" 3 0
+}