buildframework/helium/sf/python/pythoncore/lib/ats3/ats_template.xml
author wbernard
Thu, 22 Jul 2010 17:08:43 +0300
branchhelium-9.0
changeset 618 df88fead2976
parent 587 85df38eb4012
permissions -rw-r--r--
helium_9.0.5-4399343f4f50
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"?>
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
<test>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
    <name>{{ test_plan['testrun_name'] }}</name>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
    <buildid>{{ test_plan['diamonds_build_url'] }}</buildid>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    27
    <target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
    {% if test_plan["harness"] == "MULTI_HARNESS" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
        <device alias="DEFAULT_STIF" rank="none">        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
            <property name="HARNESS" value="STIF"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
            <property name="TYPE" value="{{ test_plan['device_type'] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
            {% if test_plan["device_hwid"] != "" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
            <property name="HWID" value="{{ test_plan["device_hwid"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
            {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
        </device>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
        <device alias="DEFAULT_EUNIT" rank="none">        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
            <property name="HARNESS" value="EUNIT"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
            <property name="TYPE" value="{{ test_plan['device_type'] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
            {% if test_plan["device_hwid"] != "" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
            <property name="HWID" value="{{ test_plan["device_hwid"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    41
            {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
        </device>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
    {% else %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    44
        <device alias="DEFAULT_{{ test_plan['harness'] }}" rank="none">        
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
            <property name="HARNESS" value="{{ test_plan['harness'] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
            <property name="TYPE" value="{{ test_plan['device_type'] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    47
            {% if test_plan["device_hwid"] != "" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    48
            <property name="HWID" value="{{ test_plan["device_hwid"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    49
            {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    50
        </device>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    51
    {% endif %}
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
    <plan passrate="100" enabled="true" name="{{ test_plan['testrun_name'] }} Plan" significant="false" harness="{{ test_plan['harness'] }}">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    55
        <session name="session" harness="{{ test_plan['harness'] }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    56
            {% for setd in test_plan.sets -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    57
            <set name="{{ setd["name"] }}-{{ setd["component_path"] }}" harness="{{ test_plan['harness'] }}" enabled="true" passrate="100">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    58
              <target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    59
                  <device alias="DEFAULT_{{ test_plan['harness'] }}" rank="master"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    60
              </target>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    61
              <case name="{{ setd.name }} case" passrate="100" harness="{{ setd.test_harness }}" enabled="true" significant="false"> 
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    62
              
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    63
              {% if setd["ctc_enabled"] == "True" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    64
              <step name="Create CTC log dir" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    65
                  <command>makedir</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    66
                  <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    67
                      <param dir="{{ atsself.CTC_LOG_DIR }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    68
                  </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    69
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    70
              <step name="CTC start" passrate="100" harness="{{ setd.test_harness }}" enabled="true" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    71
                    <command>execute</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    72
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    73
                        <param file="z:\sys\bin\ctcman.exe"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    74
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    75
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    76
              {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    77
              {% if setd.image_files -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    78
                {% for img in setd.image_files -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    79
                <flash target-alias="DEFAULT_{{ setd.test_harness }}" images="ATS3Drop\images\{{ os.path.basename(img) }}" />
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    80
                {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    81
              {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    82
              <step name="Create logs folder" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    83
                  <command>makedir</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    84
                  <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    85
                  {% if setd["test_harness"] == "GENERIC" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    86
                      {% if atsself.check_mtf_harness(setd) -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    87
                      <param dir="{{ atsself.MTF_LOG_DIR }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    88
                      {% else %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    89
                      <param dir="{{ atsself.TEF_LOG_DIR }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    90
                      {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    91
                  {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    92
                  {% if setd["test_harness"] == "EUNIT" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    93
                      {% if atsself.check_qt_harness(setd) -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    94
                      <param dir="{{ atsself.QT_LOG_DIR }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    95
                      {% else %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    96
                      <param dir="{{ atsself.EUNIT_LOG_DIR }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    97
                      {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    98
                  {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    99
                  </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   100
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   101
              
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   102
              {% for sis_file in setd["sis_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   103
              <step name="Install sis: {{ os.path.basename(sis_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   104
                    <command>install</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   105
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   106
                        <param src="ATS3Drop\{{ setd.name }}\sis\{{ os.path.basename(sis_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   107
                        <param dst="c:\testframework\{{ os.path.basename(sis_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   108
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   109
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   110
              {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   111
              
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   112
              {% for data_file in setd["data_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   113
              <step name="Install data: {{ os.path.basename(data_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   114
                    <command>install</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   115
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   116
                        <param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(data_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   117
                        <param dst="e:\testing\data"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   118
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   119
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   120
              {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   121
              {% for data_file in setd["testmodule_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   122
              <step name="Install testmodule: {{ os.path.basename(data_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   123
                    <command>install</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   124
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   125
                        <param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(data_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   126
                        <param dst="c:\sys\bin"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   127
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   128
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   129
              {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   130
              {% for data_file in setd["config_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   131
              <step name="Install conf: {{ os.path.basename(data_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   132
                    <command>install</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   133
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   134
                        <param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(data_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   135
                        <param dst="e:\testing\conf"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   136
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   137
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   138
              {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   139
              
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   140
              {% if setd.engine_ini_file -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   141
              <step name="Install engine: {{ os.path.basename(setd["engine_ini_file"]) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   142
                    <command>install</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   143
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   144
                        <param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(setd["engine_ini_file"]) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   145
                        <param dst="c:\testframework\{{ setd["test_harness"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   146
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   147
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   148
              {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   149
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   150
              {% for sis_file in setd["sis_files"] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   151
              <step name="Install SIS to the device: {{ os.path.basename(sis_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   152
                  <command>install-software</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   153
                  <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   154
                      <param timeout="{{ test_plan["test_timeout"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   155
                      <param overWriteAllowed="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   156
                      <param upgradeData="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   157
                      <param downloadAllowed="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   158
                      <param packageInfoAllowed="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   159
                      <param untrustedAllowed="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   160
                      <param ignoreOCSPWarnings="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   161
                      <param userCapGranted="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   162
                      <param optionalItemsAllowed="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   163
                      <param killApp="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   164
                      <param installDrive="C"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   165
                      <param upgradeAllowed="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   166
                      <param OCSP_Done="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   167
                      <param sisPackageName="c:\testframework\{{ os.path.basename(sis_file) }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   168
                  </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   169
              </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   170
              {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   171
               
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   172
              {% if setd.src_dst -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   173
                {% for file in setd.src_dst -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   174
                <step name="Install {{ os.path.basename(file[1]) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   175
                    <command>install</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   176
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   177
                        <param src="ATS3Drop\{{ setd.name }}\{{ file[1].replace(":","") }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   178
                        <param dst="{{ file[1] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   179
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   180
                </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   181
                
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   182
                  {% if setd["test_harness"] == "GENERIC" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   183
                <step passrate="100" harness="{{ setd.test_harness }}" enabled="true" name="Execute test: {{ os.path.basename(file[1]) }}" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   184
                    <command>execute</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   185
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   186
                      {% if 'testscript' in file[2] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   187
                          {% if file[2] == "testscript:mtf" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   188
                      <param file="testframework.exe"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   189
                      <param parser="MTFResultParser"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   190
                      <param result-file="{{ atsself.MTF_LOG_DIR  }}\{{ os.path.basename(file[1]).replace('.script', '.htm') }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   191
                          {% else %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   192
                      <param file="testexecute.exe"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   193
                      <param parser="TEFTestResultParser"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   194
                      <param result-file="{{ atsself.TEF_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.script', '.htm') }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   195
                          {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   196
                      <param parameters="{{ file[1] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   197
                      <param timeout="{{ test_plan["test_timeout"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   198
                      {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   199
                      
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   200
                      {% if 'testmodule' in file[2] -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   201
                      <param file="{{ file[1] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   202
                      <param parser="RTestResultParser"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   203
                      <param result-file="{{ atsself.TEF_LOG_DIR  }}\{{ os.path.basename(file[1]).replace('.exe', '.htm') }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   204
                      <param timeout="{{ test_plan["test_timeout"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   205
                      {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   206
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   207
                </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   208
                  {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   209
                  {% if setd["test_harness"] == "EUNIT" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   210
                      {% if file[2] == "testmodule:qt" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   211
                <step passrate="100" harness="{{ setd.test_harness }}" enabled="true" name="Execute test: {{ os.path.basename(file[1]) }}" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   212
                    <command>execute</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   213
                    <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   214
                      <param file="{{ file[1] }}"/>                      
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   215
                      <param parameters="-lightxml -o {{ atsself.QT_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   216
                      <param result-file="{{ atsself.QT_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   217
                      <param parser="QTestResultParser"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   218
                      <param delete-result="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   219
                      <param async="false"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   220
                      <param timeout="{{ test_plan["test_timeout"] }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   221
                    </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   222
                </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   223
                      {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   224
                  {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   225
                    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   226
                {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   227
              {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   228
                <step passrate="100" harness="{{ setd.test_harness }}" enabled="true" name="Fetch test module logs" significant="false">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   229
                  <command>fetch-log</command>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   230
                  <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   231
                    <param type="text"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   232
                    <param delete="true"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   233
                {% if setd["test_harness"] == "GENERIC" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   234
                    {% if atsself.check_mtf_harness(setd) -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   235
                    <param path="{{ atsself.MTF_LOG_DIR }}\*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   236
                    {% else %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   237
                    <param path="{{ atsself.TEF_LOG_DIR }}\*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   238
                    {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   239
                {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   240
                {% if setd["test_harness"] == "EUNIT" -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   241
                    {% if atsself.check_qt_harness(setd) -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   242
                    <param path="{{ atsself.QT_LOG_DIR }}\*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   243
                    {% else %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   244
                    <param path="{{ atsself.EUNIT_LOG_DIR }}\*"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   245
                    {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   246
                {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   247
                  </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   248
                </step>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   249
              </case>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   250
          </set>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   251
          {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   252
        </session>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   253
    </plan>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   254
    
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   255
    {% if test_plan.post_actions %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   256
        {% for action_type, parameters in test_plan.post_actions -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   257
    <postAction>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   258
        <type>{{ action_type }}</type>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   259
        <params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   260
            {% for name, value in parameters -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   261
            <param name="{{ name }}" value="{{ value }}"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   262
            {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   263
        </params>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   264
    </postAction>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   265
        {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   266
    {% endif %}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   267
  
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   268
    <files>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   269
        {% for drop_file, _ in atsself.drop_files(test_plan) -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   270
        <file>{{ drop_file }}</file>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   271
        {% endfor -%}
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   272
    </files>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   273
  
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
   274
</test>