buildframework/helium/sf/java/diamonds/tests/scenarii/invalid-address/build.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
permissions -rw-r--r--
helium_11.0.0-e00f171ca185
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<?xml version="1.0"?>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     2
<!-- 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
============================================================================ 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
Name        : test_diamonds.ant.xml 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Part of     : Helium AntLib
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     6
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
This component and the accompanying materials are made available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
under the terms of the License "Eclipse Public License v1.0"
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    17
Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    18
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    19
Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    20
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
-->
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    23
<project name="test-diamonds-invalid-address" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
    <description>Helium Antlib diamonds unittests.</description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
    <property environment="env" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    26
    <taskdef resource="com/nokia/helium/core/ant/antlib.xml" uri="http://www.nokia.com/helium"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    27
    <property name="diamonds.enabled" value="true" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <property name="diamonds.host" value="invalid.server.local" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
    <property name="diamonds.port" value="80" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
    <property name="diamonds.path" value="/diamonds/builds/" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
    <property name="diamonds.mail" value="diamonds@invalid.server.local" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    32
    <property name="diamonds.unitest.dir" location="${ant.file.test-diamonds-invalid-address}/../../../" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
    <property name="diamonds.output.dir" location="${temp.dir}/output" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
    <property name="diamonds.template.dir" location="${diamonds.unitest.dir}/data/templates" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
    <property name="build.family" value="test_new_hlm"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
    <property name="id" value="123"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
    <property name="name" value="${build.family}_${id}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
    <property name="build.system" value="ec-helium"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
    <property name="compile.log.input" location="${diamonds.unitest.dir}/data/compile.log.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
    <property name="codescanner.log.input" location="${diamonds.unitest.dir}/data/problemIndex.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
    <property name="policy.log.input" location="${diamonds.unitest.dir}/data/policy.log.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
    <property name="invalid.target.input.file" location="${diamonds.unitest.dir}/data/invalid.target.input.log.xml" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
    <property name="symsee.version" value="9.1.0" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    44
    <import file="../../config/diamonds_config_default.ant.xml" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
    <target name="unittest" depends="unittest-diamonds" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
    <target name="unittest-diamonds" >
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
        <delete dir="${diamonds.output.dir}" failonerror="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
        <mkdir dir="${diamonds.output.dir}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
        <antcall target="test-all" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
    <dirname property="project.dir" file="${ant.file.test-diamonds}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
    <target name="version">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
        <echo message="version target for diamonds to verify sending data to diamonds" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
    <target name="diamonds" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
    <target name="compile-target">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
        <echo message="verify the build stage with input source xml file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
    <target name="codescanner">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
        <echo message="target verification with input source xml file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
    <target name="create-bom-log">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
        <echo message="target without input file and just to send the data" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
    <target name="invalid-target-input-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
        <echo message="target with invalid input source xml file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
    <target name="invalid-stage-input-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
        <echo message="stage with invalid input source xml file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
    <target name="invalid-template-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
        <echo message="target with invalid template-file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
    <target name="non-existing-ant-properties">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
        <echo message="target with non-existing-ant-properties" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
    <target name="invalid-diamonds-server-properties">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
        <echo message="target with invalid-diamonds-server-properties" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
    <target name="defer-type">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
        <echo message="version target for diamonds to verify sending data to diamonds" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
    <target name="test-invalid-target-input-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
        <antcall target="invalid-target-input-file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
    <target name="test-invalid-stage-input-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
        <antcall target="invalid-target-input-file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
        <echo message="stage with invalid input source xml file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
    <target name="test-invalid-template-file">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
        <antcall target="invalid-template-file" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
    <target name="test-non-existing-ant-properties">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
        <antcall target="non-existing-ant-properties" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
    <target name="test-version">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
        <antcall target="version" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
    <target name="test-buildid-set">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
        <echo>${diamonds.build.id}</echo>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   122
        <au:assertFalse>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
            <isset property="diamonds.build.id"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   124
        </au:assertFalse>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
    <target name="test-buildid-notset">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
        <au:assertFalse>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
            <isset property="diamonds.build.id"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
        </au:assertFalse>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   133
    <target name="test-verify-targets">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   134
        <au:assertFalse>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   135
            <isset property="diamonds.build.id"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   136
        </au:assertFalse>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   137
    </target>        
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   138
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   139
    <target name="test-verify-stages">
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   140
        <au:assertFalse>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   141
            <isset property="diamonds.build.id"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   142
        </au:assertFalse>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   143
    </target>        
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   144
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   145
    <target name="test-all" depends="test-buildid-notset, diamonds, test-buildid-set, test-version,
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
   146
        test-verify-stages, test-verify-targets" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
</project>