freebsd-dev/usr.bin/col/tests/col_test.sh
Enji Cooper 458cbf0ae6 Rename tests from <foo> to <foo>_test to match the FreeBSD test suite
naming scheme

usr.bin/diff/diff_test was renamed to usr.bin/diff/netbsd_diff_test
to avoid collisions with the renamed FreeBSD test.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
2017-03-23 03:28:24 +00:00

34 lines
455 B
Bash
Executable File

# $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
}