Skip to content

Commit

Permalink
Run tests on 2024-12
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Dec 9, 2024
1 parent 26183ae commit 9493d73
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public interface TychoConstants {

public static final String ECLIPSE_LATEST = "https://download.eclipse.org/releases/2024-09/";
public static final String ECLIPSE_LATEST = "https://download.eclipse.org/releases/2024-12/";

public static final String TYCHO_NOT_CONFIGURED = "Tycho build extension not configured for ";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

public class AbstractTychoExtrasIntegrationTest extends AbstractTychoIntegrationTest {

public static final String P2_REPO = "https:///download.eclipse.org/releases/2019-09/";

@Override
protected File getBasedir(String test) throws IOException {
return new File("target/test-classes", test).getAbsoluteFile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
*******************************************************************************/
package org.eclipse.tycho.extras.pde;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.io.BufferedReader;
import java.io.File;
import java.nio.file.Files;

import org.apache.maven.it.Verifier;
import org.eclipse.tycho.extras.its.AbstractTychoExtrasIntegrationTest;
import org.junit.Assert;
import org.junit.Test;

public class TestListDependencies extends AbstractTychoExtrasIntegrationTest {
Expand All @@ -26,27 +28,26 @@ public void testDependencyInReactor() throws Exception {
verifier.executeGoal("verify");
verifier.verifyErrorFreeLog();
File file = new File(verifier.getBasedir(), "dependent/target/dependencies-list.txt");
Assert.assertTrue(file.exists());
assertTrue(file.exists());
try (BufferedReader reader = Files.newBufferedReader(file.toPath());) {
File dependency = new File(reader.readLine());
Assert.assertTrue(dependency.exists());
Assert.assertEquals("dependency-0.1.0-SNAPSHOT.jar", dependency.getName());
assertTrue(dependency.exists());
assertEquals("dependency-0.1.0-SNAPSHOT.jar", dependency.getName());
}
}

@Test
public void testDependencyWithNestedJar() throws Exception {
Verifier verifier = getVerifier("dependencyList/dependency-with-nested-jar", false);
verifier.addCliOption("-Dp2-repo=" + P2_REPO);
Verifier verifier = getVerifier("dependencyList/dependency-with-nested-jar");
verifier.executeGoal("verify");
verifier.verifyErrorFreeLog();
File file = new File(verifier.getBasedir(), "target/dependencies-list.txt");
Assert.assertTrue(file.exists());
assertTrue(file.exists());
try (BufferedReader reader = Files.newBufferedReader(file.toPath()) //
) { //
File dependency = new File(reader.readLine());
Assert.assertTrue(dependency.exists());
Assert.assertEquals("org.junit-4.12.0.v201504281640.jar", dependency.getName());
assertTrue(dependency.exists());
assertEquals("org.junit-4.13.2.v20240929-1000.jar", dependency.getName());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<repositories>
<repository>
<id>p2-repo</id>
<url>${p2-repo}</url>
<url>${target-platform}</url>
<layout>p2</layout>
</repository>
</repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void testLocalMavenRepository() throws Exception {
// TODO this is only an indirect test; it should test that the bundles nested
// jars are accessible as file URLs
File antHome = new File(v01.getBasedir(),
"tycho340.test/target/work/plugins/org.apache.ant_1.10.14.v20230922-1200");
"tycho340.test/target/work/plugins/org.apache.ant_1.10.15.v20240901-1000");
Assert.assertTrue(antHome.isDirectory());
}

Expand Down

0 comments on commit 9493d73

Please sign in to comment.