freebsd-skq/usr.bin/ident/tests/ident_test.sh
ngie 5ad4f59bfb 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

17 lines
468 B
Bash
Executable File

# $FreeBSD$
atf_test_case ident
ident_body() {
atf_check -o file:$(atf_get_srcdir)/test.out \
ident < $(atf_get_srcdir)/test.in
atf_check -o match:'Foo.*' -s exit:1 \
-e inline:"ident warning: no id keywords in $(atf_get_srcdir)/testnoid\n" \
ident $(atf_get_srcdir)/test.in $(atf_get_srcdir)/testnoid
atf_check -o match:'Foo.*' -s exit:1 \
ident -q $(atf_get_srcdir)/test.in $(atf_get_srcdir)/testnoid
}
atf_init_test_cases()
{
atf_add_test_case ident
}