summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-09 06:50:42 +0000
committerngie <ngie@FreeBSD.org>2015-11-09 06:50:42 +0000
commitbf233cc247b9545acd0eb9120cd5a2962a06fd0d (patch)
tree5156a14d761c546827529b1647dda5dd49dfb414 /bin
parente81257014289b0a30dd6a411bd6b39283e641ed2 (diff)
downloadFreeBSD-src-bf233cc247b9545acd0eb9120cd5a2962a06fd0d.zip
FreeBSD-src-bf233cc247b9545acd0eb9120cd5a2962a06fd0d.tar.gz
MFC r289487:
Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as bin/dd/tests Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used in validating the characters read from /dev/zero Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'bin')
-rw-r--r--bin/dd/Makefile6
-rw-r--r--bin/dd/tests/Makefile12
2 files changed, 18 insertions, 0 deletions
diff --git a/bin/dd/Makefile b/bin/dd/Makefile
index eb8ec85..db6e854 100644
--- a/bin/dd/Makefile
+++ b/bin/dd/Makefile
@@ -1,6 +1,8 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= dd
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
@@ -24,4 +26,8 @@ test: ${PROG} gen
.endfor
@rm -f gen
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
diff --git a/bin/dd/tests/Makefile b/bin/dd/tests/Makefile
new file mode 100644
index 0000000..f87af65
--- /dev/null
+++ b/bin/dd/tests/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+OBJTOP= ${.OBJDIR:H:H:H}
+SRCTOP= ${.CURDIR:H:H:H}
+TESTSRC= ${SRCTOP}/contrib/netbsd-tests/bin/dd
+TESTSDIR= ${TESTSBASE}/bin/dd
+
+NETBSD_ATF_TESTS_SH= dd_test
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.test.mk>
OpenPOWER on IntegriCloud