##// END OF EJS Templates
tests: handle .t files without trailing LF...
tests: handle .t files without trailing LF 9a2de8dae27b made this simple test-test.t succeed silently: $ printf ' $ true' > test-test.t but did not give a usable .err in this case: $ printf ' $ false' > test-test.t The missing LF will now be fixed in the test output and it will thus give a test failure and a solution in the .err file.

File last commit:

r12406:66a07fb7 default
r12934:ea7ad8c3 stable
Show More
test-run-tests.t
37 lines | 413 B | text/troff | Tads3Lexer
Brodie Rao
tests: require regexes in unified tests to be marked with " (re)"...
r12375 Simple commands:
$ echo foo
foo
Matt Mackall
tests: various fixes for new unified test pattern format
r12377 $ printf 'bar\nbaz\n' | cat
Brodie Rao
tests: require regexes in unified tests to be marked with " (re)"...
r12375 bar
baz
Multi-line command:
$ foo() {
> echo bar
> }
$ foo
bar
Regular expressions:
$ echo foobarbaz
foobar.* (re)
$ echo barbazquux
.*quux.* (re)
Brodie Rao
tests: add glob matching for unified tests...
r12376 Globs:
Matt Mackall
tests: various fixes for new unified test pattern format
r12377 $ printf '* \\foobarbaz {10}\n'
Brodie Rao
tests: add glob matching for unified tests...
r12376 \* \\fo?bar* {10} (glob)
Brodie Rao
tests: require regexes in unified tests to be marked with " (re)"...
r12375 Literal match ending in " (re)":
$ echo 'foo (re)'
foo (re)
Exit code:
Mads Kiilerich
tests: avoid checking the exitcode of false...
r12406 $ (exit 1)
Brodie Rao
tests: require regexes in unified tests to be marked with " (re)"...
r12375 [1]