From owner-svn-src-stable@freebsd.org Mon Jul 17 20:57:39 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C64F6DA07E1; Mon, 17 Jul 2017 20:57:39 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9220A71198; Mon, 17 Jul 2017 20:57:39 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6HKvcsi049791; Mon, 17 Jul 2017 20:57:38 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6HKvcBh049789; Mon, 17 Jul 2017 20:57:38 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201707172057.v6HKvcBh049789@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Mon, 17 Jul 2017 20:57:38 +0000 (UTC) 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 X-SVN-Group: stable-10 X-SVN-Commit-Author: ngie X-SVN-Commit-Paths: in stable/10: etc/mtree usr.bin/procstat usr.bin/procstat/tests X-SVN-Commit-Revision: 321084 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 20:57:39 -0000 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 `.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 + 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