Skip to content

Commit e6f1915

Browse files
committed
[I-Build-Tests] Don't guess os-ws-arch configuration
with the existing infrastructure os, ws and arch properties are explicitly specified anyways. Additionally sanitize whitespace.
1 parent d7364b1 commit e6f1915

File tree

1 file changed

+31
-117
lines changed
  • production/testScripts/configuration/sdk.tests/testScripts

1 file changed

+31
-117
lines changed

production/testScripts/configuration/sdk.tests/testScripts/test.xml

Lines changed: 31 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
arg1="${testPlugin}"
4747
arg2="org.eclipse.pde.build.tests" />
4848
</condition>
49-
49+
5050
<condition
5151
property="extraIU"
5252
value="org.eclipse.unittest.ui">
@@ -332,7 +332,7 @@
332332
<delete
333333
verbose="false"
334334
dir="${platformLocation}/eclipse" />
335-
<echo message="Fresh extract ${runtimeArchive} into ${install} for testing." />
335+
<echo message="Fresh extract ${runtimeArchive} into ${install} for testing." />
336336
<exec
337337
dir="${platformLocation}"
338338
executable="hdiutil">
@@ -502,7 +502,7 @@
502502
<fail
503503
message="buildId variable had unexpected format. Should be of the form [IMXYNPSRU] 8 digits '-' 4 digits, but was ${buildId}"
504504
unless="buildIdOK" />
505-
505+
506506
<loadresource property="buildType">
507507
<string value="${buildId}"/>
508508
<filterchain>
@@ -579,7 +579,7 @@
579579
<fail
580580
message="eclipseStream variable had unexpected format. Should be of form digit.digit[.digit], but was ${eclipseStream}"
581581
unless="streamOK" />
582-
582+
583583
<loadresource property="eclipseStreamMajor">
584584
<string value="${eclipseStream}"/>
585585
<filterchain>
@@ -792,9 +792,20 @@
792792

793793
<target
794794
name="init"
795-
depends="initWorkspace,initProductionProperties,initBuildId, initBuildType, initDownloadHosts, initStreamVariables, initCurrentUpdateSite, initBasicDirectories,initOSes, initPlatformAndRuntimeArchiveName"
795+
depends="initWorkspace,initProductionProperties,initBuildId, initBuildType, initDownloadHosts, initStreamVariables, initCurrentUpdateSite, initBasicDirectories,initPlatformAndRuntimeArchiveName"
796796
unless="testingIsInitialized">
797797

798+
<!-- Make sure the values of os, ws, and arch are set. -->
799+
<fail
800+
unless="os"
801+
message="Value of 'os' not specified. 'os' must be set as system property" />
802+
<fail
803+
unless="ws"
804+
message="Value of 'ws' not specified. 'ws' must be set as system property" />
805+
<fail
806+
unless="arch"
807+
message="Value of 'arch' not specified. 'arch' must be set as system property" />
808+
798809
<property environment="env" />
799810

800811
<!--
@@ -1290,10 +1301,10 @@
12901301
basedir="${results}/xml"
12911302
destdir="${results}/html"
12921303
filenameparameter="filename">
1293-
<factory>
1294-
<feature name="http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions" value="true"/>
1295-
</factory>
1296-
</xslt>
1304+
<factory>
1305+
<feature name="http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions" value="true"/>
1306+
</factory>
1307+
</xslt>
12971308
</target>
12981309

12991310
<target
@@ -1325,7 +1336,7 @@
13251336
depends="init">
13261337
<runTests testPlugin="org.eclipse.equinox.common.tests" />
13271338
</target>
1328-
1339+
13291340
<target
13301341
name="equinoxds"
13311342
depends="init">
@@ -1343,7 +1354,7 @@
13431354
depends="init">
13441355
<runTests testPlugin="org.eclipse.core.tests.resources" />
13451356
</target>
1346-
1357+
13471358
<target
13481359
name="coreresourcessaveparticipant"
13491360
depends="init">
@@ -1404,7 +1415,7 @@
14041415
<runTests testPlugin="org.eclipse.jface.tests.databinding" />
14051416
</target>
14061417

1407-
<target
1418+
<target
14081419
name="jface"
14091420
depends="init">
14101421
<runTests testPlugin="org.eclipse.jface.tests" />
@@ -1441,7 +1452,7 @@
14411452
depends="init">
14421453
<runTests testPlugin="org.eclipse.tips.tests" />
14431454
</target>
1444-
1455+
14451456
<target
14461457
name="ua"
14471458
depends="init">
@@ -1538,7 +1549,7 @@
15381549
depends="init">
15391550
<runTests testPlugin="org.eclipse.pde.ui.tests" />
15401551
</target>
1541-
1552+
15421553
<target
15431554
name="pdeua"
15441555
depends="init">
@@ -1997,7 +2008,7 @@
19972008

19982009
</target>
19992010

2000-
<!--
2011+
<!--
20012012
admittedly, not quite all of 'platform', but for
20022013
now serves dual purpose of a "short set" of tests, that area
20032014
relatively quick, and relatively reliable on build.eclipse.org hardware
@@ -2035,7 +2046,7 @@
20352046
<antcall target="uiforms" />
20362047
<antcall target="equinoxp2ui" />
20372048
<antcall target="equinoxsecurity" />
2038-
<antcall target="equinoxpreferences" />
2049+
<antcall target="equinoxpreferences" />
20392050
<antcall target="search" />
20402051
<antcall target="debug" />
20412052
<antcall target="e4Core" />
@@ -2094,9 +2105,9 @@
20942105
<antcall target="pdeds" />
20952106
<antcall target="pdejunit" />
20962107
<antcall target="pdeui" />
2097-
<antcall target="pdeua" />
2108+
<antcall target="pdeua" />
20982109
<antcall target="pdeuitemplates" />
2099-
<antcall target="pdegenericeditor" />
2110+
<antcall target="pdegenericeditor" />
21002111
</target>
21012112

21022113
<target
@@ -2115,7 +2126,7 @@
21152126
<antcall target="jdtcoreperf" />
21162127
<antcall target="jdtcorebuilder" />
21172128
<antcall target="jdtdebug" />
2118-
<antcall target="jdtjdi" />
2129+
<antcall target="jdtjdi" />
21192130
<antcall target="jdtapt" />
21202131
<antcall target="jdtaptpluggable" />
21212132
</target>
@@ -2213,95 +2224,6 @@
22132224
<echoproperties regex="^os\..*$" />
22142225
</target>
22152226

2216-
<!--
2217-
initOSes is to make sure the values of os, ws, and arch are set.
2218-
We need them to match their "osgi.X" counterparts, so users often will
2219-
need to simply set the "osgi.X" values as system variables, since
2220-
our ability to guess varies from OS to OS and VM to VM ... but, if
2221-
the osgi.X values are not set, we'll take a guess based on common systems.
2222-
-->
2223-
<target name="initOSes">
2224-
2225-
<condition
2226-
property="guessed.os"
2227-
value="win32">
2228-
<os family="windows" />
2229-
</condition>
2230-
<condition
2231-
property="guessed.os"
2232-
value="macosx">
2233-
<os family="mac" />
2234-
</condition>
2235-
<condition
2236-
property="guessed.os"
2237-
value="linux">
2238-
<or>
2239-
<os family="unix" />
2240-
</or>
2241-
</condition>
2242-
<!-- if not set above, set to a ridiculous value, that will at least give hint of action to take once it causes a failure -->
2243-
<property
2244-
name="guessed.os"
2245-
value="Value of 'os' could not be determined. 'os' must be set as system variable." />
2246-
2247-
<condition
2248-
property="os"
2249-
value="${os}"
2250-
else="${guessed.os}">
2251-
<isset property="os" />
2252-
</condition>
2253-
2254-
<!-- luckily, these days, not multiple windowing systems, for common OSes -->
2255-
<condition
2256-
property="guessed.ws"
2257-
value="win32">
2258-
<os family="windows" />
2259-
</condition>
2260-
<condition
2261-
property="guessed.ws"
2262-
value="cocoa">
2263-
<os family="mac" />
2264-
</condition>
2265-
<condition
2266-
property="guessed.ws"
2267-
value="gtk">
2268-
<os family="unix" />
2269-
</condition>
2270-
<!-- if not set above, set to a ridiculous value, that will at least give hint of action to take once it causes a failure -->
2271-
<property
2272-
name="guessed.ws"
2273-
value="Value of 'ws' could not be determined. 'ws' must be set as system variable." />
2274-
2275-
<condition
2276-
property="ws"
2277-
value="${ws}"
2278-
else="${guessed.ws}">
2279-
<isset property="ws" />
2280-
</condition>
2281-
2282-
<!-- not sure this will work well? -->
2283-
<condition
2284-
property="guessed.arch"
2285-
value="x86_64">
2286-
<or>
2287-
<os arch="x86_64" />
2288-
<os arch="amd64" />
2289-
</or>
2290-
</condition>
2291-
<!-- if not set above, set to a ridiculous value, that will at least give hint of action to take once it causes a failure -->
2292-
<property
2293-
name="guessed.ws"
2294-
value="Value of 'arch' could not be determined. 'arch' must be set as system variable." />
2295-
2296-
<condition
2297-
property="arch"
2298-
value="${arch}"
2299-
else="${guessed.arch}">
2300-
<isset property="arch" />
2301-
</condition>
2302-
2303-
</target>
2304-
23052227
<target
23062228
name="test-getJavaMajorVersion"
23072229
depends="debug-allJavaProperties,debug-allOSProperties,getJavaMajorVersion">
@@ -2316,17 +2238,9 @@
23162238
<!-- <antcall target="printMainProperties" /> -->
23172239
</target>
23182240

2319-
<target
2320-
name="test-initOSes"
2321-
depends="debug-allProperties,initOSes">
2322-
<printProperty property="os" />
2323-
<printProperty property="ws" />
2324-
<printProperty property="arch" />
2325-
</target>
2326-
23272241
<target
23282242
name="test-all"
2329-
depends="init,test-initOSes,test-getJavaMajorVersion">
2243+
depends="init,debug-allProperties,test-getJavaMajorVersion">
23302244
</target>
23312245

23322246
<target

0 commit comments

Comments
 (0)