]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - usr.bin/col/tests/col.sh
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.git] / usr.bin / col / tests / col.sh
1 # $FreeBSD$
2
3 atf_test_case rlf
4
5 rlf_head()
6 {
7         atf_set "descr" "testing reverse line feed"
8 }
9 rlf_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
30 atf_init_test_cases()
31 {
32         atf_add_test_case rlf
33 }