xref: /freebsd/usr.bin/col/tests/col_test.sh (revision f3c5273d315a64826d2149ac453ff8c4583ddbe8)
1# $FreeBSD$
2
3atf_test_case rlf
4
5rlf_head()
6{
7	atf_set "descr" "testing reverse line feed"
8}
9rlf_body()
10{
11	atf_check \
12		-o inline:"a b\n" \
13		-e empty \
14		-s exit:0 \
15		col < $(atf_get_srcdir)/rlf.in
16
17	atf_check \
18		-o inline:"a	b\n" \
19		-e empty \
20		-s exit:0 \
21		col < $(atf_get_srcdir)/rlf2.in
22
23	atf_check \
24		-o inline:"a       b\n" \
25		-e empty \
26		-s exit:0 \
27		col -x < $(atf_get_srcdir)/rlf2.in
28}
29
30atf_init_test_cases()
31{
32	atf_add_test_case rlf
33}
34