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-- 503 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
> /Please specify at least one test file or directory/
>= !0

# 2. XXX a bad executable should error without running tests
#$ shelltest --with nosuchexe
#> /Total +0/

# 3. a bad executable with testfiles should fail
$ shelltest --with nosuchexe tests/format2/args.test
> /user error/
>= 1

# 4. a bad testfile should fail
$ shelltest --with cat nosuchtestfile
>2 /No such file/
>= 1

# a final comment