incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1387036 - in /incubator/easyant/plugins/trunk/build-tools/src/test: ./ antunit/ antunit/build-tools-test.xml antunit/module.ivy antunit/submodule/ antunit/submodule/module.ivy
Date Tue, 18 Sep 2012 08:08:29 GMT
Author: jlboudart
Date: Tue Sep 18 08:08:29 2012
New Revision: 1387036

URL: http://svn.apache.org/viewvc?rev=1387036&view=rev
Log:
Add build-tools test case

Added:
    incubator/easyant/plugins/trunk/build-tools/src/test/
    incubator/easyant/plugins/trunk/build-tools/src/test/antunit/
    incubator/easyant/plugins/trunk/build-tools/src/test/antunit/build-tools-test.xml
    incubator/easyant/plugins/trunk/build-tools/src/test/antunit/module.ivy
    incubator/easyant/plugins/trunk/build-tools/src/test/antunit/submodule/
    incubator/easyant/plugins/trunk/build-tools/src/test/antunit/submodule/module.ivy

Added: incubator/easyant/plugins/trunk/build-tools/src/test/antunit/build-tools-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/build-tools/src/test/antunit/build-tools-test.xml?rev=1387036&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/build-tools/src/test/antunit/build-tools-test.xml (added)
+++ incubator/easyant/plugins/trunk/build-tools/src/test/antunit/build-tools-test.xml Tue
Sep 18 08:08:29 2012
@@ -0,0 +1,54 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project name="org.apache.easyant.plugins;build-tools-test" 
+    xmlns:au="antlib:org.apache.ant.antunit" 
+    xmlns:ivy="antlib:org.apache.ivy.ant"
+    xmlns:ea="antlib:org.apache.easyant">
+    
+    <!-- Import your plugin --> 
+    <property name="target" value="target/test-antunit"/>
+    <!-- configure easyant in current project -->
+    <ea:configure-easyant-ivy-instance />
+    <!-- import our local plugin -->
+    <property name="project.ivy.file" value="module.ivy"/>
+    <ea:import-test-module moduleIvy="../../../module.ivy" sourceDirectory="../../main/resources"/>
+
+    <!-- Defines a setUp / tearDown (before each test) that cleans the environnement -->

+    <target name="clean" description="remove stale build artifacts before / after each
test">
+        <delete dir="${basedir}" includeemptydirs="true">
+            <include name="**/target/**"/>
+            <include name="**/lib/**"/>
+        </delete>
+    </target>
+    
+    <target name="setUp" depends="clean"/>
+    <target name="tearDown" depends="clean"/>
+    
+    <target name="test-build-tools">
+        <au:assertPropertyEquals name="project.ivy.instance" value="project.ivy.instance"/>
+        <au:assertPropertyEquals name="pre.module.targets" value="validate,clean"/>
+        <au:assertPropertyEquals name="submodule.dirs" value="**/*"/>
+        <au:assertPropertyEquals name="metabuild.root" value="${basedir}"/>
+        <au:assertPropertyEquals name="metabuild.includes" value="${submodule.dirs}"/>
+        <au:assertPropertyEquals name="metabuild.excludes" value="src/ test/ lib/ WEB-INF/
classes/ bin/ module.ivy"/>
+        <au:assertPropertyEquals name="metabuild.mode" value="all"/>
+        <au:assertReferenceSet refid="submodules.fileset"/>
+        <au:assertPropertyEquals name="current-module" value="${ivy.module}"/>
+        <au:assertReferenceSet refid="build-path"/>
+    </target>
+
+</project>

Added: incubator/easyant/plugins/trunk/build-tools/src/test/antunit/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/build-tools/src/test/antunit/module.ivy?rev=1387036&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/build-tools/src/test/antunit/module.ivy (added)
+++ incubator/easyant/plugins/trunk/build-tools/src/test/antunit/module.ivy Tue Sep 18 08:08:29
2012
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+    <info organisation="org.apache.easyant" module="a-module" revision="0.1" status="integration"/>
+
+</ivy-module>

Added: incubator/easyant/plugins/trunk/build-tools/src/test/antunit/submodule/module.ivy
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/build-tools/src/test/antunit/submodule/module.ivy?rev=1387036&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/build-tools/src/test/antunit/submodule/module.ivy (added)
+++ incubator/easyant/plugins/trunk/build-tools/src/test/antunit/submodule/module.ivy Tue
Sep 18 08:08:29 2012
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<ivy-module version="2.0" xmlns:ea="http://www.easyant.org"> 
+    <info organisation="org.apache.easyant" module="standard-java-app" revision="0.1"
status="integration"/>
+
+</ivy-module>



Mime
View raw message