-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
69 lines (61 loc) · 2.37 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<project name="PypackageTests" default="test" basedir="." xmlns:if="ant:if">
<property name="package" location="package"/>
<target name="clean">
<delete>
<fileset dir="${basedir}" includes="**/*.pyc,**/streamsx*.sab,**/streamsx*.json"/>
</delete>
<delete includeemptydirs="true">
<fileset dir="${basedir}" includes="**/__pycache__/**"/>
</delete>
<delete includeemptydirs="true">
<fileset dir="${basedir}" includes="**/tk*/**"/>
</delete>
<delete includeemptydirs="true">
<fileset dir="${package}" includes="**/build/**,dist/**,streamsx.*.egg-info/**,job*.tar.gz"/>
</delete>
</target>
<target name="doc">
<echo message="Generate html doc"/>
<exec executable="make" failonerror="true" dir="${package}/docs">
<arg value="-f" />
<arg value="Makefile" />
<arg value="html" />
</exec>
</target>
<target name="test" depends="clean">
<exec executable="/bin/sh"
outputproperty="toolkit.test.output" errorproperty="toolkit.test.error" resultproperty="toolkit.test.result"
dir="${package}">
<arg value="-c"/>
<arg value="python3 -u -m unittest streamsx.hbase.tests.test_hbase.TestDistributed"/>
</exec>
<echo message="${toolkit.test.output}" if:set="toolkit.test.output"/>
<echo message="${toolkit.test.error}" if:set="toolkit.test.error"/>
<fail message="The test failed - result ${toolkit.test.result}.">
<condition>
<not>
<equals arg1="${toolkit.test.result}" arg2="0"/>
</not>
</condition>
</fail>
</target>
<target name="test-icp" depends="test-icp-remote">
</target>
<target name="test-icp-remote" depends="clean">
<exec executable="/bin/sh"
outputproperty="toolkit.test.output" errorproperty="toolkit.test.error" resultproperty="toolkit.test.result"
dir="${package}">
<arg value="-c"/>
<arg value="unset STREAMS_INSTALL;python3 -u -m unittest streamsx.hbase.tests.test_hbase.TestICPRemote"/>
</exec>
<echo message="${toolkit.test.output}" if:set="toolkit.test.output"/>
<echo message="${toolkit.test.error}" if:set="toolkit.test.error"/>
<fail message="The test failed - result ${toolkit.test.result}.">
<condition>
<not>
<equals arg1="${toolkit.test.result}" arg2="0"/>
</not>
</condition>
</fail>
</target>
</project>