Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2017 20:57:38 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r321084 - in stable/10: etc/mtree usr.bin/procstat usr.bin/procstat/tests
Message-ID:  <201707172057.v6HKvcBh049789@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707172057.v6HKvcBh049789>