buildframework/helium/tools/publish/test/test2_publishing_to_diamonds.ant.xml
changeset 1 be27ed110b50
child 179 d8ac696cc51f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buildframework/helium/tools/publish/test/test2_publishing_to_diamonds.ant.xml	Wed Oct 28 14:39:48 2009 +0000
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+============================================================================ 
+Name        : test_publishing_to_diamonds.ant.xml 
+Part of     : Helium 
+
+Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+All rights reserved.
+This component and the accompanying materials are made available
+under the terms of the License "Eclipse Public License v1.0"
+which accompanies this distribution, and is available
+at the URL "http://www.eclipse.org/legal/epl-v10.html".
+
+Initial Contributors:
+Nokia Corporation - initial contribution.
+
+Contributors:
+
+Description:
+
+============================================================================
+-->
+<project name="xtest_publishing_to_diamonds" xmlns:hlm="http://www.nokia.com/helium">
+
+    <!-- Private: -->
+    <target name="xtest-diamonds" depends="setup-test-publishing-to-diamonds,diamonds,xtest-diamonds-validate-policy,xtest-diamonds-check-tool-dependencies"/>
+    
+    <!-- Private: -->
+    <target name="setup-test-publishing-to-diamonds">
+        <property name="build.family" value="helium_test"/>
+        <property name="email.from" value="none"/>
+        <delete dir="${build.log.dir}" failonerror="false"/>
+        <mkdir dir="${build.log.dir}"/>
+    </target>
+    <!--
+    <target name="test-default-buildsystem-set">             
+        <antcall target="diamonds-start-log">
+        </antcall>            
+        <xpathtest xmlfile="${build.log.dir}/${build.id}_diamonds-log-start.xml">  
+            <namespace uri="" prefix=""/>
+            <xpath expression="/diamonds-build/build[build_system='ebs']"/> 
+        </xpathtest>
+    </target>
+
+    <target name="test-buildsystem-set">             
+        <antcall target="diamonds-start-log">
+            <param name="build.system" value="test"/>
+        </antcall>            
+        <xpathtest xmlfile="${build.log.dir}/${build.id}_diamonds-log-start.xml">  
+            <namespace uri="" prefix=""/>
+            <xpath expression="/diamonds-build/build[build_system='test']"/> 
+        </xpathtest>
+    </target>
+--> 
+    
+    <!-- Private: -->
+    <target name="xtest-diamonds-check-tool-dependencies">
+        <antcall target="check-tool-dependencies">
+        </antcall>            
+        <xpathtest xmlfile="${build.log.dir}/check-tool-dependencies.xml">  
+            <namespace uri="" prefix=""/>
+            <xpath expression="/diamonds-build/tools/tool[name='java']"/>
+            <xpath expression="/diamonds-build/tools/tool[name='ant']"/>
+            <xpath expression="/diamonds-build/tools/tool[name='python']"/>
+        </xpathtest>
+        <xpathtest xmlfile="${build.log.dir}/diamonds-start.log.xml">  
+            <namespace uri="" prefix=""/>
+            <xpath expression="/diamonds-build/build[build_system='ebs']"/> 
+        </xpathtest>
+    </target> 
+    
+    <!-- Private: -->
+    <target name="xtest-diamonds-validate-policy">
+        <antcall target="render-validate-policy">
+        </antcall>            
+        <xpathtest xmlfile="${build.log.dir}/render-validate-policy.xml">  
+            <namespace uri="" prefix=""/>
+            <xpath expression="/diamonds-build[schema &gt; 9]"/> 
+        </xpathtest>
+    </target> 
+</project>
\ No newline at end of file