Skip to content
Snippets Groups Projects
Commit 98bb214b authored by david_williams's avatar david_williams
Browse files

tweeks to tests

parent b5765f16
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,7 @@ ...@@ -245,6 +245,7 @@
<replace file="${buildDirectory}/dependency.${groupId}.xml" value="${dependency.properties}"> <replace file="${buildDirectory}/dependency.${groupId}.xml" value="${dependency.properties}">
<replacetoken>@dependencyProperties@</replacetoken> <replacetoken>@dependencyProperties@</replacetoken>
</replace> </replace>
<ant antfile="${buildDirectory}/dependency.${groupId}.xml" target="installRepo"> <ant antfile="${buildDirectory}/dependency.${groupId}.xml" target="installRepo">
<property name="install.destination" value="${install.destination}" /> <property name="install.destination" value="${install.destination}" />
<!-- hard code for right now --> <!-- hard code for right now -->
......
...@@ -51,10 +51,15 @@ ...@@ -51,10 +51,15 @@
value="${@dependencyGroupId@name}" /> value="${@dependencyGroupId@name}" />
<property <property
name="dependency.description" name="dependency.description"
value="${@dependencyGroupId@url}" /> value="${@dependencyGroupId@descriptions}" />
<property <property
name="dependency.url" name="dependency.url"
value="${@dependencyGroupId@url}" /> value="${@dependencyGroupId@url}" />
<property
name="dependency.tobeinstalledfeaturegroups"
value="${@dependencyGroupId@tobeinstalledfeaturegroups}" />
<property <property
name="local.cache.dir" name="local.cache.dir"
value="." /> value="." />
...@@ -227,10 +232,10 @@ ...@@ -227,10 +232,10 @@
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283968 https://bugs.eclipse.org/bugs/show_bug.cgi?id=283968
--> -->
<echo message="install repo for groupId: ${groupId}" /> <echo message="install repo for groupId: ${groupId}" />
<property name="tobeinstalledrepo" value="${testRoot}/repos/${groupId}" />
<mkdir dir="${testRoot}/repos/${groupId}" /> <mkdir dir="${testRoot}/repos/${groupId}" />
<exec dir="." executable="unzip"> <exec dir="." executable="unzip">
<arg line="-o -qq ${local.cache.dir}/${dependency.file} -d ${testRoot}/repos/${groupId}" /> <arg line="-o -qq ${local.cache.dir}/${dependency.file} -d ${tobeinstalledrepo}" />
</exec> </exec>
<!-- <!--
<unzip <unzip
...@@ -239,7 +244,74 @@ ...@@ -239,7 +244,74 @@
overwrite="true" /> overwrite="true" />
--> -->
<java
taskname="p2Director Install"
fork="true"
resultProperty="p2DirectorInstallResult"
failonerror="true"
timeout="3600"
dir="${testRoot}"
jvm="${env.JAVA_6_HOME}/bin/java"
classname="org.eclipse.equinox.launcher.Main">
<classpath>
<fileset
dir="${testRoot}/eclipse/plugins">
<include
name="org.eclipse.equinox.launcher_*.jar"/>
</fileset>
</classpath>
<jvmarg
value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
<arg
value="-nosplash"/>
<arg
value="-debug"/>
<arg
value="-consolelog"/>
<arg
value="-data"/>
<arg
value="${testRoot}/p2DirectorInstall"/>
<arg
value="-application"/>
<arg
value="org.eclipse.equinox.p2.director"/>
<arg
value="-destination"/>
<arg
value="${testRoot}/eclipse"/>
<arg
value="-profile"/>
<arg
value="SDKProfile"/>
<arg
value="-repository"/>
<arg
value="${tobeinstalledrepo}"/>
<arg
value="-installIU"/>
<arg
value="${tobeInstalledfeaturegroups}"/>
<!-- make sure our forked env has a DISPLAY -->
<env
key="DISPLAY"
value="${env.DISPLAY}"/>
<redirector
output="${testRoot}/results/fullOutput.txt"
error="${testRoot}/results/fullErrorLog.txt"/>
<arg
value="-vmArgs"/>
<arg
value="-Declipse.p2.data.area=${testRoot}/eclipse/p2"/>
</java>
<echo
message="p2DirectorInstallResult: ${p2DirectorInstallResult}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment