buildframework/helium/sf/java/quality/tests/antunit/test_cmt.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
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" encoding="UTF-8"?>
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_cmt.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
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
<project name="test-cmt" xmlns:au="antlib:org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
    <description>Helium antlib Quality CMT related tests.</description>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    26
    <taskdef name="fmpp" classname="fmpp.tools.AntTask" onerror="report"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    27
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <taskdef resource="com/nokia/helium/quality/ant/antlib.xml" uri="http://www.nokia.com/helium" />
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    29
    <property name="cmt.output.dir" location="${test.temp.dir}/output"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
    <property name="test.data.src" value="./../data/helloworldcons"/>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    31
    <property name="temp.diamonds.header.xml" location="${cmt.output.dir}/cmt/diamonds_header.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    32
    <property name="temp.diamonds.footer.xml" location="${cmt.output.dir}/cmt/diamonds_footer.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    33
    
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
    <basename property="componentbase" file="${test.data.src}"/>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    35
    <property name="diamonds.build.output.dir" location="${cmt.output.dir}/cmt" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
    <!-- is called prior to the test -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
    <target name="setUp">
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    39
        <delete dir="${cmt.output.dir}/cmt" failonerror="false" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    40
        <mkdir dir="${cmt.output.dir}/cmt" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    41
        <echo file="${temp.diamonds.header.xml}"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    42
<diamonds-build>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    43
    <schema>23</schema>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    44
]]></echo>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    45
        <echo file="${temp.diamonds.footer.xml}"><![CDATA[</diamonds-build>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 588
diff changeset
    46
]]></echo>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
    <!-- is called after the test, even if that caused an error -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
    <target name="tearDown">
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    51
        <delete dir="${cmt.output.dir}/cmt" failonerror="false" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    52
        <delete file="${temp.diamonds.header.xml}" failonerror="false" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    53
        <delete file="${temp.diamonds.footer.xml}" failonerror="false" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
    <condition property="do.cmt.test">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
        <os family="windows" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
    </condition>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
    <!--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
     ** test CMT for windows
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
    -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
    <target name="test-cmt-with-all-reqd-params-set" if="do.cmt.test">
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    67
        <hlm:cmt output="${cmt.output.dir}\logs\cmt_test.txt">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
            <fileset id="input" dir="${test.data.src}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
                <include name="**/*.h"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
                <include name="**/*.cpp"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
            </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
        </hlm:cmt>
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    73
        <au:assertLogContains text="run command: cmt"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    74
        <au:assertFileExists file="${cmt.output.dir}\logs\cmt_test.txt"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    75
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    76
    
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    77
    <target name="test-cmt-with-html-output-dir" if="do.cmt.test">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    78
        <hlm:cmt output="${cmt.output.dir}\logs\cmt_test.txt" htmlOutputDir="${cmt.output.dir}\logs\cmthtmlFolder">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    79
            <fileset id="input" dir="${test.data.src}">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    80
                <include name="**/*.h"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    81
                <include name="**/*.cpp"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    82
            </fileset>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    83
        </hlm:cmt>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    84
        <au:assertLogContains text="run command: cmt"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    85
        <au:assertFileExists file="${cmt.output.dir}\logs\cmt_test.txt"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    86
        <au:assertLogContains text="run command: cmt2html.bat"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
    87
        <au:assertFileExists file="${cmt.output.dir}\logs\cmthtmlFolder\CMTHTML\index.html"/>
587
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
    <!--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
     ** test noargs
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
    -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
    <target name="test-norargs-set" if="do.cmt.test">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
        <au:expectfailure expectedMessage="Nested Element 'fileset' missing for task 'cmt'.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
            <hlm:cmt/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
    <!--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
     ** test Only fileset set
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
    -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
    <target name="test-only-fileset-set" if="do.cmt.test">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
        <au:expectfailure expectedMessage="Parameter 'output' missing for task 'cmt'.">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
            <hlm:cmt>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
                <fileset id="input" dir="${test.data.src}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
                    <include name="**/*.h"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
                    <include name="**/*.cpp"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
                </fileset>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
            </hlm:cmt>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
        </au:expectfailure>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
    <!--
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
     ** test CMT for linux
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
     **************************************************************
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
    -->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
    <target name="test-cmt-linux" unless="do.cmt.test">
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   123
        <au:expectfailure expectedMessage="CMT supported only on windows platforms">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   124
            <hlm:cmt/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   125
        </au:expectfailure>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   126
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   127
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   128
    <!--
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   129
     ** test CMT convert to diamonds (input file has all the wanted data on 2 lines only)
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   130
    -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   131
    <target name="test-cmt-cnvt-dia-valid-2lines" if="do.cmt.test">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   132
        <property name="cmt.id" value="1" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   133
        <property name="cmt.test.data.src" location="${test.data.src}/index_${cmt.id}.html" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   134
        <property name="output.file.name" location="${diamonds.build.output.dir}/cmt_summary_${cmt.id}.xml"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   135
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   136
        <hlm:cmtsummarytask diamondsHeaderFileName="${temp.diamonds.header.xml}" diamondsFooterFileName="${temp.diamonds.footer.xml}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   137
            outputFile="${output.file.name}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   138
            inputFile="${cmt.test.data.src}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   139
        <au:assertFileExists file="${output.file.name}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   140
        <au:assertFilesMatch expected="${output.file.name}" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   141
                actual="${test.data.src}/../cmt_summary_${cmt.id}.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   142
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   143
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   144
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   145
    <!--
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   146
     ** test CMT convert to diamonds (input file has all the wanted data on 4 lines)
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   147
    -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   148
    <target name="test-cmt-cnvt-dia-valid-split" if="do.cmt.test">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   149
        <property name="cmt.id" value="2" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   150
        <property name="cmt.test.data.src" location="${test.data.src}/index_${cmt.id}.html" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   151
        <property name="output.file.name" location="${diamonds.build.output.dir}/cmt_summary_${cmt.id}.xml"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   152
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   153
        <hlm:cmtsummarytask diamondsHeaderFileName="${temp.diamonds.header.xml}" diamondsFooterFileName="${temp.diamonds.footer.xml}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   154
            outputFile="${output.file.name}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   155
            inputFile="${cmt.test.data.src}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   156
        <au:assertFileExists file="${output.file.name}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   157
        <au:assertFilesMatch expected="${output.file.name}" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   158
                actual="${test.data.src}/../cmt_summary_${cmt.id}.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   159
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
    </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   162
    <!--
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   163
     ** test CMT convert to diamonds input file has no CMT summary data
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   164
    -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   165
    <target name="test-cmt-cnvt-dia-invalid-no-summary" if="do.cmt.test">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   166
        <property name="cmt.id" value="3" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   167
        <property name="cmt.test.data.src" location="${test.data.src}/index_${cmt.id}.html" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   168
        <property name="output.file.name" location="${diamonds.build.output.dir}/cmt_summary_${cmt.id}.xml"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   169
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   170
        <hlm:cmtsummarytask diamondsHeaderFileName="${temp.diamonds.header.xml}" diamondsFooterFileName="${temp.diamonds.footer.xml}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   171
            outputFile="${output.file.name}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   172
            inputFile="${cmt.test.data.src}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   173
        <au:assertFileExists file="${output.file.name}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   174
        <au:assertFilesMatch expected="${output.file.name}" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   175
                actual="${test.data.src}/../cmt_summary_${cmt.id}.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   176
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   177
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   178
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   179
    <!--
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   180
     ** test CMT convert to diamonds input file none existant
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   181
    -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   182
    <target name="test-cmt-cnvt-dia-invalid-no-file" if="do.cmt.test">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   183
        <property name="cmt.id" value="4" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   184
        <property name="cmt.test.data.src" location="${test.data.src}/index_${cmt.id}.html" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   185
        <property name="output.file.name" location="${diamonds.build.output.dir}/cmt_summary_${cmt.id}.xml"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   186
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   187
        <hlm:cmtsummarytask diamondsHeaderFileName="${temp.diamonds.header.xml}" diamondsFooterFileName="${temp.diamonds.footer.xml}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   188
            outputFile="${output.file.name}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   189
            inputFile="${cmt.test.data.src}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   190
        <au:assertFileDoesntExist file="${output.file.name}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   191
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   192
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   193
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   194
    <!--
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   195
     ** test CMT convert to diamonds input file has spaces after number text in CMT summary data
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   196
    -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   197
    <target name="test-cmt-cnvt-dia-invalid-space-after-numtext-no-summary" if="do.cmt.test">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   198
        <property name="cmt.id" value="5" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   199
        <property name="cmt.test.data.src" location="${test.data.src}/index_${cmt.id}.html" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   200
        <property name="output.file.name" location="${diamonds.build.output.dir}/cmt_summary_${cmt.id}.xml"/>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   201
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   202
        <hlm:cmtsummarytask diamondsHeaderFileName="${temp.diamonds.header.xml}" diamondsFooterFileName="${temp.diamonds.footer.xml}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   203
            outputFile="${output.file.name}"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   204
            inputFile="${cmt.test.data.src}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   205
        <au:assertFileExists file="${output.file.name}" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   206
        <au:assertFilesMatch expected="${output.file.name}" 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   207
                actual="${test.data.src}/../cmt_summary_${cmt.id}.xml" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   208
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   209
    </target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents: 587
diff changeset
   210
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
</project>