This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
PackageRootFilesTest.java
46 lines (36 loc) · 1.86 KB
/
PackageRootFilesTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
* Copyright (c) 2008, 2011 Sonatype Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sonatype Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.test.mngeclipse1105PackageRootFiles;
import org.apache.maven.it.Verifier;
import org.eclipse.tycho.test.AbstractTychoIntegrationTest;
import org.junit.Test;
public class PackageRootFilesTest extends AbstractTychoIntegrationTest {
@Override
protected Verifier getVerifier(String test) throws Exception {
Verifier verifier = super.getVerifier(test);
// lock build environment to something specific
verifier.getSystemProperties().setProperty("osgi.os", "macosx");
verifier.getSystemProperties().setProperty("osgi.ws", "cocoa");
verifier.getSystemProperties().setProperty("osgi.arch", "x86_64");
return verifier;
}
@Test
public void test() throws Exception {
Verifier verifier = getVerifier("MNGECLIPSE1105rootfiles");
verifier.executeGoal("integration-test");
verifier.verifyErrorFreeLog();
verifier.assertFilePresent("target/product/eclipse/jre/the_entire_jre.txt");
verifier.assertFilePresent("target/product/eclipse/license.txt");
verifier.assertFilePresent("target/product/eclipse/configuration/config.macosx.txt");
verifier.assertFileNotPresent("target/product/eclipse/configuration/config.linux.txt");
verifier.assertFileNotPresent("target/product/eclipse/configuration/config.win32.txt");
}
}