From 0306a0a804523f943f01cf085675a0640a3f5eb0 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 9 Oct 2014 00:50:33 +0000 Subject: [PATCH] Integrate usr.bin/cmp/tests from NetBSD into atf/kyua In collaboration with: sjg Sponsored by: EMC / Isilon Storage Division --- etc/mtree/BSD.tests.dist | 2 ++ usr.bin/cmp/Makefile | 6 ++++++ usr.bin/cmp/tests/Makefile | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 usr.bin/cmp/tests/Makefile diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index 0042e9c7302b..66367cc68b52 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -245,6 +245,8 @@ .. calendar .. + cmp + .. comm .. file2c diff --git a/usr.bin/cmp/Makefile b/usr.bin/cmp/Makefile index d93f54bc0fd5..5b9fdfc23a2a 100644 --- a/usr.bin/cmp/Makefile +++ b/usr.bin/cmp/Makefile @@ -1,7 +1,13 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ +.include + PROG= cmp SRCS= cmp.c link.c misc.c regular.c special.c +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + .include diff --git a/usr.bin/cmp/tests/Makefile b/usr.bin/cmp/tests/Makefile new file mode 100644 index 000000000000..1c054c6888f8 --- /dev/null +++ b/usr.bin/cmp/tests/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.bin/cmp +.PATH: ${TESTSRC} + +.include + +TESTSDIR= ${TESTSBASE}/usr.bin/cmp +ATF_TESTS_SH= cmp_test +ATF_TESTS_SH_SRC_cmp_test= t_cmp.sh + +.include