configurationengine/source/plugins/common/ConeCommandPlugin/commandplugin/tests/project/assets/s60/implml/file2.commandml
changeset 0 2e8eeb919028
child 3 e7e0ae78773e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configurationengine/source/plugins/common/ConeCommandPlugin/commandplugin/tests/project/assets/s60/implml/file2.commandml	Thu Mar 11 17:04:37 2010 +0200
@@ -0,0 +1,43 @@
+<?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" bufsize="0" cwd="." env="{'MYVAR':'123'}">
+            <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>
+</commandml>
\ No newline at end of file