diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-15 18:31:33 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-15 18:31:33 +0500 |
| commit | 94a53e5fa1aa05e4a3aeb0ffe3a865e95c7316da (patch) | |
| tree | ef59aa4b5697a409bb6f6a941f8e70fdf0f949d8 /test/tst-multiple.sh | |
| parent | README: update (diff) | |
| download | test-harness-94a53e5fa1aa05e4a3aeb0ffe3a865e95c7316da.tar.gz test-harness-94a53e5fa1aa05e4a3aeb0ffe3a865e95c7316da.zip | |
test: add a new test
Diffstat (limited to 'test/tst-multiple.sh')
| -rw-r--r-- | test/tst-multiple.sh | 18 |
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 +} |
