diff options
Diffstat (limited to 'testsuite/cat.tests')
-rwxr-xr-x | testsuite/cat.tests | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/cat.tests b/testsuite/cat.tests new file mode 100755 index 000000000..404ebedeb --- /dev/null +++ b/testsuite/cat.tests | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com> | ||
4 | # Licensed under GPLv2, see file LICENSE in this source tree. | ||
5 | |||
6 | . ./testing.sh | ||
7 | |||
8 | # testing "description" "command" "result" "infile" "stdin" | ||
9 | testing 'cat -e' \ | ||
10 | 'cat -e' \ | ||
11 | 'foo$\n' \ | ||
12 | '' \ | ||
13 | 'foo\n' | ||
14 | |||
15 | testing 'cat -v' \ | ||
16 | 'cat -v' \ | ||
17 | 'foo\n' \ | ||
18 | '' \ | ||
19 | 'foo\n' | ||
20 | |||
21 | exit $FAILCOUNT | ||