Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2007 09:38:25 GMT
From:      Zhouyi ZHOU <zhouzhouyi@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 124109 for review
Message-ID:  <200707260938.l6Q9cPHY084581@repoman.freebsd.org>

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



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