aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ident/tests/ident_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ident/tests/ident_test.sh')
-rwxr-xr-xusr.bin/ident/tests/ident_test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.bin/ident/tests/ident_test.sh b/usr.bin/ident/tests/ident_test.sh
new file mode 100755
index 000000000000..5422a9708d65
--- /dev/null
+++ b/usr.bin/ident/tests/ident_test.sh
@@ -0,0 +1,15 @@
+
+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
+}