blob: cf924ab5b7ac0546568474aa82dda037e4dfb4e4 [file] [log] [blame]
Denys Vlasenkod80eecb2018-04-29 14:05:43 +02001#!/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 Vlasenko75100502018-06-27 09:57:30 +02009optional FEATURE_CATV
Denys Vlasenkod80eecb2018-04-29 14:05:43 +020010testing 'cat -e' \
11 'cat -e' \
12 'foo$\n' \
13 '' \
14 'foo\n'
Denys Vlasenko75100502018-06-27 09:57:30 +020015SKIP=
Denys Vlasenkod80eecb2018-04-29 14:05:43 +020016
Denys Vlasenko75100502018-06-27 09:57:30 +020017optional FEATURE_CATV
Denys Vlasenkod80eecb2018-04-29 14:05:43 +020018testing 'cat -v' \
19 'cat -v' \
20 'foo\n' \
21 '' \
22 'foo\n'
Denys Vlasenko75100502018-06-27 09:57:30 +020023SKIP=
Denys Vlasenkod80eecb2018-04-29 14:05:43 +020024
Ron Yorstonc849e722021-01-21 08:40:54 +000025optional FEATURE_CATN
26testing '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'
35SKIP=
36
37optional FEATURE_CATN
38testing 'cat -b' \
39 'cat -b' \
40"\
41 1 line 1
42
43 2 line 3
44" \
45 '' \
46 'line 1\n\nline 3\n'
47SKIP=
48
Denys Vlasenkod80eecb2018-04-29 14:05:43 +020049exit $FAILCOUNT