Author: ngie
Date: Mon Jul 17 20:57:38 2017
New Revision: 321084
URL: https://svnweb.freebsd.org/changeset/base/321084
Log:
MFC r318325:
Start writing up some basic feature tests for procstat
These tests query a running process for information related to the -b,
-c, -e, and -f flags; the -f testcase is largely stubbed out, pending
additional work to determine a good, deterministic descriptor.
Core file test support is coming soon--it requires a bit more effort
due to the fact that:
- coredumps can be disabled (kern.coredump=0).
- corefiles can be put in different directories than the current
directory, or be named something other than `<prog>.core`
(`kern.corefile`).
Added:
stable/10/usr.bin/procstat/tests/
- copied from r318325, head/usr.bin/procstat/tests/
Modified:
stable/10/etc/mtree/BSD.tests.dist
stable/10/usr.bin/procstat/Makefile
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/etc/mtree/BSD.tests.dist
==============================================================================
--- stable/10/etc/mtree/BSD.tests.dist Mon Jul 17 20:54:59 2017
(r321083)
+++ stable/10/etc/mtree/BSD.tests.dist Mon Jul 17 20:57:38 2017
(r321084)
@@ -616,6 +616,8 @@
..
printf
..
+ procstat
+ ..
sed
regress.multitest.out
..
Modified: stable/10/usr.bin/procstat/Makefile
==============================================================================
--- stable/10/usr.bin/procstat/Makefile Mon Jul 17 20:54:59 2017
(r321083)
+++ stable/10/usr.bin/procstat/Makefile Mon Jul 17 20:57:38 2017
(r321084)
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= procstat
MAN= procstat.1
SRCS= procstat.c \
@@ -19,5 +21,9 @@ SRCS= procstat.c \
LDADD+= -lutil -lprocstat -lkvm
DPADD+= ${LIBUTIL} ${LIBPROCSTAT} ${LIBKVM}
+
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
.include <bsd.prog.mk>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"