Update of /var/cvs/tests
In directory james.mmbase.org:/tmp/cvs-serv13214

Modified Files:
        build.xml Makefile 
Log Message:
will add test cases for the much used cloud context security implemenation 
(which I'm working on)


See also: http://cvs.mmbase.org/viewcvs/tests


Index: build.xml
===================================================================
RCS file: /var/cvs/tests/build.xml,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -b -r1.72 -r1.73
--- build.xml   18 Nov 2008 12:58:16 -0000      1.72
+++ build.xml   16 Dec 2008 15:32:54 -0000      1.73
@@ -1,5 +1,10 @@
 <project name="MMBaseTest" default="run.all" basedir=".">
 
+  <assertions>
+    <enable/>
+  </assertions>
+
+
   <!-- =================================================================== -->
   <!-- Init                                                                -->
   <!-- =================================================================== -->
@@ -78,6 +83,9 @@
       <param name="name" value="mmbase-clustering" />
     </antcall>
     <antcall target="install.jar">
+      <param name="name" value="mmbase-cloudcontext" />
+    </antcall>
+    <antcall target="install.jar">
       <param name="name" value="mmbase-richtext" />
     </antcall>
     <antcall target="vpro-wizards"/>
@@ -167,6 +175,12 @@
           <include name="mmbase-clustering-*.jar" />
         </fileset>
       </classpath>
+      <classpath id="run.classpath.cloudcontext">
+        <path refid="run.classpath"/>
+        <fileset dir="${lib}">
+          <include name="mmbase-cloudcontext-*.jar" />
+        </fileset>
+      </classpath>
       <classpath id="run.rmmci.client">
         <fileset dir="${lib}">
           <include name="junit*.jar" />
@@ -203,6 +217,14 @@
     <echo level="debug" message="copying" />
 
     <copy todir="${tests.build.dir}/classes" includeEmptyDirs="false" 
preservelastmodified="true">
+      <fileset dir="${tests.source.dir}/common">
+        <include name="**/*.properties"/>
+        <include name="**/LICENSE"/>
+        <include name="**/*.dtd"/>
+        <include name="**/*.xml"/>
+        <exclude name="build/**"/>
+        <exclude name="build*"/>
+      </fileset>
       <fileset dir="${tests.source.dir}/vpro-wizards">
         <include name="**/*.properties"/>
         <include name="**/LICENSE"/>
@@ -287,6 +309,7 @@
       <src path="${tests.source.dir}/releasestrategy"/>
       <src path="${tests.source.dir}/vpro-wizards" />
       <src path="${tests.source.dir}/richtext" />
+      <src path="${tests.source.dir}/cloudcontext" />
       <include name="**/*.java"/>
     </javac>
     <property name="compiled" value="yes" />
@@ -533,6 +556,21 @@
     </parallel>
   </target>
 
+  <target name="run.cloudcontext" depends="jar,init" description="Cloudcontext 
test-cases">
+    <antcall target="clean.database" />
+    <echo message="Starting ${ui.class}: " />
+    <java
+        classname="${ui.class}"
+        fork="true"
+        classpathref="run.classpath.cloudcontext"
+        >
+      <arg value="org.mmbase.security.cloudcontext.CloudContext" />
+      <jvmarg value="-Dmmbase.config=${tests.source.dir}/config" />
+      <jvmarg value="-Duser.dir=${tests.work.dir}" />
+      <assertions><enable /></assertions>
+    </java>
+  </target>
+
 
   <!-- ================================================================== -->
 


Index: Makefile
===================================================================
RCS file: /var/cvs/tests/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- Makefile    18 Nov 2008 15:48:54 -0000      1.6
+++ Makefile    16 Dec 2008 15:32:54 -0000      1.7
@@ -2,7 +2,7 @@
 ant=ant -quiet -listener org.apache.tools.ant.listener.Log4jListener -lib 
lib:. -Dnoconnection=true
 #ant=ant -lib lib:. -Dnoconnection=true
 
-.PHONY: all bridge rmmci dbsq util clustering convert typerel richtext
+.PHONY: all bridge rmmci dbsq util clustering convert typerel richtext 
cloudcontext
 all:
        $(ant) run.all
 bridge:
@@ -18,6 +18,8 @@
        $(ant) run.util
 clustering:
        $(ant) run.clustering
+cloudcontext:
+       $(ant) run.cloudcontext
 convert:
        $(ant) run.convertimage
 typerel:
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to