configurationengine/source/plugins/common/ConeCommandPlugin/commandplugin/tests/project/assets/s60/implml/file2.commandml
author m2lahtel
Tue, 10 Aug 2010 14:29:28 +0300
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
permissions -rw-r--r--
ConE 1.2.11 release

<?xml version="1.0" encoding="UTF-8"?>
<commandml xmlns="http://www.s60.com/xml/commandml/1">
    
    <tag name="target" value="footarget"/>
    
    <!-- This should be executed, since the value of RealSetting is 3.14 -->
    <condition value="${BasicSettingTypesTest.RealSetting} &gt; 4e-3">
        <command executable="python" shell="true" bufsize="0" cwd=".">
            <argument value="project/tools/print_hello.py"/>
            <argument value="-c some_config.txt" />
            <argument value="-d some_dir" />
            <argument value="-x" />
            <pipe name="stdin" value="PIPE"/>
            <pipe name="stdout" value="hello.log"/>
        </command>
    </condition>
    
    <!-- This, on the other hand, should not -->
    <condition value="${BasicSettingTypesTest.RealSetting} &lt; 4e-3">
        <command executable="python" cwd="." shell="true">
            <argument value="project/tools/print_hello.py"/>
            <argument value="-c some_config.txt" />
            <pipe name="stdout" value="should_not_be_created.log"/>
        </command>
    </condition>
    
    
    
    <!-- ====================================== -->
    <!-- Test executing in the output directory -->
    <!-- ====================================== -->
    
    <!-- Create output directory, or the next command will fail if it doesn't exist -->
    <command executable="python" shell="true">
        <argument value='project/tools/makedir.py "%CONE_OUT_ABSOLUTE%"'/>
    </command>
    
    <!-- Execute Python in the output directory and print the working directory there -->
    <command executable="python" cwd="%CONE_OUT_ABSOLUTE%" shell="true">
        <argument value='-c "import os; print os.getcwd()"'/>
        <pipe name="stdout" value="exec_in_output_test.log"/>
    </command>

    <!-- ====================================== -->
    <!-- Creating output files                  -->
    <!-- ====================================== -->
    <!-- Create output directory, or the next command will fail if it doesn't exist -->
    <command executable="python" shell="true">
        <argument value='project/tools/helloworld.py "%CONE_OUT%"'/>
    </command>


</commandml>