diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-09 19:51:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-11 14:31:39 +0300 |
commit | ff0bf71889b041be794e8bd47d5be57f6eb07ad1 (patch) | |
tree | 2964d1c0803003a896447bdc4181339deaddbe1a /tests/test/script/runner/test-runner.testscript | |
parent | 26af9268e98ed4c82c83b8f6e3f94af71b109eba (diff) |
Copy parent scope's test program list in runner's entry() function rather than in scope's constructor
Diffstat (limited to 'tests/test/script/runner/test-runner.testscript')
-rw-r--r-- | tests/test/script/runner/test-runner.testscript | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/tests/test/script/runner/test-runner.testscript b/tests/test/script/runner/test-runner.testscript index 772fa1b..372330b 100644 --- a/tests/test/script/runner/test-runner.testscript +++ b/tests/test/script/runner/test-runner.testscript @@ -22,10 +22,36 @@ run=$~/run : basic : -$c <<"EOI" && $b "config.test.runner=$run --trace" - cat <'text' >'text'; # Non-test program. - \$* -o 'text' >>~%EOO% # Test program. +$c <<EOI && $b "config.test.runner=$run --trace" + +cat <'text' >'text' # Non-test program. + + +$* -o 'text' >>~%EOO% # Test program. %.+/driver -o text% text EOO + + { + prog = $0 + test=cat + + +cat <'text' >>EOO # Test program. + cat + text + EOO + + +$prog -o 'text' >>~%EOO% # Non-test program. + text + EOO + + test=$prog + + { + cat <'text' >'text'; # Non-test program. + + $* -o 'text' >>~%EOO% # Test program. + %.+/driver -o text% + text + EOO + } + } EOI |