File: args.test

package info (click to toggle)
shelltestrunner 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 896 kB
  • sloc: haskell: 881; makefile: 60; sh: 1
file content (22 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (2)
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