forked from umple/umple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.testgenerator.xml
125 lines (87 loc) · 4.24 KB
/
build.testgenerator.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." default="build" name="testparser" >
<import file="_template.xml" />
<!-- ```````````````````````````
Environment Variables
``````````````````````````` -->
<!-- ``````````````````````
Compile UmpleTToXUnit
```````````````````````-->
<!-- First compile the Umple Test templates -->
<target name="CompileXUnitTemplates">
<echo message="Compiling Umple UmpleTo*Unit Templates !"/>
<parallel>
<java jar="${umple.stable.jar}" fork="true" failonerror="true">
<arg value="UmpleTToJunit/UmpleTLTemplates/Master.ump"/>
</java>
<java jar="${umple.stable.jar}" fork="true" failonerror="true">
<arg value="UmpleTToPhpUnit/UmpleTLTemplates/Master.ump"/>
</java>
<java jar="${umple.stable.jar}" fork="true" failonerror="true">
<arg value="UmpleTToRubyUnit/UmpleTLTemplates/Master.ump"/>
</java>
</parallel>
</target>
<target name="CopyingXUnitGenerators">
<echo message="Copying *UnitGenerator Files to Directory !"/>
<copy todir="cruise.umple.test-parser/src-gen-umpletl/cruise/umple/unitGen/jUnit/" overwrite="true">
<fileset dir="UmpleTToJunit/src-gen-UmpleTL/cruise/umple/unitGen/jUnit/" excludes=".git* UmpleTToJunit.java" />
</copy>
<copy todir="cruise.umple.test-parser/src-gen-umpletl/cruise/umple/unitGen/phpUnit/" overwrite="true">
<fileset dir="UmpleTToPhpUnit/src-gen-UmpleTL/cruise/umple/unitGen/phpUnit/" excludes=".git* UmpleTToPhpUnit.java" />
</copy>
<copy todir="cruise.umple.test-parser/src-gen-umpletl/cruise/umple/unitGen/rubyUnit/" overwrite="true">
<fileset dir="UmpleTToRubyUnit/src-gen-UmpleTL/cruise/umple/unitGen/rubyUnit/" excludes=".git* UmpleTToRubyUnit.java" />
</copy>
</target>
<target name="GeneratingTestParser">
<echo message="Generating Umple Test Parser !"/>
<parallel>
<java jar="${umple.stable.jar}" fork="true" failonerror="true">
<arg value="cruise.umple.test-parser/src/ump/Master.ump"/>
</java>
</parallel>
</target>
<target name="CompilingUmpleTestParser">
<echo message="Compiling Umple Test Parser !"/>
</target>
<!--
Build
Compile Umple files for Mutation test generator
-->
<target name="GeneratingMutationTestGenerator">
<echo message="Generating Umple Mutation Test Generator !"/>
<parallel>
<java jar="${umple.stable.jar}" fork="true" failonerror="true">
<arg value="cruise.umple.mutation/src/Master.ump"/>
</java>
</parallel>
</target>
<target name="CopyingTestParserFiles">
<echo message="Copying Test Parser Files to Directory !"/>
<copy todir="cruise.umple.test-parser/src-gen/cruise/umple/testgenerator/" overwrite="true">
<fileset dir="cruise.umple.test-parser/src/src-gen/cruise/umple/testgenerator/" excludes=".git* UmpleTToRubyUnit.java" />
</copy>
<copy todir="cruise.umple.test-parser/src-gen/cruise/umple/testparser/" overwrite="true">
<fileset dir="cruise.umple.test-parser/src/src-gen/cruise/umple/testparser/" excludes=".git* UmpleTToRubyUnit.java" />
</copy>
</target>
<target name="testXUnitTemplateTest">
<echo message="Running JUnitTemplate Test"/>
</target>
<!--
Build
run by the build machine, should work as-is on your machine, but be careful
as your code will be run against the "latest" Umpled Umple.
-->
<target name="build" >
<echo> Building Test *Unit Generators and Umple Test Parser</echo>
<antcall target="CompileXUnitTemplates" />
<antcall target="CopyingXUnitGenerators" />
<antcall target="GeneratingTestParser" />
<antcall target="CompilingUmpleTestParser" />
<antcall target="GeneratingMutationTestGenerator" />
<antcall target="CopyingTestParserFiles" />
<antcall target="testXUnitTemplateTest" />
</target>
</project>