Skip to main content
summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2014-04-11Fix - Bug 432167. Prevents migration wizard fromHamdan Msheik1-0/+26
importing plug-ins of a succeeding eclipse version. Change-Id: Ifcfcdf596c41559249971895e795e69682523c87 Signed-off-by: Hamdan Msheik <hamdan.msheik@ericsson.com>
2014-02-24Bug 428684 - [remediation] Plug-ins directly installed can break resulting ↵I20140225-0800Pascal Rapicault2-0/+134
install Change-Id: Ibb4a918d708c1d7044a970dedf58ff9b75bb7f6c Signed-off-by: Pascal Rapicault <pascal@rapicorp.com>
2014-01-17Bug 423538 - Format IU list output of P2 directorI20140122-0800I20140121-2000I20140121-0800I20140120-2000I20140120-0800I20140119-2000Christian Georgi3-0/+153
By default the -list command only prints id and version of an IU, which is not always sufficient. For example, a UI might want to show the name of IUs instead of their ID to the user. This patch tries to accommodate this by introducing format strings through a new -listFormat <formatString> command. Using the ${property} syntax one can access all properties of an IU in the format string. ID and version are supported through hard-wired ${id} and ${version} expressions. Existing behavior of -list (without -listFormat) is preserved. Change-Id: I9c32f6040b0a75b450f230338ca612939b8765e3 Signed-off-by: Christian Georgi <christian.georgi@sap.com>
2013-12-31bug 421935 & bug 422054 - an attempt to fix windows tests.I20140114-0800I20140107-0800I20131231-0800Krzysztof Daniel2-4/+14
Comment out tests on windows until I get win machine. Change-Id: I9f90d4fdb230e3481d327fa48a3d0c3c7e392a51 Signed-off-by: Krzysztof Daniel <krzysztof.daniel@gmail.com>
2013-12-30bug 421935 & bug 422054 - an attempt to fix windows tests.kdaniel4-0/+8
Added setting readonly using acl on win. Change-Id: I35dc0a2cad2490e3df4ba86d864bbf96d00ce824 Signed-off-by: kdaniel <krzysztof.daniel@gmail.com>
2013-12-29"bug 421935 & bug 422054 - an attempt to fix windows tests.kdaniel9-54/+57
Change-Id: Idf26bb7de89f08eb0224667f24b9b649629f6475 Signed-off-by: Krzysztof Daniel <krzysztof.daniel@gmail.com>
2013-12-29Revert "bug 421935 & bug 422054 - comment out failing windows tests until I ↵kdaniel6-78/+32
will get windows machine." This reverts commit d5fd1c250f0945d5801d29dff1948bdc11515546.
2013-12-28bug 421935 & bug 422054 - comment out failing windows tests until I willkdaniel6-32/+78
get windows machine. Those bugs are caused by path differences and by unexpected to me readonly behavior.
2013-12-17Bug 422054: Create profile from existing bundles.infoI20131224-0800Krzysztof Daniel9-11/+730
I've hijacked the bug for the purpose of something that is remotely connected to the problem. Previous commit extends simpleconfigurator to load bundles from different locations, but such an extension breaks p2, as the content of OSGi application no longer corresponds to profile. In order to fix that, following things are done: 0. A fragment must contain valid P2 metadata next to the .info file. 1. User profile is dropped when there is master configuration change. Also, when fragments are changed. 2. When a new surrogate profile is created, P2 will add to the master profile all the units that are found in the fragments repos. Therefore new user profile will contain all the units that were installed by the simpleconfigurator. Fragment repos must be runnable. 3. The director application must be configured with extensions if it is supposed to work. Change-Id: I6e857ea51dd32ae7fab39d9c39bec8a91eb203b7 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-12-17bug 421935: Extend simpleconfigurator to read .info files from manyKrzysztof Daniel12-16/+507
locations. Locations should be passed to the simpleconfigurator via the p2.fragments java property and separated using ",". Each location may contain multiple fragments. A fragment consist of a directory shaped as: + extension-parent-dir + extension.info + artifacts.xml + content.xml + plugins/* + features/* Or a link file (f.e. extension.link) which contains a single java property ("link") pointing to another location in the system. The *.info file may contain relative or absolute paths to plugins. Relative paths will be resolved against the extension root. The simpleconfigurator, if configured with extensions, will attempt to load them all at startup, duplicates will be removed. It is the responsibility of the fragment provider to ensure that all fragments will lead to a valid Eclipse installation, AS NO VALIDATION OR INTEGRITY CHECK IS PERFORMED. Bundles that can't be loaded due to unsatisfied constraints will result in errors handled by OSGi (written to the .log in the configuration area). Change-Id: Ib2689c072f3149b29ed77797d7df7b209d9abde7 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-12-10bug 423628 - False positives warnings in the official build.I20131211-0800I20131210-2000I20131210-0800Krzysztof Daniel3-36/+33
False positives are caused by projects settings being different than build settings. Typical example is that project is configured to warn about local variable hiding a field, and suppression is added, but the regular releng build is not configured to warn, and it finds unnecessary suppression. I have did following things: * fixed warnings that I was able to fix (renamed variables, added generics, comments, etc, etc). * reduced the number of warnings in tests * commented warnings that must not be suppresed in the workspace unless we want "Unnecessary @SuppressWarnings" at build time. Change-Id: Iab2c962e5c331eab170b5f6e08d9bb29d05f0cc4
2013-11-28bug 422043 - 7 ConfigurationTests failed in official buildI20131209-0800I20131208-2000I20131203-0800Krzysztof Daniel3-27/+5
Partial revert of commits 10bcad9, b776de6, 1413f8a, 0dae0e9. What is left: * usage of canonical paths in the configuration tests. This is a real fix for this bug, as Configuration could write Windows specific paths, which were not handled properly in tests (java paths were using Unix-like convention - "/" and lower-case drive letters, while tests were adopting Windows convention - "\" when the tmp path was configured via command line. * I've also left changes responsible for improved deleting of work directories - current clean up method couldn't delete readonly children, so every child is now being made readable, writeable and executable before being deleted. Change-Id: I3686fbfc19950f454f945d01c53b149c9a2d93ab Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-27bug 422043 - 7 ConfigurationTests failed in official buildKrzysztof Daniel2-11/+12
Use canonical paths also when iterating over the sites. Change-Id: I99dc527bc9e8f8f9368d735c87c2eea5ee577c5f Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-26bug 422043: 7 ConfigurationTests failed in official build Krzysztof Daniel1-14/+15
Use canocical path when referring to update sites in the tests. Change-Id: If88d410ae5926ee78a958a9631d18e836513356b Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-25bug 422043 - 7 ConfigurationTests failed in official buildI20131126-0800Krzysztof Daniel1-4/+8
Instrumentation. It's likely that tests fail because configuration uses windows specific line delimiters, but tests use unix like ones. Change-Id: I4994cb5bcf950b257e89b18672f51e089a5a3277 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-21bug 422043 - 7 ConfigurationTests failed in official buildKrzysztof Daniel3-5/+32
Instrumentation to sysout important paths. Also: Improved tests cleaning. Change-Id: Ia9fa1dd1ae6d70e183825bc8dd662f7cc26745ee Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-19Bug 422026 - Get rid of ColletionUtils.empty[Set|List|Map]Alexander Kurtakov4-23/+17
Now that p2 has Java 1.5 as a minimum there is no reason to not use the JVM methods. Change-Id: I89444e8d1e174c316e2b17fb4f53bc7b1d097c0a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2013-11-18bug 421704 - equinox.p2.tests and equinox.p2.tests.ui failed on LinuxKrzysztof Daniel1-11/+0
Don't skip some tests when run on java 1.6. 1.7 is a required BREE. Change-Id: I966275f840f76b4979bdcb38e4c567e4f5c8e6dd Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-15Bug 421814 - Fix deprecated usages in tests.Alexander Kurtakov6-20/+6
Use Hamcrest matchers directly instead of via deprecated junit class. Change-Id: Iec5e4b6c482a85f5ed6b05020c1af85ec83d39ec Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2013-11-15Bug 421798 - Fix various warnings.Alexander Kurtakov15-25/+20
* Remove unneeded casts. * Remove unneeded throws. * Remove unneeded semicolons. Change-Id: I7454ea216cfc194a0d394550feecc29042d23363 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2013-11-14Bug 421768 - Remove useless @SuppressWarnings.Alexander Kurtakov6-6/+6
Now that 1.5 is official it's better to get rid of some old warnings. Change-Id: I57a9fbb1872e92e81884ee4fac5ac1febfdf807a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2013-11-14Bug 421771 - Don't use deprecated junit Assert.Alexander Kurtakov7-8/+8
Changing from junit.framework to org.junit is enough. Change-Id: I541d00c1dd6652003d4df51a66fb98d1e3342625 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2013-11-12Revert "bug 420260: org.eclipse.equinox.p2.tests take 1.5h longer on theKrzysztof Daniel7-70/+1
Mac " This reverts commit 8c9187a7cdfca9ae0c93566c5f383a6c7e6137bf, as it was released only for instrumentation. Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com> Change-Id: I5ca7c147d8434b3a72b84d38953817ff541b9066
2013-11-12bug 420260 - org.eclipse.equinox.p2.tests take 1.5h longer on the MacKrzysztof Daniel5-13/+13
use domain that can be resolved by Eclipse Foundation infrastructure (avoid depending on proxy while executing tests). Change-Id: I113d43930b9fd0dd5a6079677d54e8e2e6708ba6 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-12Bug 419418: testSimpleRepositoryPerformanceOnLoadReadonlyLocalRepositoryI20131112-0800Krzysztof Daniel1-10/+7
fails when invoked with maven surefire Tests rely on changing privileges, which cannot be changed without platform. Platform can't be installed into surefire, because it depends on bundles in the reactor, and would cause circular dependencies. So, the proper way is to use File API to manage file attributes. Change-Id: I93ab9eaaf9891b265e0ef4fbabe3f22a66616738 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-07Bug 419419: test233240_artifactsDeleted fails when invoked with maven surefireKrzysztof Daniel1-6/+10
Tycho surefire uses maven convention for bundles that constitute test environment, so every plugin has "-" instead of "_". This doesn't work for P2 test, because P2 generator generates bundles with "_". So, the test case has to explicitly use that character in bundle name. Change-Id: I1c01b979de2f5527d6f813272ecf27406a9813f2 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-11-04bug 420260: org.eclipse.equinox.p2.tests take 1.5h longer on the Mac I20131105-0800Krzysztof Daniel7-1/+70
This is a temporary instrumentation to gather thread dumps when a test takes longer than 60 seconds. Change-Id: I242857ccdd600d954e539e656a3fb0e0613f747d Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-10-29Bug 416565 - p2 shared install test failuresKrzysztof Daniel1-0/+18
This commit rebuilds internal test repository containing verifier application, and makes further rebuilds easier by providing complete sources of a repository projects that can be build immediately after checkout. Change-Id: Iea19e78024ec65dfe24c4e7e21932b016531f3b9 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
2013-10-28360786 Fix javadoc of TestAgentProviderTobias Oberlies1-1/+1
Bug: 360786
2013-10-25360786 Only mirror referenced artifacts in MirrorApplicaitonTobias Oberlies5-3/+221
- Fix the MirrorApplication so that it doesn't mirror any artifacts when the selected units have no associated artifacts. Before, all artifacts were mirrored. - Also: Added test that only referenced artifacts are mirrored when units with associated artifacts are mirrored. This case wasn't covered either. - Also: Fix typo in related test. - Also: Added test utility class TestAgentProvider, which gives each test a separate IProvisioningAgent and in that way prevents side-effects between the tests (e.g. in the stateful repository managers). Bug: 360786 Change-Id: I8032eac42212feb55798e3e2b06b3c98f8f55d97 Signed-off-by: Tobias Oberlies <tobias.oberlies@sap.com>
2013-09-03Added a suppress warning instead of closing the stream.I20130903-2000Ian Bull1-10/+3
TL;DR Reflection messes with the the compiler's resource leak detection. Because much of the equinox test code happens reflectively, we can't actually close the stream (as the compiler wants us to). This keeps the stream open so the shutdown method can be invoked.
2013-09-03Bug 381673 - 16 compile warnings in official buildIan Bull1-2/+9
Close the BundleJar resource.
2013-09-03Bug 381673 - 16 compile warnings in official buildIan Bull1-1/+10
Close the FrameworkClassLoader
2013-08-28Bug - 402560,405041 Migration wizard Update to latest versions and shows ↵Pascal Rapicault1-2/+3
only those to be migrated.
2013-07-29Remove noisly printlns from PhaseSetTestI20130807-0800I20130806-2000I20130806-0800I20130805-2000I20130805-0800I20130804-2300I20130730-0800John Arthorne1-8/+1
2013-07-03Bug 411892 - Tests that depend on Old Style Plugin supportI20130709-0800John Arthorne1-2/+5
2013-06-28Fixed test error messageJohn Arthorne1-1/+1
2013-06-28Fixed simple configurator test to allow running against framework in workspaceJohn Arthorne1-2/+8
2013-05-27Bug 408996 - Product detection should go over all IUsI20130527-2000Pascal Rapicault (JBoss)6-14/+386
2013-05-27Bug 409095 - [test] AbstractSharedInstallTest#removeReallyReadOnly failsI20130527-0800Pascal Rapicault1-0/+3
with NPE on Mac
2013-05-26Bug 409051 -[planner] Resolver times out on simple instanceI20130526-0500Pascal Rapicault1-0/+1
2013-05-25Bug 409064 - Compile failure in p2.testsI20130525-1500Pascal Rapicault1-48/+25
2013-05-25Bug 409051 - [planner] Resolver times out on simple instancePascal Rapicault1-0/+88
2013-05-23Bug 408691 - Regression in toString of IRequirementI20130523-1400Pascal Rapicault (Ericsson)2-0/+38
2013-05-07Bug 406902I20130507-1100Mickael Istria1-7/+47
+ Fix Comparator to work with multiple levels of nested categories + Test + Updated copyright
2013-05-05Bug 406902: Allow nested category in category.xmlI20130506-2000I20130505-2000Mickael Istria1-1/+38
2013-04-30Bug 406935 - [shared] testCountReposInSharedInstallPreferences fails onI20130501-1400I20130501-1100I20130501-0800I20130430-2000Pascal Rapicault (Ericsson)2-4/+12
linux
2013-04-29Bug 406377 - [shared] previous configuration finder does not always findPascal Rapicault (Ericsson)1-1/+1
highest version
2013-04-27Check is the new request is usefulPascal Rapicault (JBoss)2-17/+3
2013-04-27Fix up testsPascal Rapicault (Ericsson)2-6/+8

Back to the top