xref: /freebsd/usr.bin/col/tests/col_test.sh (revision 834063202a16592e1ef5c3a9fbd04ca5f1df3ed0)
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