| 1 |
# Check that we can pass an explicit set of files to be tested. |
| 2 |
! testscript -files foo.txtar x/bar.txtar y/bar.txtar 'y/bar#1.txtar' |
| 3 |
cmpenv stdout expect-stdout |
| 4 |
-- expect-stdout -- |
| 5 |
** RUN foo ** |
| 6 |
PASS |
| 7 |
** RUN bar ** |
| 8 |
PASS |
| 9 |
** RUN bar#1 ** |
| 10 |
> echoandexit 1 '' 'bar#1 failure' |
| 11 |
[stderr] |
| 12 |
bar#1 failure |
| 13 |
FAIL: $$WORK${/}y${/}bar.txtar:1: told to exit with code 1 |
| 14 |
** RUN bar#1#1 ** |
| 15 |
> echoandexit 1 '' 'bar#1#1 failure' |
| 16 |
[stderr] |
| 17 |
bar#1#1 failure |
| 18 |
FAIL: $$WORK${/}y${/}bar#1.txtar:1: told to exit with code 1 |
| 19 |
-- foo.txtar -- |
| 20 |
echoandexit 0 '' 'foo failure' |
| 21 |
-- x/bar.txtar -- |
| 22 |
echoandexit 0 '' 'bar failure' |
| 23 |
-- y/bar.txtar -- |
| 24 |
echoandexit 1 '' 'bar#1 failure' |
| 25 |
-- y/bar#1.txtar -- |
| 26 |
echoandexit 1 '' 'bar#1#1 failure' |