buildframework/helium/tools/preparation/test/test_synergy.ant.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 588 c7c26511138f
permissions -rw-r--r--
helium_11.0.0-e00f171ca185

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : test_ci.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="test_synergy" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
    <description>
         Testing targets related to Synergy
    </description>
    <property environment="env" />
    <property name="publish.root.dir" value="${helium.dir}/tests/data/output/" />
    <property name="helium.dir" location="../../.." />
    <import file="../../../build.xml" />

    <target name="test-ccm-preparation-log-extraction">
        <delete file="${helium.dir}/tests/data/output/temp.log" failonerror="false"/>
        <delete dir="${helium.dir}/tests/data/output/temp_db" failonerror="false"/>
        <mkdir dir="${helium.dir}/tests/data/output/"/> 
        <echo file="${helium.dir}/tests/data/output/temp.log">
   [python] INFO:ccm.extra:Using CachedSessionProvider.
   [python] INFO:preparation.ccmgetinput:Get a session for databasexxx
   [python] INFO:ccm:Database path set using the GSCM database.
   [python] INFO:ccm:Database engine set using the GSCM database.
   [python] INFO:ccm:Getting router address.
   [python] INFO:ccm:Opening session.
   [python] INFO:preparation.ccmgetinput:Checking 'MinibuildDomain-50_200832:project:tr1test1#1'...Ok
   [python] INFO:preparation.ccmgetinput:Checking 'MinibuildDomain/next'...Ok
   [python] INFO:preparation.ccmgetinput:Checking purpose 'Insulated Development'...Ok
   [python] INFO:preparation.ccmgetinput:Try to switch user to role: developer
   [python] INFO:preparation.ccmgetinput:=== Stage=checkout = MinibuildDomain-50_200832:project:tr1test1#1
   [python] INFO:preparation.ccmgetinput:++ Started at 13:25:41
   [python] INFO:preparation.ccmgetinput:Project found: 'MinibuildDomain-user:project:tr1test1#1'
   [python] INFO:preparation.ccmgetinput:Switching user to role: developer
   [python] INFO:preparation.ccmgetinput:Validating release
   [python] INFO:preparation.ccmgetinput:Current release: 'MinibuildDomain:next:releasedef:1'
   [python] INFO:preparation.ccmgetinput:Configuration release: 'MinibuildDomain:next:releasedef:1'
   [python] INFO:preparation.ccmgetinput:Updating...
   [python] INFO:preparation.ccmgetinput:Looking for new projects in the check out.
   [python] INFO:preparation.ccmgetinput:       Task he1cfnet#19381: vpnclient: maittola: TSW Error: TLIN-7MFBL5, vpncleaner, mcl
   [python] INFO:preparation.ccmgetinput:Synchronizing ...
   [python] INFO:preparation.ccmgetinput:       Updating 'E:\Build_E\user\ido_wa\minibuild_ido\MinibuildDomain'.
   [python] INFO:preparation.ccmgetinput:       Updating 'E:\Build_E\user\ido_wa\minibuild_ido\MinibuildDomain\MinibuildDomain'.
   [python] INFO:preparation.ccmgetinput:       Work area update: 25% complete...
   [python] INFO:preparation.ccmgetinput:       Work area update: 50% complete...
   [python] INFO:preparation.ccmgetinput:       Updating 'E:\Build_E\user\ido_wa\minibuild_ido\MinibuildDomain\MinibuildDomain'.
   [python] INFO:preparation.ccmgetinput:       Work area update: 75% complete...
   [python] INFO:preparation.ccmgetinput:       Work area update: 100% complete...
   [python] INFO:preparation.ccmgetinput:Synchronization summary:
   [python] INFO:preparation.ccmgetinput:       0 Update(s) for project MinibuildDomain-user
   [python] INFO:preparation.ccmgetinput:       0 Update(s) for project helloworldapi-user
   [python] INFO:preparation.ccmgetinput:       0 Update(s) for project helloworldcons-user
   [python] INFO:preparation.ccmgetinput:       0 Conflict(s) for project MinibuildDomain-user
   [python] INFO:preparation.ccmgetinput:       0 Conflict(s) for project helloworldapi-user
   [python] INFO:preparation.ccmgetinput:       0 Conflict(s) for project helloworldcons-user
   [python] INFO:preparation.ccmgetinput:Synchronization complete.
   [python] INFO:preparation.ccmgetinput:Project: MinibuildDomain-user
   [python] INFO:preparation.ccmgetinput:
   [python] INFO:preparation.ccmgetinput:         No conflicts detected.
   [python] INFO:preparation.ccmgetinput:
   [python] INFO:preparation.ccmgetinput:Project: helloworldapi-user
   [python] INFO:preparation.ccmgetinput:
   [python] INFO:preparation.ccmgetinput:         No conflicts detected.
   [python] INFO:preparation.ccmgetinput:
   [python] INFO:preparation.ccmgetinput:Project: helloworldcons-user
   [python] INFO:preparation.ccmgetinput:
   [python] WARNING:preparation.ccmgetinput:databasexxx#5298       Implicitly included
   [python] WARNING:preparation.ccmgetinput:databasexxx#5304       Implicit task from explicit object
   [python] INFO:preparation.ccmgetinput:Switching user to role: developer
   [python] INFO:preparation.ccmgetinput:++ Finished at 13:25:53
   [python] INFO:ccm.extra:Closing the CachedSessionProvider.
   [python] INFO:ccm.extra:Cleaning up opened sessions.
        </echo>
        <hlm:metadatarecord  database="${helium.dir}/tests/data/output/temp_db">
            <hlm:textmetadatainput>
                <fileset casesensitive="false" file="${helium.dir}/tests/data/output/temp.log" />
                <metadatafilterset refid="filterset.test.ccm" />
            </hlm:textmetadatainput>
        </hlm:metadatarecord>
        <hlm:generateBuildStatus dbfile="${helium.dir}/tests/data/output/temp_db" output-dir="${helium.dir}/tests/data/output/signals" file="${helium.dir}/tests/data/output/temp.log" />
        <au:assertTrue>
            <and>
                <not>
                    <hlm:hasSeverity severity="error" file="${helium.dir}/tests/data/output/signals/temp.log.status.xml"/>
                </not>
                <hlm:hasSeverity severity="warning" file="${helium.dir}/tests/data/output/signals/temp.log.status.xml"/>
            </and>
        </au:assertTrue>
    </target>
   
    <target name="test-ccm-check">
        <trycatch property="ccm-check.thrown">
            <try>
                <antcall target="ccm-check"/>
                <if>
                    <equals arg1="${ccm.session.created}" arg2="-1"/>
                    <then>
                        <au:assertTrue/>
                    </then>
                    <else>
                        <au:assertTrue/>
                    </else>
                </if>
                <au:assertLogContains text="CachedSessionProvider"/>
            </try>
        </trycatch>
    </target> 
</project>