svn commit: r326299 - in stable/11: bin/chflags bin/chflags/tests bin/mkdir bin/mkdir/tests bin/rcp bin/rcp/tests bin/rmdir bin/rmdir/tests etc/mtree
Alan Somers
asomers at FreeBSD.org
Tue Nov 28 00:40:00 UTC 2017
Author: asomers
Date: Tue Nov 28 00:39:58 2017
New Revision: 326299
URL: https://svnweb.freebsd.org/changeset/base/326299
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.vv at gmail.com>
Reviewed by: ngie
X-MFC-With: 323275
Added:
stable/11/bin/chflags/tests/
- copied from r323275, head/bin/chflags/tests/
stable/11/bin/mkdir/tests/
- copied from r323275, head/bin/mkdir/tests/
stable/11/bin/rcp/tests/
- copied from r323275, head/bin/rcp/tests/
stable/11/bin/rmdir/tests/
- copied from r323275, head/bin/rmdir/tests/
Modified:
stable/11/bin/chflags/Makefile
stable/11/bin/mkdir/Makefile
stable/11/bin/rcp/Makefile
stable/11/bin/rmdir/Makefile
stable/11/etc/mtree/BSD.tests.dist
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/bin/chflags/Makefile
==============================================================================
--- stable/11/bin/chflags/Makefile Tue Nov 28 00:19:04 2017 (r326298)
+++ stable/11/bin/chflags/Makefile Tue Nov 28 00:39:58 2017 (r326299)
@@ -1,7 +1,12 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
+.include <src.opts.mk>
+
PACKAGE=runtime
PROG= chflags
+
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: stable/11/bin/mkdir/Makefile
==============================================================================
--- stable/11/bin/mkdir/Makefile Tue Nov 28 00:19:04 2017 (r326298)
+++ stable/11/bin/mkdir/Makefile Tue Nov 28 00:39:58 2017 (r326299)
@@ -1,7 +1,12 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
+.include <src.opts.mk>
+
PACKAGE=runtime
PROG= mkdir
+
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: stable/11/bin/rcp/Makefile
==============================================================================
--- stable/11/bin/rcp/Makefile Tue Nov 28 00:19:04 2017 (r326298)
+++ stable/11/bin/rcp/Makefile Tue Nov 28 00:39:58 2017 (r326299)
@@ -1,6 +1,8 @@
# @(#)Makefile 8.1 (Berkeley) 7/19/93
# $FreeBSD$
+.include <src.opts.mk>
+
PACKAGE=rcmds
PROG= rcp
SRCS= rcp.c util.c
@@ -10,5 +12,8 @@ PACKAGE=rcmds
BINOWN= root
BINMODE=4555
+
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: stable/11/bin/rmdir/Makefile
==============================================================================
--- stable/11/bin/rmdir/Makefile Tue Nov 28 00:19:04 2017 (r326298)
+++ stable/11/bin/rmdir/Makefile Tue Nov 28 00:39:58 2017 (r326299)
@@ -1,7 +1,11 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
+.include <src.opts.mk>
+
PACKAGE=runtime
PROG= rmdir
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: stable/11/etc/mtree/BSD.tests.dist
==============================================================================
--- stable/11/etc/mtree/BSD.tests.dist Tue Nov 28 00:19:04 2017 (r326298)
+++ stable/11/etc/mtree/BSD.tests.dist Tue Nov 28 00:39:58 2017 (r326299)
@@ -8,6 +8,8 @@
bin
cat
..
+ chflags
+ ..
chmod
..
date
@@ -22,6 +24,8 @@
..
ls
..
+ mkdir
+ ..
mv
..
pax
@@ -29,6 +33,10 @@
pkill
..
pwait
+ ..
+ rcp
+ ..
+ rmdir
..
sh
builtins
More information about the svn-src-stable-11
mailing list