0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<commandml xmlns="http://www.s60.com/xml/commandml/1">
|
|
3 |
|
|
4 |
<tag name="target" value="footarget"/>
|
|
5 |
|
|
6 |
<!-- This should be executed, since the value of RealSetting is 3.14 -->
|
|
7 |
<condition value="${BasicSettingTypesTest.RealSetting} > 4e-3">
|
|
8 |
<command executable="python" bufsize="0" cwd="." env="{'MYVAR':'123'}">
|
|
9 |
<argument value="project/tools/print_hello.py"/>
|
|
10 |
<argument value="-c some_config.txt" />
|
|
11 |
<argument value="-d some_dir" />
|
|
12 |
<argument value="-x" />
|
|
13 |
<pipe name="stdin" value="PIPE"/>
|
|
14 |
<pipe name="stdout" value="hello.log"/>
|
|
15 |
</command>
|
|
16 |
</condition>
|
|
17 |
|
|
18 |
<!-- This, on the other hand, should not -->
|
|
19 |
<condition value="${BasicSettingTypesTest.RealSetting} < 4e-3">
|
|
20 |
<command executable="python" cwd="." shell="true">
|
|
21 |
<argument value="project/tools/print_hello.py"/>
|
|
22 |
<argument value="-c some_config.txt" />
|
|
23 |
<pipe name="stdout" value="should_not_be_created.log"/>
|
|
24 |
</command>
|
|
25 |
</condition>
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
<!-- ====================================== -->
|
|
30 |
<!-- Test executing in the output directory -->
|
|
31 |
<!-- ====================================== -->
|
|
32 |
|
|
33 |
<!-- Create output directory, or the next command will fail if it doesn't exist -->
|
|
34 |
<command executable="python" shell="true">
|
|
35 |
<argument value='project/tools/makedir.py "%CONE_OUT_ABSOLUTE%"'/>
|
|
36 |
</command>
|
|
37 |
|
|
38 |
<!-- Execute Python in the output directory and print the working directory there -->
|
|
39 |
<command executable="python" cwd="%CONE_OUT_ABSOLUTE%" shell="true">
|
|
40 |
<argument value='-c "import os; print os.getcwd()"'/>
|
|
41 |
<pipe name="stdout" value="exec_in_output_test.log"/>
|
|
42 |
</command>
|
|
43 |
</commandml> |