1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# test with various arguments
#
# 1. with no args, should run all tests below current dir
# shelltest
# >>> /Not enough non-flag arguments/
# >>>= !0
#
# 2. a bad executable with no testfiles is accepted
# XXX should really error
#shelltest nosuchexe
#>>> /Total +0/
#
# 3. a bad executable with testfiles should fail
shelltest --with nosuchexe tests/format1/args.test
>>> /user error/
>>>= 1
#
# 4. a bad testfile should fail
shelltest --with cat nosuchtestfile
>>>2 /No such file/
>>>= 1
# a final comment
|