Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2018 18:11:06 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342172 - head/tests/sys/audit
Message-ID:  <201812171811.wBHIB6Hg013371@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Mon Dec 17 18:11:06 2018
New Revision: 342172
URL: https://svnweb.freebsd.org/changeset/base/342172

Log:
  audit(4) tests: require /etc/rc.d/auditd
  
  These tests should be skipped if /etc/rc.d/auditd is missing, which could be
  the case if world was built with WITHOUT_AUDIT set.  Also, one test case
  requires /etc/rc.d/accounting.
  
  Submitted by:	ngie
  MFC after:	2 weeks
  Pull Request:	https://github.com/freebsd/freebsd/pull/240

Modified:
  head/tests/sys/audit/Makefile
  head/tests/sys/audit/administrative.c

Modified: head/tests/sys/audit/Makefile
==============================================================================
--- head/tests/sys/audit/Makefile	Mon Dec 17 17:21:45 2018	(r342171)
+++ head/tests/sys/audit/Makefile	Mon Dec 17 18:11:06 2018	(r342172)
@@ -49,6 +49,7 @@ SRCS.miscellaneous+=		utils.c
 TEST_METADATA+= timeout="30"
 TEST_METADATA+= required_user="root"
 TEST_METADATA+= is_exclusive="true"
+TEST_METADATA+=	required_files="/etc/rc.d/auditd"
 
 WARNS?=	6
 

Modified: head/tests/sys/audit/administrative.c
==============================================================================
--- head/tests/sys/audit/administrative.c	Mon Dec 17 17:21:45 2018	(r342171)
+++ head/tests/sys/audit/administrative.c	Mon Dec 17 18:11:06 2018	(r342172)
@@ -377,6 +377,8 @@ ATF_TC_HEAD(acct_success, tc)
 {
 	atf_tc_set_md_var(tc, "descr", "Tests the audit of a successful "
 					"acct(2) call");
+	atf_tc_set_md_var(tc, "require.files",
+	    "/etc/rc.d/accounting /etc/rc.d/auditd");
 }
 
 ATF_TC_BODY(acct_success, tc)



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