diff options
Diffstat (limited to 'usr.bin/col/tests/col.sh')
-rwxr-xr-x | usr.bin/col/tests/col.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/usr.bin/col/tests/col.sh b/usr.bin/col/tests/col.sh new file mode 100755 index 0000000..c072aab --- /dev/null +++ b/usr.bin/col/tests/col.sh @@ -0,0 +1,33 @@ +# $FreeBSD$ + +atf_test_case rlf + +rlf_head() +{ + atf_set "descr" "testing reverse line feed" +} +rlf_body() +{ + atf_check \ + -o inline:"a b\n" \ + -e empty \ + -s exit:0 \ + col < $(atf_get_srcdir)/rlf.in + + atf_check \ + -o inline:"a b\n" \ + -e empty \ + -s exit:0 \ + col < $(atf_get_srcdir)/rlf2.in + + atf_check \ + -o inline:"a b\n" \ + -e empty \ + -s exit:0 \ + col -x < $(atf_get_srcdir)/rlf2.in +} + +atf_init_test_cases() +{ + atf_add_test_case rlf +} |