Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2009-09-11 21:12:43 +0000
committerPascal Rapicault2009-09-11 21:12:43 +0000
commite1ae354f9395d85a6053d316e0a8dbb0a347a258 (patch)
tree92012c54a29b50968fc0c7106be7d72cbd175c51 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler
parentb297356049fc562db6dddbaffca14ce086eed2ea (diff)
downloadrt.equinox.p2-e1ae354f9395d85a6053d316e0a8dbb0a347a258.tar.gz
rt.equinox.p2-e1ae354f9395d85a6053d316e0a8dbb0a347a258.tar.xz
rt.equinox.p2-e1ae354f9395d85a6053d316e0a8dbb0a347a258.zip
Add test to install 36 from 35.v20090911-1719
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java
index a3d75a49e..01e6ab812 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java
@@ -10,9 +10,6 @@
*******************************************************************************/
package org.eclipse.equinox.p2.tests.reconciler.dropins;
-import java.io.File;
-import java.io.IOException;
-
import java.io.*;
import java.net.MalformedURLException;
import java.net.URL;
@@ -465,7 +462,8 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest {
*/
public void copyBundle(String bundlename, File destination) throws IOException {
if (destination == null)
- destination = new File(output, "eclipse/plugins");
+ destination = output;
+ destination = new File(destination, "eclipse/plugins");
Bundle bundle = TestActivator.getBundle(bundlename);
if (bundle == null) {
throw new IOException("Could not find: " + bundlename);
@@ -549,25 +547,29 @@ public class AbstractReconcilerTest extends AbstractProvisioningTest {
return run(message, command);
}
- public int runVerifierBundle() {
+ public int runVerifierBundle(File destination) {
+ if (destination == null)
+ destination = output;
String message = "Running the verifier bundle";
File root = new File(Activator.getBundleContext().getProperty("java.home"));
root = new File(root, "bin");
File exe = new File(root, "javaw.exe");
if (!exe.exists())
exe = new File(root, "java");
- String[] command = new String[] {(new File(output, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true"};
+ String[] command = new String[] {(new File(destination, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true"};
// command-line if you want to run and allow a remote debugger to connect
- //String[] command = new String[] {(new File(output, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true", "-Xdebug", "-Xnoagent", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8787"};
+ //String[] command = new String[] {(new File(destination, "eclipse/eclipse")).getAbsolutePath(), "--launcher.suppressErrors", "-nosplash", "-application", "org.eclipse.equinox.p2.tests.verifier.application", "-vm", exe.getAbsolutePath(), "-vmArgs", "-Dosgi.checkConfiguration=true", "-Xdebug", "-Xnoagent", "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8787"};
return run(message, command);
}
- public int installAndRunVerifierBundle() {
+ public int installAndRunVerifierBundle(File destination) {
+ if (destination == null)
+ destination = output;
try {
- copyBundle(VERIFIER_BUNDLE_ID, null);
+ copyBundle(VERIFIER_BUNDLE_ID, destination);
} catch (IOException e) {
fail("Could not find the verifier bundle");
}
- return runVerifierBundle();
+ return runVerifierBundle(destination);
}
} \ No newline at end of file

Back to the top