summaryrefslogtreecommitdiffstats
path: root/scilab/build.qa.incl.xml
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>2013-06-11 12:19:05 +0200
committerSylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>2013-06-11 12:19:05 +0200
commit59e4147edf16c945f51bd59f0c39f91b4dde738a (patch)
treea8e6ea13e3cbda75f9a394d7e7e7a27235cc22bd /scilab/build.qa.incl.xml
parent51f3b3099bfacdaf13178342db0c39672081c5f7 (diff)
downloadscilab-59e4147edf16c945f51bd59f0c39f91b4dde738a.zip
scilab-59e4147edf16c945f51bd59f0c39f91b4dde738a.tar.gz
Massive indent of all codes:
* .sci, .sce * .h, .c, .hxx, .cpp * .java * .xml Same changes as commit as a846576255304dd81d6c449ecb577121c6454d94 Change-Id: I323578ae8857f380c35f805059f1451b74e637da
Diffstat (limited to 'scilab/build.qa.incl.xml')
-rw-r--r--scilab/build.qa.incl.xml410
1 files changed, 205 insertions, 205 deletions
diff --git a/scilab/build.qa.incl.xml b/scilab/build.qa.incl.xml
index 40398bd3..c8c0082 100644
--- a/scilab/build.qa.incl.xml
+++ b/scilab/build.qa.incl.xml
@@ -1,206 +1,206 @@
1<project name="common_qa"> 1 <project name="common_qa">
2 <!-- Unitary testing + code coverage --> 2 <!-- Unitary testing + code coverage -->
3 3
4 <property name="base.dir" location="../../"/> 4 <property name="base.dir" location="../../"/>
5 5
6 <!-- JAR names --> 6 <!-- JAR names -->
7 <property file="${base.dir}/scilab-lib.properties"/> 7 <property file="${base.dir}/scilab-lib.properties"/>
8 <property file="${base.dir}/scilab-lib-doc.properties"/> 8 <property file="${base.dir}/scilab-lib-doc.properties"/>
9 <!-- Configure ANT flags --> 9 <!-- Configure ANT flags -->
10 <property file="${base.dir}/scilab.properties"/> 10 <property file="${base.dir}/scilab.properties"/>
11 11
12 <!-- Where we can find the test sources --> 12 <!-- Where we can find the test sources -->
13 <property name="test.dir" location="tests/"/> 13 <property name="test.dir" location="tests/"/>
14 <property name="src.test.dir" location="${test.dir}/java/"/> 14 <property name="src.test.dir" location="${test.dir}/java/"/>
15 <property name="report.test.dir" location="${base.dir}/reports/"/> 15 <property name="report.test.dir" location="${base.dir}/reports/"/>
16 <property name="report.xml.test.dir" location="${report.test.dir}/xml/"/> 16 <property name="report.xml.test.dir" location="${report.test.dir}/xml/"/>
17 <property name="report.html.test.dir" location="${report.test.dir}/html/"/> 17 <property name="report.html.test.dir" location="${report.test.dir}/html/"/>
18 <property name="report.codecoverage.dir" location="${report.test.dir}/codecoverage/"/> 18 <property name="report.codecoverage.dir" location="${report.test.dir}/codecoverage/"/>
19 <property name="report.codecoverage.html.dir" location="${report.test.dir}/html-codecoverage/"/> 19 <property name="report.codecoverage.html.dir" location="${report.test.dir}/html-codecoverage/"/>
20 <property name="report.codecoverage.xml.dir" location="${report.test.dir}/xml-codecoverage/"/> 20 <property name="report.codecoverage.xml.dir" location="${report.test.dir}/xml-codecoverage/"/>
21 21
22 <!-- Check style definitions --> 22 <!-- Check style definitions -->
23 <property name="checkstyle.config.file" value="${base.dir}/checkstyle/scilab_checkstyle_convention.xml"/> 23 <property name="checkstyle.config.file" value="${base.dir}/checkstyle/scilab_checkstyle_convention.xml"/>
24 <property name="checkstyle.stylesheet" value="${thirdparty.dir}/checkstyle/contrib/checkstyle-noframes-sorted.xsl"/> 24 <property name="checkstyle.stylesheet" value="${thirdparty.dir}/checkstyle/contrib/checkstyle-noframes-sorted.xsl"/>
25 <property name="checkstyle.report.dir" value="${build.dir}/checkstyle"/> 25 <property name="checkstyle.report.dir" value="${build.dir}/checkstyle"/>
26 <property name="checkstyle.xml.report.file" value="${checkstyle.report.dir}/checkstyle_errors.xml"/> 26 <property name="checkstyle.xml.report.file" value="${checkstyle.report.dir}/checkstyle_errors.xml"/>
27 <property name="checkstyle.html.report.file" value="${checkstyle.report.dir}/checkstyle_errors.htm"/> 27 <property name="checkstyle.html.report.file" value="${checkstyle.report.dir}/checkstyle_errors.htm"/>
28 28
29 <path id="unittest.classpath"> 29 <path id="unittest.classpath">
30 <pathelement location="${junit4.jar}"/> 30 <pathelement location="${junit4.jar}"/>
31 </path> 31 </path>
32 <path id="cobertura_classpath"> 32 <path id="cobertura_classpath">
33 <pathelement location="${cobertura.jar}"/> 33 <pathelement location="${cobertura.jar}"/>
34 </path> 34 </path>
35 35
36 <!-- Clean test --> 36 <!-- Clean test -->
37 <target name="clean-test" description="Clean test files"> 37 <target name="clean-test" description="Clean test files">
38 <delete dir="${build.test.dir}"/> 38 <delete dir="${build.test.dir}"/>
39 </target> 39 </target>
40 40
41 <target name="existing-tests"> 41 <target name="existing-tests">
42 <available property="test-present" file="${src.test.dir}"/> 42 <available property="test-present" file="${src.test.dir}"/>
43 </target> 43 </target>
44 44
45 <!-- Compile test sources --> 45 <!-- Compile test sources -->
46 <target name="compile-test" description="Build tests" depends="existing-tests, clean-test, jar" if="test-present"> 46 <target name="compile-test" description="Build tests" depends="existing-tests, clean-test, jar" if="test-present">
47 <!-- clean the test to make sure it will build properly --> 47 <!-- clean the test to make sure it will build properly -->
48 <javac srcdir="${src.test.dir}" destdir="${classes.test.dir}" deprecation="on" debug="${build.debug}" verbose="off" listfiles="on" includeAntRuntime="no" source="6" target="6" encoding="UTF-8"> 48 <javac srcdir="${src.test.dir}" destdir="${classes.test.dir}" deprecation="on" debug="${build.debug}" verbose="off" listfiles="on" includeAntRuntime="no" source="6" target="6" encoding="UTF-8">
49 <classpath> 49 <classpath>
50 <path refid="unittest.classpath"/> 50 <path refid="unittest.classpath"/>
51 <path refid="compile.classpath"/> 51 <path refid="compile.classpath"/>
52 </classpath> 52 </classpath>
53 </javac> 53 </javac>
54 </target> 54 </target>
55 55
56 <taskdef resource="checkstyletask.properties" classpathref="checkstyle.classpath"/> 56 <taskdef resource="checkstyletask.properties" classpathref="checkstyle.classpath"/>
57 <!-- Checkstyle process --> 57 <!-- Checkstyle process -->
58 <target name="checkstyle" depends="checkstyle-init" description="Generates a report of code convention violations."> 58 <target name="checkstyle" depends="checkstyle-init" description="Generates a report of code convention violations.">
59 <checkstyle config="${checkstyle.config.file}" failOnViolation="false"> 59 <checkstyle config="${checkstyle.config.file}" failOnViolation="false">
60 <fileset dir="${src.dir}" includes="**/*.java"/> 60 <fileset dir="${src.dir}" includes="**/*.java"/>
61 <!-- Location of cache-file. --> 61 <!-- Location of cache-file. -->
62 <property key="checkstyle.cache.file" file="${cache.dir}"/> 62 <property key="checkstyle.cache.file" file="${cache.dir}"/>
63 <formatter type="plain"/> 63 <formatter type="plain"/>
64 <formatter type="xml" toFile="${checkstyle.xml.report.file}"/> 64 <formatter type="xml" toFile="${checkstyle.xml.report.file}"/>
65 </checkstyle> 65 </checkstyle>
66 <xslt in="${checkstyle.xml.report.file}" out="${checkstyle.html.report.file}" style="${checkstyle.stylesheet}"/> 66 <xslt in="${checkstyle.xml.report.file}" out="${checkstyle.html.report.file}" style="${checkstyle.stylesheet}"/>
67 </target> 67 </target>
68 <!-- Create the build directory --> 68 <!-- Create the build directory -->
69 <target name="checkstyle-init"> 69 <target name="checkstyle-init">
70 <mkdir dir="${checkstyle.report.dir}"/> 70 <mkdir dir="${checkstyle.report.dir}"/>
71 </target> 71 </target>
72 <!-- Delete the build directory --> 72 <!-- Delete the build directory -->
73 <target name="checkstyle-clean"> 73 <target name="checkstyle-clean">
74 <delete dir="${checkstyle.report.dir}"/> 74 <delete dir="${checkstyle.report.dir}"/>
75 </target> 75 </target>
76 76
77 77
78 <!-- Allows the override of the forkMode by local build.xml --> 78 <!-- Allows the override of the forkMode by local build.xml -->
79 <condition property="forkModeAlreadySet"> 79 <condition property="forkModeAlreadySet">
80 <isset property="junit.forkMode" /> 80 <isset property="junit.forkMode" />
81 </condition> 81 </condition>
82 82
83 <target name="validate"> 83 <target name="validate">
84 <!-- Empty target to be override by other build.xml --> 84 <!-- Empty target to be override by other build.xml -->
85 </target> 85 </target>
86 86
87 <taskdef classpathref="cobertura_classpath" resource="tasks.properties" /> 87 <taskdef classpathref="cobertura_classpath" resource="tasks.properties" />
88 88
89 <target name="instrument"> 89 <target name="instrument">
90 <cobertura-instrument todir="${instrumented.classes.test.dir}" datafile="${report.test.dir}/${library.name}.ser"> 90 <cobertura-instrument todir="${instrumented.classes.test.dir}" datafile="${report.test.dir}/${library.name}.ser">
91 <fileset dir="${classes.dir}"> 91 <fileset dir="${classes.dir}">
92 <include name="**/*.class" /> 92 <include name="**/*.class" />
93 </fileset> 93 </fileset>
94 </cobertura-instrument> 94 </cobertura-instrument>
95 </target> 95 </target>
96 96
97 <target name="codecoverage" depends="compile-test, instrument, test"> 97 <target name="codecoverage" depends="compile-test, instrument, test">
98 <cobertura-merge> 98 <cobertura-merge>
99 <fileset dir="${report.test.dir}"> 99 <fileset dir="${report.test.dir}">
100 <include name="*.ser" /> 100 <include name="*.ser" />
101 </fileset> 101 </fileset>
102 </cobertura-merge> 102 </cobertura-merge>
103 103
104 <cobertura-report format="html" destdir="${report.codecoverage.html.dir}"> 104 <cobertura-report format="html" destdir="${report.codecoverage.html.dir}">
105 105
106 <fileset dir="${library.action_binding.src.dir}"> 106 <fileset dir="${library.action_binding.src.dir}">
107 <include name="**/*.java" /> 107 <include name="**/*.java" />
108 </fileset> 108 </fileset>
109 <fileset dir="${library.commons.src.dir}"> 109 <fileset dir="${library.commons.src.dir}">
110 <include name="**/*.java" /> 110 <include name="**/*.java" />
111 </fileset> 111 </fileset>
112 <fileset dir="${library.graph.src.dir}"> 112 <fileset dir="${library.graph.src.dir}">
113 <include name="**/*.java" /> 113 <include name="**/*.java" />
114 </fileset> 114 </fileset>
115 <fileset dir="${library.graphic_objects.src.dir}"> 115 <fileset dir="${library.graphic_objects.src.dir}">
116 <include name="**/*.java" /> 116 <include name="**/*.java" />
117 </fileset> 117 </fileset>
118 <fileset dir="${library.xcos.src.dir}"> 118 <fileset dir="${library.xcos.src.dir}">
119 <include name="**/*.java" /> 119 <include name="**/*.java" />
120 </fileset> 120 </fileset>
121 <fileset dir="${library.types.src.dir}"> 121 <fileset dir="${library.types.src.dir}">
122 <include name="**/*.java" /> 122 <include name="**/*.java" />
123 </fileset> 123 </fileset>
124 <fileset dir="${library.javasci.src.dir}"> 124 <fileset dir="${library.javasci.src.dir}">
125 <include name="**/*.java" /> 125 <include name="**/*.java" />
126 </fileset> 126 </fileset>
127 </cobertura-report> 127 </cobertura-report>
128 128
129 <cobertura-report format="xml" destdir="${report.codecoverage.xml.dir}"> 129 <cobertura-report format="xml" destdir="${report.codecoverage.xml.dir}">
130 130
131 <fileset dir="${library.action_binding.src.dir}"> 131 <fileset dir="${library.action_binding.src.dir}">
132 <include name="**/*.java" /> 132 <include name="**/*.java" />
133 </fileset> 133 </fileset>
134 <fileset dir="${library.commons.src.dir}"> 134 <fileset dir="${library.commons.src.dir}">
135 <include name="**/*.java" /> 135 <include name="**/*.java" />
136 </fileset> 136 </fileset>
137 <fileset dir="${library.graph.src.dir}"> 137 <fileset dir="${library.graph.src.dir}">
138 <include name="**/*.java" /> 138 <include name="**/*.java" />
139 </fileset> 139 </fileset>
140 <fileset dir="${library.graphic_objects.src.dir}"> 140 <fileset dir="${library.graphic_objects.src.dir}">
141 <include name="**/*.java" /> 141 <include name="**/*.java" />
142 </fileset> 142 </fileset>
143 <fileset dir="${library.xcos.src.dir}"> 143 <fileset dir="${library.xcos.src.dir}">
144 <include name="**/*.java" /> 144 <include name="**/*.java" />
145 </fileset> 145 </fileset>
146 <fileset dir="${library.types.src.dir}"> 146 <fileset dir="${library.types.src.dir}">
147 <include name="**/*.java" /> 147 <include name="**/*.java" />
148 </fileset> 148 </fileset>
149 <fileset dir="${library.javasci.src.dir}"> 149 <fileset dir="${library.javasci.src.dir}">
150 <include name="**/*.java" /> 150 <include name="**/*.java" />
151 </fileset> 151 </fileset>
152 </cobertura-report> 152 </cobertura-report>
153 153
154 </target> 154 </target>
155 155
156 156
157 <target name="detectForkMode" unless="forkModeAlreadySet"> 157 <target name="detectForkMode" unless="forkModeAlreadySet">
158 <property name="junit.forkMode" value="perBatch"/> 158 <property name="junit.forkMode" value="perBatch"/>
159 </target> 159 </target>
160 160
161 <target name="test" depends="existing-tests, compile-test, validate, detectForkMode" if="test-present"> 161 <target name="test" depends="existing-tests, compile-test, validate, detectForkMode" if="test-present">
162 <mkdir dir="${report.xml.test.dir}" /> 162 <mkdir dir="${report.xml.test.dir}" />
163 <mkdir dir="${report.html.test.dir}" /> 163 <mkdir dir="${report.html.test.dir}" />
164 <mkdir dir="${report.codecoverage.dir}/" /> 164 <mkdir dir="${report.codecoverage.dir}/" />
165 <junit fork="yes" forkmode="${junit.forkMode}" failureproperty="junit.failure"> 165 <junit fork="yes" forkmode="${junit.forkMode}" failureproperty="junit.failure">
166 <sysproperty key="net.sourceforge.cobertura.datafile" 166 <sysproperty key="net.sourceforge.cobertura.datafile"
167 file="${report.test.dir}/${library.name}.ser" /> 167 file="${report.test.dir}/${library.name}.ser" />
168 168
169 169
170 <classpath location="${instrumented.classes.test.dir}"/> 170 <classpath location="${instrumented.classes.test.dir}"/>
171 <classpath location="${classes.test.dir}"/> 171 <classpath location="${classes.test.dir}"/>
172 172
173 <classpath> 173 <classpath>
174 <path refid="unittest.classpath"/> 174 <path refid="unittest.classpath"/>
175 <path refid="compile.classpath"/> 175 <path refid="compile.classpath"/>
176 <pathelement location="${cobertura.jar}"/> 176 <pathelement location="${cobertura.jar}"/>
177 <pathelement location="${classes.test.dir}"/> 177 <pathelement location="${classes.test.dir}"/>
178 <pathelement location="${classes.dir}"/> 178 <pathelement location="${classes.dir}"/>
179 </classpath> 179 </classpath>
180 180
181 181
182 <!-- Where ${basedir} is the module base directory --> 182 <!-- Where ${basedir} is the module base directory -->
183 <env key="SCI" value="${basedir}/../.."/> 183 <env key="SCI" value="${basedir}/../.."/>
184 <jvmarg value="-DtestngTests=1"/> 184 <jvmarg value="-DtestngTests=1"/>
185 <jvmarg value="-Djava.library.path=${base.dir}/modules/.libs/:${base.dir}/modules/javasci/.libs/:${base.dir}/modules/types/.libs/:${base.dir}/modules/localization/.libs/:${base.dir}/modules/commons/.libs/:${base.dir}/modules/action_binding/.libs/:${base.dir}/thirdparty/:${base.dir}/bin/:/usr/lib/jni/:/usr/lib64/jni:/usr/lib/java/:/usr/lib64/java:"/> 185 <jvmarg value="-Djava.library.path=${base.dir}/modules/.libs/:${base.dir}/modules/javasci/.libs/:${base.dir}/modules/types/.libs/:${base.dir}/modules/localization/.libs/:${base.dir}/modules/commons/.libs/:${base.dir}/modules/action_binding/.libs/:${base.dir}/thirdparty/:${base.dir}/bin/:/usr/lib/jni/:/usr/lib64/jni:/usr/lib/java/:/usr/lib64/java:"/>
186 186
187 <formatter type="brief" useFile="no" /> 187 <formatter type="brief" useFile="no" />
188 <formatter type="xml" /> 188 <formatter type="xml" />
189 189
190 <batchtest fork="yes" todir="${report.xml.test.dir}" > 190 <batchtest fork="yes" todir="${report.xml.test.dir}" >
191 <fileset dir="tests/java/"> 191 <fileset dir="tests/java/">
192 <include name="**/*.java"/> 192 <include name="**/*.java"/>
193 </fileset> 193 </fileset>
194 </batchtest> 194 </batchtest>
195 </junit> 195 </junit>
196 196
197 <junitreport todir="${report.xml.test.dir}"> 197 <junitreport todir="${report.xml.test.dir}">
198 <fileset dir="${report.xml.test.dir}"> 198 <fileset dir="${report.xml.test.dir}">
199 <include name="*.xml"/> 199 <include name="*.xml"/>
200 </fileset> 200 </fileset>
201 <report format="frames" todir="${report.html.test.dir}"/> 201 <report format="frames" todir="${report.html.test.dir}"/>
202 </junitreport> 202 </junitreport>
203 203
204 <fail if="junit.failure" message="Unit test(s) failed. See the report"/> 204 <fail if="junit.failure" message="Unit test(s) failed. See the report"/>
205 </target> 205 </target>
206</project> 206 </project>