buildframework/helium/sf/python/pythoncore/lib/ats3/ats4_template.xml
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 587 85df38eb4012
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" encoding="ISO-8859-1" standalone="yes"?>
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        : ats_template.xml
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
Part of     : Helium 
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
Contains the template for the test.xml file output. The test.xml file contains
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    21
information on the files used to create the drop file.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    22
============================================================================
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    23
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    24
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
{% import 'ats4_macros.xml' as macros with context %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
<testrun>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    <metadata>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
        {% if test_plan['diamonds_build_url'] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
        <meta name="diamonds-buildid">{{ test_plan['diamonds_build_url'] }}</meta> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
        <meta name="diamonds-testtype">Smoke</meta>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    32
        {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    33
        <meta name="name">{{ test_plan['testrun_name'] }}</meta>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
    </metadata>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
    <agents>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
        <agent alias="DEFAULT_{{ test_plan['harness'] }}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
            <property name="hardware" value="{{ test_plan["device_type"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
        </agent>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
    </agents>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
    {% include 'preset_custom.xml' ignore missing %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
    {% for setd in test_plan.sets -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
    <execution defaultAgent="DEFAULT_{{ test_plan['harness'] }}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
        <metadata>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
            <meta name="component_path">{{ setd['component_path'] }}</meta>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
        </metadata>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
        <initialization>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    50
            {{ atsself.get_template(setd['custom_dir'], 'prestep_custom.xml') }}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    52
            {% if setd.image_files -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    53
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    54
                <type>FlashTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
                {% set i = 1 %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
                {% for img in atsself.get_sorted_images(setd) -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
                    {% if img.startswith('\\\\') -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
                    <parameter name="image-{{ i }}" value="{{ img }}" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    60
                    {% else -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
                    <parameter name="image-{{ i }}" value="ATS3Drop\images\{{ os.path.basename(img) }}" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    62
                    {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
                    {% set i = i + 1 %}
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    64
                {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    67
            {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    68
            {% set udaerase = atsself.get_udaerase_image(setd) %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    69
            {% if udaerase -%}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    70
            <task>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    71
                <type>FlashTask</type>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    72
                <parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    73
                    <parameter name="image-{{ i }}" value="ATS3Drop\images\{{ os.path.basename(udaerase) }}" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    74
                    <parameter name="force" value="true"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    75
                </parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    76
            </task>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    77
            {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
            {% if setd["ctc_enabled"] == "True" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
            {{ macros.ctc_initialization() }}
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    81
            {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
            
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
                <type>CreateDirTask</type>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    85
                <parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    86
                    <parameter value="{{ atsself.getlogdir(test_plan, setd) }}" name="dir"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
            </task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
                      
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
          {% if setd.has_key("sis_files") and setd["sis_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
              {% for sis_file in setd["sis_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
                <type>FileUploadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
                    <parameter name="src" value="ATS3Drop\{{ setd.name }}\sis\{{ os.path.basename(sis_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
                    <parameter name="dst" value="c:\testframework\{{ os.path.basename(sis_file) }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    97
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    98
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   101
              {%- endfor %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   102
          {% else -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
              {% if setd['src_dst'] != [] -%}
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   104
                {% for file in setd['src_dst'] -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
                <type>FileUploadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
                    <parameter value="ATS3Drop\{{ setd.name }}\{{ file[1].replace(":", "") }}" name="src"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
                    <parameter value="{{ file[1] }}" name="dst"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   110
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   111
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   114
                {%- endfor %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   115
              {% else -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
                  {% for data_file in setd["data_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
                <type>FileUploadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
                    <parameter name="src" value="ATS3Drop\{{ setd.name }}\data\{{ os.path.basename(data_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
                    <parameter name="dst" value="e:\testing\data\{{ os.path.basename(data_file) }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   122
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   123
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   126
                  {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
                  {% for data_file in setd["config_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
                <type>FileUploadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
                    <parameter name="src" value="ATS3Drop\{{ setd.name }}\conf\{{ os.path.basename(data_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
                    <parameter name="dst" value="e:\testing\conf\{{ os.path.basename(data_file) }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   133
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   134
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   137
                  {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
                  {% for data_file in setd["testmodule_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
                <type>FileUploadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
                    <parameter name="src" value="ATS3Drop\{{ setd.name }}\testmodules\{{ os.path.basename(data_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
                    <parameter name="dst" value="c:\sys\bin\{{ os.path.basename(data_file) }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   144
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   145
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   148
                  {%- endfor %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   149
              {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   150
          {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
          
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
          {% if setd.engine_ini_file -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
              {% if (setd.has_key("sis_files") and setd["sis_files"]) or setd["src_dst"] == [] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
                <type>FileUploadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
                <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
                    <parameter name="src" value="ATS3Drop\{{ setd.name }}\init\{{ os.path.basename(setd["engine_ini_file"]) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
                    <parameter name="dst" value="c:\testframework\{{ os.path.basename(setd["engine_ini_file"]) }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   159
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   160
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   163
              {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   164
          {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
          
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
          {% for sis_file in setd["sis_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
               <type>InstallSisTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
               <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
                    <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
                    <parameter name="upgrade-data " value="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
                    <parameter name="ignore-ocsp-warnings" value="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
                    <parameter name="ocsp-done" value="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
                    <parameter name="software-package" value="c:\testframework\{{ os.path.basename(sis_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
               </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   177
          {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
        </initialization>    
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   179
        {{ atsself.get_template(setd['custom_dir'], 'prerun_custom.xml') }}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
        {% if setd['src_dst'] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
            {{ macros.generate_runsteps_stif(setd) }}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
            {% for file in setd['src_dst'] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
                {% if setd["test_harness"] == "GENERIC" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
                    {% if 'testscript' in file[2] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
                        {% if 'testscript:mtf' in file[2] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
        <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
            <type>MTFTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
            <parameters>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   189
                <parameter name="file" value="{{ file[2].split(':')[2] }}"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
                <parameter name="parameters" value="{{ file[1] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
                <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   192
                <parameter name="result-file" value="{{ atsself.MTF_LOG_DIR }}\{{ atspath.basename(file[1]).replace('.script', '.htm') }}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   193
                <parameter name="result-download-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   194
                <parameter name="result-download-reboot-retry-count" value="1" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
        </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   197
                        {% else -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
        <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
            <type>TEFTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
            <parameters>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   201
                <parameter name="file" value="{{ file[2].split(':')[1] }}"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
                <parameter name="parameters" value="{{ file[1] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
                <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   204
                <parameter name="result-file" value="{{ atsself.TEF_LOG_DIR }}\{{ atspath.basename(file[1]).replace('.script', '.htm') }}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   205
                <parameter name="result-download-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   206
                <parameter name="result-download-reboot-retry-count" value="1" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
        </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   209
                        {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   210
                    {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
                    {% if file[2] == 'testmodule:rtest' -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
        <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
            <type>ExecutableTestCaseTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
            <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
                <parameter name="file" value="{{ os.path.basename(file[1]) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
                <parameter name="parser" value="RTestResultParser" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
                <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
                <parameter name="parameters" value="" />
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   219
                <parameter name="result-file" value="{{ atsself.TEF_LOG_DIR }}\{{ atspath.basename(file[1]).replace('.exe', '.htm') }}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   220
                <parameter name="result-download-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   221
                <parameter name="result-download-reboot-retry-count" value="1" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
        </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   224
                    {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   225
                    {% if file[2] == "testmodule:sut" -%}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   226
        <task>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   227
            <type>SymbianUnitTestTask</type>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   228
            <parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   229
                <parameter value="z:\sys\bin\symbianunittest.exe" name="file"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   230
                <parameter value="-tests={{ file[1] }} -noprompt" name="parameters"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   231
                <parameter value="{{ atsself.SUT_LOG_DIR }}\SymbianUnitTestResults.html" name="result-file"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   232
                <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   233
                <parameter name="result-download-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   234
                <parameter name="result-download-reboot-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   235
            </parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   236
        </task>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   237
                    {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   238
                {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
                {% if setd["test_harness"] == "EUNIT" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   240
                    {% if file[2] == "testmodule" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
        <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
            <type>EUnitTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
            <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   244
                <parameter value="z:\sys\bin\EUNITEXERUNNER.EXE" name="file"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
                <parameter name="result-file" value="{{ atsself.EUNIT_LOG_DIR }}\{{ atspath.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   246
                <parameter name="parameters" value="{{ test_plan["eunitexerunner_flags"] }} /F {{ atspath.basename(file[1]).replace('.dll', '').replace('.exe', '') }} /l xml {{ atspath.basename(file[1]) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   247
                <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   248
                <parameter name="result-download-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   249
                <parameter name="result-download-reboot-retry-count" value="1" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   250
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   251
        </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   252
                    {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   253
                    {% if file[2] == "testmodule:qt" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   254
        <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
            <type>QTestTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
            <parameters>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   257
                <parameter name="file" value="{{ file[1] }}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   258
                <parameter name="parameters" value="-lightxml -o {{ atsself.QT_LOG_DIR }}\{{ atspath.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   259
                <parameter name="result-file" value="{{ atsself.QT_LOG_DIR }}\{{ atspath.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
                <parameter name="timeout" value="{{ test_plan["test_timeout"] }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   261
                <parameter name="result-download-retry-count" value="1" />
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   262
                <parameter name="result-download-reboot-retry-count" value="1" />
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   263
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   264
        </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   265
                    {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   266
                {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   267
            {%- endfor %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   268
        {% else -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   269
            {{ macros.generate_runsteps_stif_single_set(setd) }}
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   270
        {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   271
        {{ atsself.get_template(setd['custom_dir'], 'postrun_custom.xml') }}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   272
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   273
        <finalization>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   274
        {% if setd["ctc_enabled"] == "True" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   275
        {{ macros.ctc_finalization(setd) }}
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   276
        {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   277
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   278
            <task>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   279
                <type>FileDownloadTask</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   280
                <parameters>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   281
                    <parameter value="{{ atsself.getlogdir(test_plan, setd) }}\*" name="src"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   282
                    <parameter name="recursive" value="true"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   283
                    <parameter name="reboot-retry-count" value="1"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   284
                    <parameter name="retry-count" value="1"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   285
                </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   286
            </task>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   287
        {{ atsself.get_template(setd['custom_dir'], 'poststep_custom.xml') }}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   288
        </finalization>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   289
        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   290
    </execution>    
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   291
    {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   292
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   293
    {% include 'postset_custom.xml' ignore missing %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   294
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   295
    <postActions>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   296
        {% include 'prepostaction.xml' ignore missing %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   297
        {% for action_type, parameters in test_plan.post_actions -%}
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   298
            {% if action_type == 'RunProcessAction' -%}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   299
        <action>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   300
            <type>{{ action_type }}</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   301
            <parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   302
                {% for name, value in parameters -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   303
                <parameter name="{{ name }}" value="{{ value }}"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   304
                {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   305
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   306
        </action>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   307
            {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   308
        {%- endfor %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   309
        {% if test_plan['report_email'] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   310
        <action>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   311
            <type>EmailAction</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   312
            <parameters>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   313
                <parameter value="ATS test results {{ test_plan['testrun_name'] }}" name="subject"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   314
                <parameter value="{{ test_plan['report_email'] }}" name="to"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   315
                <parameter value="simplelogger" name="format"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   316
                {% if test_plan['report_type'].lower() == 'no_attachment' -%}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   317
                <parameter value="false" name="attach-report"/>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   318
                {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   319
            </parameters>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   320
        </action>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   321
        {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   322
        {% if test_plan['diamonds_build_url'] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   323
        <action>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   324
            <type>DiamondsAction</type>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   325
            {% if test_plan.sets != [] and test_plan.sets[0]["ctc_enabled"] == "True" -%}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   326
            <parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   327
                <parameter value="true" name="send-ctc-data" /> 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   328
            </parameters>
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   329
            {%- endif %}
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   330
        </action>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   331
        {%- endif %}
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
   332
        
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   333
        {% include 'postpostaction.xml' ignore missing %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   334
    </postActions>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   335
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   336
</testrun>