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" 9optional FEATURE_CATV 10testing 'cat -e' \ 11 'cat -e' \ 12 'foo$\n' \ 13 '' \ 14 'foo\n' 15SKIP= 16 17optional FEATURE_CATV 18testing 'cat -v' \ 19 'cat -v' \ 20 'foo\n' \ 21 '' \ 22 'foo\n' 23SKIP= 24 25optional 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 49exit $FAILCOUNT 50