aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-15 18:31:33 +0500
committerEgor Tensin <egor@tensin.name>2026-10-15 18:31:33 +0500
commit94a53e5fa1aa05e4a3aeb0ffe3a865e95c7316da (patch)
treeef59aa4b5697a409bb6f6a941f8e70fdf0f949d8 /test
parentREADME: update (diff)
downloadtest-harness-94a53e5fa1aa05e4a3aeb0ffe3a865e95c7316da.tar.gz
test-harness-94a53e5fa1aa05e4a3aeb0ffe3a865e95c7316da.zip
test: add a new test
Diffstat (limited to 'test')
-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
+}