User: starksm 
  Date: 01/05/21 22:20:38

  Modified:    src/build run_tests.xml
  Log:
  Include the basic declartive security tests in the default test suite
  
  Revision  Changes    Path
  1.9       +27 -2     jbosstest/src/build/run_tests.xml
  
  Index: run_tests.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/build/run_tests.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- run_tests.xml     2001/05/22 04:03:27     1.8
  +++ run_tests.xml     2001/05/22 05:20:38     1.9
  @@ -2,7 +2,7 @@
   
   <!-- An ant build file for running the test code against a
   JBoss server dist
  -$Revision: 1.8 $
  +$Revision: 1.9 $
   -->
   <project name="JBossUnitTests" default="run-tests" basedir="../../">
   
  @@ -75,6 +75,7 @@
       <target name="run-tests" depends="build" if="junit.present">
   
           <antcall target="standard-tests" />
  +        <antcall target="basic-security-tests" />
   
           <!-- Check if the security setup steps have been performed -->
           <available property="security.configured" 
file="${jboss.home}/bin/SRPVerifierStore.ser" />
  @@ -105,9 +106,33 @@
                       <include name="**/test/*/test/Test*.java" />
                       <include name="**/test/*/test/AllJUnitTests.java" />
                       <include name="**/test/*/test/Main.java" />
  -                    <exclude name="**/test/security/test/Test*.java" />
  +                    <exclude name="**/test/security/test/*" />
                   </fileset>
               </batchtest>
  +        </junit>
  +    </target>
  +
  +    <target name="basic-security-tests">
  +        <junit printsummary="no" haltonfailure="yes" fork="true"
  +          dir="${build.classes.dir}" timeout="120000"
  +        >
  +            <jvmarg value="-Djava.security.manager" />
  +            <jvmarg 
value="-Djava.security.policy=${src.resources}/security/tst.policy" />
  +            <jvmarg 
value="-Djava.security.auth.login.config=${src.resources}/security/auth.conf" />
  +            <jvmarg value="-Djbosstest.deploy.dir=${build.deploy.dir}" />
  +            <classpath>
  +                <path refid="test.classpath" />
  +                <pathelement path="${src.resources}/security" />
  +            </classpath>
  +
  +            <formatter type="xml" usefile="true" />
  +
  +            <batchtest>
  +                <fileset dir="${src.dir}">
  +                    <include name="**/test/security/test/TestEJBSpec.java" />
  +                </fileset>
  +            </batchtest>
  +
           </junit>
       </target>
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to