EXTPROC _RUNCASE : : Syntax: testcase [caseid] [caseid [...]] : : Executes the specified testcase(s). : : Execute with no parameter to execute all testcases. : : Execute testcased.cmd with one testcase id as a parameter : instead, to launch the debugger with cvssec.exe and the : parameters for the specified testcase. : : Format of this file: : - first line must be "EXTPROC _RUNCASE" : - comment lines start with a colon in the first column : - testcase definition lines contain the following strings : - testcase id (must be unique) : - expected result, may be SUCCEED or FAIL : - userid : - title of testcase, eclosed in double quoted, but may : not contain double quotes ! : - command for cvssec.exe : - checkcommit _directory_ _file_ : - checktag _tagname_ ADD _directory_ _file_ : : NOTE: BASEPATH is the variable for the root directory of the : CVS directory. It is set to "testarchive" by default, : this in turn points to the dubdirectory testarchive, : containing the writeinfo file matching the testcases : in this file. :* ***** BEGIN LICENSE BLOCK ***** : Version: CDDL 1.0 : : The contents of this file are subject to the COMMON DEVELOPMENT AND : DISTRIBUTION LICENSE (CDDL) Version 1.0 (the "License"); you may not use : this file except in compliance with the License. You may obtain a copy of : the License at http://www.sun.com/cddl/ : : Software distributed under the License is distributed on an "AS IS" basis, : WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License : for the specific language governing rights and limitations under the : License. : : The Original Code is : "netlabs.org Open Source Archive Administrator/Client" : : The Original Distribution Package is named : "netlabs.org Open Source Archive Administrator/Client" : and maintained and distributed by the Initial Developer : and/or netlabs.org only. : : In addition to the CDDL the following applies: : If you modify the Original Code, you may distribute it only : as a part of a distribution package where : - the name of the package, created directories or : OS2.INI entries do not contain any of the terms : - "netlabs.org Open Source Archive" : - "NOSA" : - "NOSAC" : - "NOSAADM" : - neither netlabs.org nor the Initial Developer is stated as : the vendor or originator of the resulting Distribution Package, : which contains the Modified Code. : : The Initial Developer of the Original Code is : netlabs.org: Christian Langanke . : Portions created by the Initial Developer are Copyright (C) 1999-2008 : the Initial Developer. All Rights Reserved. : : Contributor(s): : : ***** END LICENSE BLOCK ***** */ : ------- testcases for commit with explicit ACL entry 1a SUCCEED cla "authorized commit in specified directory" checkcommit %BASEPATH%\module2 test.c 1b FAIL cla "unauthorized commit in specified directory" checkcommit %BASEPATH%\module3 test.c : ------- tescases for ACL inheritance 2a SUCCEED user4 "authorized commit in subdirectory" checkcommit %BASEPATH%\module2\submodule test.c 2b SUCCEED user4 "authorized commit in subsubdirectory" checkcommit %BASEPATH%\module2\submodule\handler\testcase test.c 2c FAIL boss "unauthorized commit in subsubdirectory" checkcommit %BASEPATH%\module2\submodule\handler\testcase test.c : ------- tescases for ACL inheritance 2d SUCCEED cla "authorized commit in directory without ACL (uses ACL of '/')" checkcommit %BASEPATH%\notspecified\submodule\handler\testcase test.c 2e FAIL boss "unauthorized commit in directory without ACL (uses ACL of '/')" checkcommit %BASEPATH%\notspecified\submodule\handler\testcase test.c 2f FAIL admin "unauthorized commit in directory with ACL (uses ACL of '/')" checkcommit %BASEPATH%\MODULE1 test.c 2g SUCCEED admin "authorized commit in all directories (uses ACL of '/')" checkcommit %BASEPATH%\MODULE9 test.c : ------- tescases for tagging 3a SUCCEED cla "authorized tag with global tagname for CVSROOT admin" checktag rev1_1 ADD %BASEPATH%\module2 test.c 3b FAIL user4 "unauthorized tag with global tagname for user" checktag rev1_1 ADD %BASEPATH%\module1 test.c 3c SUCCEED user4 "authorized tag with personal tagname for user" checktag user4_0011 ADD %BASEPATH%\module1 test.c 3d FAIL user3 "tag with personal tagname for user in unauthorized directory" checktag user3_0011 ADD %BASEPATH%\module2 test.c : -------------------------------------------------------------------------------- : ------- tescases for checking into CVSROOT 4a FAIL admin "unauthorized checkin into CVSROOT" checkcommit %BASEPATH%\CVSROOT writeinfo