svn commit: r321083 - in stable/11: etc/mtree usr.bin/procstat usr.bin/procstat/tests

Ngie Cooper ngie at FreeBSD.org
Mon Jul 17 20:55:00 UTC 2017


Author: ngie
Date: Mon Jul 17 20:54:59 2017
New Revision: 321083
URL: https://svnweb.freebsd.org/changeset/base/321083

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/11/usr.bin/procstat/tests/
     - copied from r318325, head/usr.bin/procstat/tests/
Modified:
  stable/11/etc/mtree/BSD.tests.dist
  stable/11/usr.bin/procstat/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/etc/mtree/BSD.tests.dist
==============================================================================
--- stable/11/etc/mtree/BSD.tests.dist	Mon Jul 17 18:33:30 2017	(r321082)
+++ stable/11/etc/mtree/BSD.tests.dist	Mon Jul 17 20:54:59 2017	(r321083)
@@ -640,6 +640,8 @@
         ..
         printf
         ..
+        procstat
+        ..
         sdiff
         ..
         sed

Modified: stable/11/usr.bin/procstat/Makefile
==============================================================================
--- stable/11/usr.bin/procstat/Makefile	Mon Jul 17 18:33:30 2017	(r321082)
+++ stable/11/usr.bin/procstat/Makefile	Mon Jul 17 20:54:59 2017	(r321083)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+.include <src.opts.mk>
+
 PROG=	procstat
 MAN=	procstat.1
 SRCS=	procstat.c		\
@@ -18,5 +20,9 @@ SRCS=	procstat.c		\
 	procstat_vm.c
 
 LIBADD+=	procstat xo util sbuf
+
+.if ${MK_TESTS} != "no"
+SUBDIR+=	tests
+.endif
 
 .include <bsd.prog.mk>


More information about the svn-src-all mailing list