From owner-svn-src-stable@freebsd.org Tue Dec 26 03:59:51 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B949E9AF69; Tue, 26 Dec 2017 03:59:51 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3AFD03905; Tue, 26 Dec 2017 03:59:51 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBQ3xodS059680; Tue, 26 Dec 2017 03:59:50 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBQ3xnca059676; Tue, 26 Dec 2017 03:59:49 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201712260359.vBQ3xnca059676@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Tue, 26 Dec 2017 03:59:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r327186 - in stable/11: cddl/usr.bin/ctfconvert cddl/usr.bin/ctfconvert/tests etc/mtree usr.bin/fold usr.bin/fold/tests usr.bin/rs usr.bin/rs/tests X-SVN-Group: stable-11 X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in stable/11: cddl/usr.bin/ctfconvert cddl/usr.bin/ctfconvert/tests etc/mtree usr.bin/fold usr.bin/fold/tests usr.bin/rs usr.bin/rs/tests X-SVN-Commit-Revision: 327186 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 03:59:51 -0000 Author: asomers Date: Tue Dec 26 03:59:49 2017 New Revision: 327186 URL: https://svnweb.freebsd.org/changeset/base/327186 Log: MFC r326289: Add basic tests for ctfconvert(1), fold(1) and rs(1) Add basic command line parsing test coverage for these utilities. The tests were automatically generated based on their man pages. These tests can be expanded by hand for more thorough coverage. The aim is to generate very basic amount of test coverage for all the utilities in the base system. Tests generated via: https://github.com/shivansh/smoketestsuite/ Submitted by: shivansh Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D12424 Added: stable/11/cddl/usr.bin/ctfconvert/tests/ - copied from r326289, head/cddl/usr.bin/ctfconvert/tests/ stable/11/usr.bin/fold/tests/ - copied from r326289, head/usr.bin/fold/tests/ stable/11/usr.bin/rs/tests/ - copied from r326289, head/usr.bin/rs/tests/ Modified: stable/11/cddl/usr.bin/ctfconvert/Makefile stable/11/etc/mtree/BSD.tests.dist stable/11/usr.bin/fold/Makefile stable/11/usr.bin/rs/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/cddl/usr.bin/ctfconvert/Makefile ============================================================================== --- stable/11/cddl/usr.bin/ctfconvert/Makefile Mon Dec 25 23:01:09 2017 (r327185) +++ stable/11/cddl/usr.bin/ctfconvert/Makefile Tue Dec 26 03:59:49 2017 (r327186) @@ -1,5 +1,7 @@ # $FreeBSD$ +.include + .PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common .PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/cvt @@ -35,5 +37,8 @@ CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ -I${OPENSOLARIS_SYS_DISTDIR}/uts/common LIBADD= dwarf elf z pthread + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include Modified: stable/11/etc/mtree/BSD.tests.dist ============================================================================== --- stable/11/etc/mtree/BSD.tests.dist Mon Dec 25 23:01:09 2017 (r327185) +++ stable/11/etc/mtree/BSD.tests.dist Tue Dec 26 03:59:49 2017 (r327186) @@ -65,6 +65,8 @@ sbin .. usr.bin + ctfconvert + .. .. usr.sbin dtrace @@ -640,6 +642,8 @@ .. file2c .. + fold + .. getconf .. grep @@ -671,6 +675,8 @@ printf .. procstat + .. + rs .. sdiff .. Modified: stable/11/usr.bin/fold/Makefile ============================================================================== --- stable/11/usr.bin/fold/Makefile Mon Dec 25 23:01:09 2017 (r327185) +++ stable/11/usr.bin/fold/Makefile Tue Dec 26 03:59:49 2017 (r327186) @@ -1,6 +1,11 @@ # From: @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ +.include + PROG= fold + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include Modified: stable/11/usr.bin/rs/Makefile ============================================================================== --- stable/11/usr.bin/rs/Makefile Mon Dec 25 23:01:09 2017 (r327185) +++ stable/11/usr.bin/rs/Makefile Tue Dec 26 03:59:49 2017 (r327186) @@ -1,5 +1,11 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ +.include + PROG= rs + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include