1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# Test file format 1 - one or more tests, each specifying its input.
#
# OPTIONAL WHITESPACE/#COMMENT
# COMMAND LINE
# OPTIONAL <<< INPUT
# OPTIONAL >>> OUTPUT/REGEX
# OPTIONAL >>>2 STDERR/REGEX
# >>>= STATUS/REGEX
# 0 OR MORE ADDITIONAL TESTS
#
# The command line and exit status check are required.
# stdout/stderr are not checked implicitly.
# Comment & whitespace lines before and after tests are ignored.
cat
<<<
A
>>>
A
>>>2
>>>= 0
cat
<<<
A
>>>
A
>>>2
>>>= 0
#
|