Denys Vlasenko | d80eecb | 2018-04-29 14:05:43 +0200 | [diff] [blame] | 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" |
Denys Vlasenko | 7510050 | 2018-06-27 09:57:30 +0200 | [diff] [blame] | 9 | optional FEATURE_CATV |
Denys Vlasenko | d80eecb | 2018-04-29 14:05:43 +0200 | [diff] [blame] | 10 | testing 'cat -e' \ |
| 11 | 'cat -e' \ |
| 12 | 'foo$\n' \ |
| 13 | '' \ |
| 14 | 'foo\n' |
Denys Vlasenko | 7510050 | 2018-06-27 09:57:30 +0200 | [diff] [blame] | 15 | SKIP= |
Denys Vlasenko | d80eecb | 2018-04-29 14:05:43 +0200 | [diff] [blame] | 16 | |
Denys Vlasenko | 7510050 | 2018-06-27 09:57:30 +0200 | [diff] [blame] | 17 | optional FEATURE_CATV |
Denys Vlasenko | d80eecb | 2018-04-29 14:05:43 +0200 | [diff] [blame] | 18 | testing 'cat -v' \ |
| 19 | 'cat -v' \ |
| 20 | 'foo\n' \ |
| 21 | '' \ |
| 22 | 'foo\n' |
Denys Vlasenko | 7510050 | 2018-06-27 09:57:30 +0200 | [diff] [blame] | 23 | SKIP= |
Denys Vlasenko | d80eecb | 2018-04-29 14:05:43 +0200 | [diff] [blame] | 24 | |
Ron Yorston | c849e72 | 2021-01-21 08:40:54 +0000 | [diff] [blame] | 25 | optional FEATURE_CATN |
| 26 | testing 'cat -n' \ |
| 27 | 'cat -n' \ |
| 28 | "\ |
| 29 | 1 line 1 |
| 30 | 2 |
| 31 | 3 line 3 |
| 32 | " \ |
| 33 | '' \ |
| 34 | 'line 1\n\nline 3\n' |
| 35 | SKIP= |
| 36 | |
| 37 | optional FEATURE_CATN |
| 38 | testing 'cat -b' \ |
| 39 | 'cat -b' \ |
| 40 | "\ |
| 41 | 1 line 1 |
| 42 | |
| 43 | 2 line 3 |
| 44 | " \ |
| 45 | '' \ |
| 46 | 'line 1\n\nline 3\n' |
| 47 | SKIP= |
| 48 | |
Denys Vlasenko | d80eecb | 2018-04-29 14:05:43 +0200 | [diff] [blame] | 49 | exit $FAILCOUNT |