Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/wc/tests/linecnt.sh
Property | Old Value | New Value |
---|---|---|
svn:executable | null | * \ No newline at end of property |
atf_test_case linecnt | |||||
linecnt_head() { | |||||
atf_set "descr" "Test wc(1)'s line counting fast path" | |||||
} | |||||
linecnt_body() { | |||||
atf_check -o match:'^ *0$' wc -l < /dev/null | |||||
atf_check -o match:'^ *0 +0$' wc -lL < /dev/null | |||||
atf_check -o match:'^ *27$' wc -l < "$(atf_get_srcdir)/linecnt.in" | |||||
atf_check -o match:'^ *27 +26$' wc -lL < "$(atf_get_srcdir)/linecnt.in" | |||||
true | |||||
} | |||||
atf_init_test_cases() | |||||
{ | |||||
atf_add_test_case linecnt | |||||
} |