diff options
author | Lucas Bullen | 2018-02-01 23:07:40 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-02-09 15:52:42 +0000 |
commit | cedf75b7cfd4de94d51984c7128b60edfaeb56dd (patch) | |
tree | 7626eaf7ff8bbb753586c16b9c65a80d21118696 /production/testScripts | |
parent | fbd0d556ff385cf0a456169b0fa3808a0d0fb988 (diff) | |
download | eclipse.platform.releng.aggregator-cedf75b7cfd4de94d51984c7128b60edfaeb56dd.tar.gz eclipse.platform.releng.aggregator-cedf75b7cfd4de94d51984c7128b60edfaeb56dd.tar.xz eclipse.platform.releng.aggregator-cedf75b7cfd4de94d51984c7128b60edfaeb56dd.zip |
Bug 530838 - Remove 'Eclipse-BundleShape: dir' requirement in plugins
- Extract the plugins's test.xml file
Change-Id: I5bbcfe0867ad4059363fb525c8cefaea8aca1bfa
Signed-off-by: Lucas Bullen <lbullen@redhat.com>
Diffstat (limited to 'production/testScripts')
-rw-r--r-- | production/testScripts/configuration/sdk.tests/testScripts/test.xml | 87 |
1 files changed, 86 insertions, 1 deletions
diff --git a/production/testScripts/configuration/sdk.tests/testScripts/test.xml b/production/testScripts/configuration/sdk.tests/testScripts/test.xml index 272850f9f..74922c966 100644 --- a/production/testScripts/configuration/sdk.tests/testScripts/test.xml +++ b/production/testScripts/configuration/sdk.tests/testScripts/test.xml @@ -1336,7 +1336,43 @@ <property name="junit-stylesheet" value="${executionDir}/JUNIT.XSL" /> + <fileset + id="plugin.test" + dir="${eclipse-home}/plugins"> + <filename name="${testPlugin}_*/test.xml" /> + </fileset> + <property + name="plugintest" + refid="plugin.test" /> <echo>trying to find ${testPlugin}_*/test.xml</echo> + <condition + property="plugintest.present" + value="true"> + <not> + <equals + arg1="${plugintest}" + arg2="" /> + </not> + </condition> + <fileset + id="plugin.jar" + dir="${eclipse-home}/plugins"> + <filename name="${testPlugin}_*.jar" /> + </fileset> + <property + name="pluginjar" + refid="plugin.jar" /> + <echo>trying to find ${testPlugin}_*.jar</echo> + <condition + property="pluginjar.present" + value="true"> + <not> + <equals + arg1="${pluginjar}" + arg2="" /> + </not> + </condition> + <antcall target="extractTestXml" /> <fileset id="test.plugin.file" dir="${eclipse-home}/plugins"> @@ -1360,6 +1396,19 @@ </target> <target + name="extractTestXml" + if="pluginjar.present" + unless="plugintest.present"> + <echo>extracting jar</echo> + <basename property="plugindirectory" file="${eclipse-home}/plugins/${pluginjar}" suffix=".jar"/> + <unzip src="${eclipse-home}/plugins/${pluginjar}" dest="${eclipse-home}/plugins/${plugindirectory}" overwrite="true"> + <patternset> + <include name="test.xml"/> + </patternset> + </unzip> + </target> + + <target name="runSuite" if="pluginexists"> <ant @@ -1439,7 +1488,43 @@ name="library-file" value="${executionDir}/library.xml" /> - <echo>trying to find ${testPlugin}_*</echo> + <fileset + id="plugin.test" + dir="${eclipse-home}/plugins"> + <filename name="${testPlugin}_*/test.xml" /> + </fileset> + <property + name="plugintest" + refid="plugin.test" /> + <echo>trying to find ${testPlugin}_*/test.xml</echo> + <condition + property="plugintest.present" + value="true"> + <not> + <equals + arg1="${plugintest}" + arg2="" /> + </not> + </condition> + <fileset + id="plugin.jar" + dir="${eclipse-home}/plugins"> + <filename name="${testPlugin}_*.jar" /> + </fileset> + <property + name="pluginjar" + refid="plugin.jar" /> + <echo>trying to find ${testPlugin}_*.jar</echo> + <condition + property="pluginjar.present" + value="true"> + <not> + <equals + arg1="${pluginjar}" + arg2="" /> + </not> + </condition> + <antcall target="extractTestXml" /> <fileset id="test.plugin.file" dir="${eclipse-home}/plugins"> |