c048a83f51
Rationale: ident(1) is useful out of RCS, lot of scripts are using ident(1) and failing when base is built WITHOUT_RCS. This version is: - fully compatible with RCS 5.7 ident. - fully compatible with RCS 5.9 ident. - passes all ident test from GNU RCS 5.9 test suite This version has support for: svn extension for the Keyword id (double colon and # before last $) Différences with GNU RCS ident: - no long options as found in GNU RCS 5.9 (but not commented there). - '-V' reports nothing but has been added for compatibility. Differential Revision: https://reviews.freebsd.org/D3200 Reviewed by: pfg
17 lines
468 B
Bash
Executable File
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
|
|
}
|