Skip to content

Commit

Permalink
[I-Build-Tests] Inline 'testAll' scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Nov 30, 2024
1 parent b666509 commit 7b384ce
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 152 deletions.
3 changes: 1 addition & 2 deletions JenkinsJobs/AutomatedTests/I_unit_mac.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ pipeline {
ANT_HOME = tool(type:'ant', name:'apache-ant-latest')
PATH = "${JAVA_HOME}/bin:${ANT_HOME}/bin:${PATH}"
ANT_OPTS = "-Djava.io.tmpdir=${WORKSPACE}/tmp -Djava.security.manager=allow"
eclipseArch = \'''' + ARCH + ''''
}
steps {
cleanWs() // workspace not cleaned by default
Expand Down Expand Up @@ -75,7 +74,7 @@ java -XshowSettings -version 1>javaSettings.txt 2>&1
ant -f getEBuilder.xml -DbuildId=${buildId} -DeclipseStream=${STREAM} -DEBUILDER_HASH=${EBUILDER_HASH} \\
-DdownloadURL=https://download.eclipse.org/eclipse/downloads/drops4/${buildId} \\
-Dosgi.os=macosx -Dosgi.ws=cocoa -Dosgi.arch=${eclipseArch} \\
-Dosgi.os=macosx -Dosgi.ws=cocoa -Dosgi.arch=''' + ARCH + ''' \\
-DtestSuite=all
# For smaller test-suites see: https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/be721e33c916b03c342e7b6f334220c6124946f8/production/testScripts/configuration/sdk.tests/testScripts/test.xml#L1893-L1903
\'\'\'
Expand Down
1 change: 0 additions & 1 deletion JenkinsJobs/SmokeTests/smoke_test_arm64.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ echo JAVA_HOME: $JAVA_HOME
echo PATH: $PATH
export ANT_OPTS="${ANT_OPTS} -Djava.io.tmpdir=${WORKSPACE}/tmp ${secManager}"
export eclipseArch=aarch64
env 1>envVars.txt 2>&1
ant -diagnostics 1>antDiagnostics.txt 2>&1
Expand Down
1 change: 0 additions & 1 deletion JenkinsJobs/SmokeTests/smoke_test_ppcle.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ echo JAVA_HOME: $JAVA_HOME
echo PATH: $PATH
export ANT_OPTS="${ANT_OPTS} -Djava.io.tmpdir=${WORKSPACE}/tmp ${secMananger}"
export eclipseArch=ppc64le
env 1>envVars.txt 2>&1
ant -diagnostics 1>antDiagnostics.txt 2>&1
Expand Down
1 change: 0 additions & 1 deletion JenkinsJobs/YBuilds/Y_unit_mac64_java17.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ env 1>envVars.txt 2>&1
ant -diagnostics 1>antDiagnostics.txt 2>&1
java -XshowSettings -version 1>javaSettings.txt 2>&1
export eclipseArch=x86_64
ant -f getEBuilder.xml -Djava.io.tmpdir=${WORKSPACE}/tmp -DbuildId=$buildId -DeclipseStream=$STREAM -DEBUILDER_HASH=${EBUILDER_HASH} -DdownloadURL=https://download.eclipse.org/eclipse/downloads/drops4/${buildId} -Dosgi.os=macosx -Dosgi.ws=cocoa -Dosgi.arch=x86_64 -DtestSuite=${testSuite}
RAW_DATE_END="$(date +%s )"
Expand Down
3 changes: 0 additions & 3 deletions JenkinsJobs/YBuilds/Y_unit_macM1_java17.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ echo JAVA_HOME: $JAVA_HOME
echo ANT_HOME: $ANT_HOME
echo PATH: $PATH
export eclipseArch=aarch64
env 1>envVars.txt 2>&1
ant -diagnostics 1>antDiagnostics.txt 2>&1
java -XshowSettings -version 1>javaSettings.txt 2>&1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
testExecutable=bash

#name of script to execute
testScript=./testAll.sh
testScript=./runtests.sh

# This value gets written to the "preference file", named org.eclipse.core.net.prefs.
# We implement as a property string, since eventually we may test multiple proxy settings.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ loglocationarg=-XX:ErrorFile
testExecutable=bash

#name of script to execute
testScript=./testAll.sh
testScript=./runtestsmac.sh

# This value gets written to the "preference file", named org.eclipse.core.net.prefs.
# We implement as a property string, since eventually we may test multiple proxy settings.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ testExecutable=cmd

#name of script to execute

testScript=testAll.bat
testScript=runtests.bat

# This value gets written to the "preference file", named org.eclipse.core.net.prefs.
# We implement as a property string, since eventually we may test multiple proxy settings.
Expand Down

This file was deleted.

11 changes: 7 additions & 4 deletions production/testScripts/runTests2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -816,15 +816,18 @@
depends="init"
unless="env.TESTING_TEST_XML">

<mkdir dir="results/consolelogs"/>
<chmod file="${testScript}" perm="755"/>
<!--run the tests -->
<exec
dir="${executionDir}"
executable="${testExecutable}">
executable="${testExecutable}"
output="results/consolelogs/${testedPlatform}_consolelog.txt">
<arg line="${executionArguments}" />
<arg line="-os ${osgi.os} -ws ${osgi.ws} -arch ${osgi.arch}"/>
<arg value="-vm"/><arg path="${jvm}"/>
<arg value="-properties"/><arg path="${WORKSPACE}/production.properties"/>
<arg value="${testSuite}" />
<env
key="propertyFile"
file="${WORKSPACE}/production.properties" />
<env
key="jvm"
file="${jvm}" />
Expand Down

0 comments on commit 7b384ce

Please sign in to comment.