Author: asomers Date: Tue Nov 28 18:18:39 2017 New Revision: 326332 URL: https://svnweb.freebsd.org/changeset/base/326332
Log: MFC r323275, r324112 r323275: Add basic tests for chflags, mkdir, rcp, and rmdir 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. Submitted by: shivansh Reviewed by: asomers, brooks Sponsored by: Google, Inc (GSoC 2017) Differential Revision: https://reviews.freebsd.org/D12036 r324112: Fix Makefile entries from r323275 Reported by: Vladimir Zakharov <zakharov...@gmail.com> Reviewed by: ngie X-MFC-With: 323275 Added: stable/10/bin/chflags/tests/ - copied from r323275, head/bin/chflags/tests/ stable/10/bin/mkdir/tests/ - copied from r323275, head/bin/mkdir/tests/ stable/10/bin/rcp/tests/ - copied from r323275, head/bin/rcp/tests/ stable/10/bin/rmdir/tests/ - copied from r323275, head/bin/rmdir/tests/ Modified: stable/10/bin/chflags/Makefile stable/10/bin/mkdir/Makefile stable/10/bin/rcp/Makefile stable/10/bin/rmdir/Makefile stable/10/etc/mtree/BSD.tests.dist Directory Properties: stable/10/ (props changed) Modified: stable/10/bin/chflags/Makefile ============================================================================== --- stable/10/bin/chflags/Makefile Tue Nov 28 18:08:14 2017 (r326331) +++ stable/10/bin/chflags/Makefile Tue Nov 28 18:18:39 2017 (r326332) @@ -1,6 +1,12 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ +.include <bsd.own.mk> + +PACKAGE=runtime PROG= chflags + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include <bsd.prog.mk> Modified: stable/10/bin/mkdir/Makefile ============================================================================== --- stable/10/bin/mkdir/Makefile Tue Nov 28 18:08:14 2017 (r326331) +++ stable/10/bin/mkdir/Makefile Tue Nov 28 18:18:39 2017 (r326332) @@ -1,6 +1,12 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 # $FreeBSD$ +.include <bsd.own.mk> + +PACKAGE=runtime PROG= mkdir + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include <bsd.prog.mk> Modified: stable/10/bin/rcp/Makefile ============================================================================== --- stable/10/bin/rcp/Makefile Tue Nov 28 18:08:14 2017 (r326331) +++ stable/10/bin/rcp/Makefile Tue Nov 28 18:18:39 2017 (r326332) @@ -1,6 +1,9 @@ # @(#)Makefile 8.1 (Berkeley) 7/19/93 # $FreeBSD$ +.include <bsd.own.mk> + +PACKAGE=rcmds PROG= rcp SRCS= rcp.c util.c CFLAGS+=-DBINDIR=${BINDIR} @@ -8,5 +11,8 @@ CFLAGS+=-DBINDIR=${BINDIR} BINOWN= root BINMODE=4555 PRECIOUSPROG= + +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include <bsd.prog.mk> Modified: stable/10/bin/rmdir/Makefile ============================================================================== --- stable/10/bin/rmdir/Makefile Tue Nov 28 18:08:14 2017 (r326331) +++ stable/10/bin/rmdir/Makefile Tue Nov 28 18:18:39 2017 (r326332) @@ -1,6 +1,11 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 # $FreeBSD$ +.include <bsd.own.mk> + +PACKAGE=runtime PROG= rmdir +HAS_TESTS= +SUBDIR.${MK_TESTS}+= tests .include <bsd.prog.mk> Modified: stable/10/etc/mtree/BSD.tests.dist ============================================================================== --- stable/10/etc/mtree/BSD.tests.dist Tue Nov 28 18:08:14 2017 (r326331) +++ stable/10/etc/mtree/BSD.tests.dist Tue Nov 28 18:18:39 2017 (r326332) @@ -8,6 +8,8 @@ bin cat .. + chflags + .. chmod .. date @@ -22,11 +24,17 @@ .. ls .. + mkdir + .. mv .. pax .. pkill + .. + rcp + .. + rmdir .. sh builtins _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"