From owner-p4-projects@FreeBSD.ORG Thu Jul 26 09:38:26 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 75BF616A420; Thu, 26 Jul 2007 09:38:26 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3CC916A41B for ; Thu, 26 Jul 2007 09:38:25 +0000 (UTC) (envelope-from zhouzhouyi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B439D13C45E for ; Thu, 26 Jul 2007 09:38:25 +0000 (UTC) (envelope-from zhouzhouyi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6Q9cPmS084584 for ; Thu, 26 Jul 2007 09:38:25 GMT (envelope-from zhouzhouyi@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6Q9cPHY084581 for perforce@freebsd.org; Thu, 26 Jul 2007 09:38:25 GMT (envelope-from zhouzhouyi@FreeBSD.org) Date: Thu, 26 Jul 2007 09:38:25 GMT Message-Id: <200707260938.l6Q9cPHY084581@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to zhouzhouyi@FreeBSD.org using -f From: Zhouyi ZHOU To: Perforce Change Reviews Cc: Subject: PERFORCE change 124109 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 09:38:26 -0000 http://perforce.freebsd.org/chv.cgi?CH=124109 Change 124109 by zhouzhouyi@zhouzhouyi_mactest on 2007/07/26 09:37:56 test case for mdconfig which open /dev/mdctl with rdonnly flags Affected files ... .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/Makefile#3 edit .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mdconfig#1 add .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mdconfig.c#1 add .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/link/01.t#4 edit .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/mdconfig/00.t#1 add .. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/misc.sh#13 edit Differences ... ==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/Makefile#3 (text+ko) ==== @@ -6,13 +6,15 @@ #CFLAGS+=-DHAS_TRUNCATE64 #CFLAGS+=-DHAS_STAT64 -all: macproc mactest +all: macproc mactest mdconfigopenrdonly macproc: macproc.c gcc -Wall ${CFLAGS} macproc.c -o macproc -lutil mactest: mactest.c mactestparser.tab.c gcc ${CFLAGS} mactest.c mactestparser.tab.c -o mactest +mdconfigopenrdonly: mdconfig.c + gcc ${CFLAGS} -o mdconfigopenrdonly mdconfig.c -lutil -lgeom -lbsdxml -lsbuf clean: rm -f macproc ==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/link/01.t#4 (text+ko) ==== @@ -80,7 +80,12 @@ #case 10: lookup the previous touched file mactestexpect "" ${n1} -m "mls/low(low-high)" -f ${mactest_conf} system ls ${n2} - umount ${n2} + +#case 11: unmount + mactestexpect "" "" -m "mls/low(low-high)" -f ${mactest_conf} system umount ${n2} + +#case 12: detach + mactestexpect "" "*" -m "mls/low(low-high)" -f ${mactest_conf} system mdconfig -d -u ${mdnum} #cleanup: t=`sysctl security.mac.mls.enabled=0` echo "disabling mac/mls!" ==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/tests/misc.sh#13 (text+ko) ==== @@ -17,6 +17,7 @@ macproc="${maindir}/macproc" mactest="${maindir}/mactest" +mdconfigopenrdonly="${maindir}/mdconfigopenrdonly" . ${maindir}/tests/conf