summaryrefslogtreecommitdiff
path: root/usr.bin/uniq
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-01-14 06:51:31 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-01-14 06:51:31 +0000
commit71164a14d098d70379f47fa051f005145e676336 (patch)
tree2cfa41332d757c50de5d0fae22df70f31d04f8cf /usr.bin/uniq
parent63d1fd5970ec814904aa0f4580b10a0d302d08b2 (diff)
downloadsrc-test-71164a14d098d70379f47fa051f005145e676336.tar.gz
src-test-71164a14d098d70379f47fa051f005145e676336.zip
Integrate .../contrib/netbsd-tests/usr.bin/uniq into the FreeBSD test
suite as .../usr.bin/uniq/tests Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312127
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r--usr.bin/uniq/Makefile6
-rw-r--r--usr.bin/uniq/tests/Makefile16
-rw-r--r--usr.bin/uniq/tests/Makefile.depend11
3 files changed, 33 insertions, 0 deletions
diff --git a/usr.bin/uniq/Makefile b/usr.bin/uniq/Makefile
index 2bcf18e53703a..c6ca3691d1e09 100644
--- a/usr.bin/uniq/Makefile
+++ b/usr.bin/uniq/Makefile
@@ -1,6 +1,12 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
+.include <src.opts.mk>
+
PROG= uniq
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
diff --git a/usr.bin/uniq/tests/Makefile b/usr.bin/uniq/tests/Makefile
new file mode 100644
index 0000000000000..06a384eface5b
--- /dev/null
+++ b/usr.bin/uniq/tests/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+PACKAGE= tests
+
+NETBSD_ATF_TESTS_SH= uniq_test
+
+${PACKAGE}FILES+= d_basic.in
+${PACKAGE}FILES+= d_basic.out
+${PACKAGE}FILES+= d_counts.out
+${PACKAGE}FILES+= d_input.in
+${PACKAGE}FILES+= d_show_duplicates.out
+${PACKAGE}FILES+= d_show_uniques.out
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.test.mk>
diff --git a/usr.bin/uniq/tests/Makefile.depend b/usr.bin/uniq/tests/Makefile.depend
new file mode 100644
index 0000000000000..f80275d86ab17
--- /dev/null
+++ b/usr.bin/uniq/tests/Makefile.depend
@@ -0,0 +1,11 @@
+# $FreeBSD$
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif