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
Alan Somers
asomers at FreeBSD.org
Tue Dec 26 03:59:51 UTC 2017
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 <src.opts.mk>
+
.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 <bsd.prog.mk>
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 <src.opts.mk>
+
PROG= fold
+
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
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 <src.opts.mk>
+
PROG= rs
+
+HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
More information about the svn-src-stable
mailing list