aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-testrunner-components/src/test/resources/pom.xml_system_tests
blob: b07bc9a26cc00419d075d5f547ea547fc5e398ad (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0                              http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.yahoo.vespa</groupId>
    <artifactId>tester-application</artifactId>
    <version>1.0.0</version>

    <properties>
        <junit_version>5.8.1</junit_version>
        <surefire_version>2.22.0</surefire_version>
        <my-comp.jar.path>components/my-comp.jar</my-comp.jar.path>
        <main.jar.path>main.jar</main.jar.path>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.junit.vintage</groupId>
            <artifactId>junit-vintage-engine</artifactId>
            <version>${junit_version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>${junit_version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.yahoo.vespa.testrunner.test</groupId>
            <artifactId>my-comp.jar</artifactId>
            <scope>system</scope>
            <type>test-jar</type>
            <version>test</version>
            <systemPath>${my-comp.jar.path}</systemPath>
        </dependency>
        <dependency>
            <groupId>com.yahoo.vespa.testrunner.test</groupId>
            <artifactId>main.jar</artifactId>
            <scope>system</scope>
            <type>test-jar</type>
            <version>test</version>
            <systemPath>${main.jar.path}</systemPath>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${surefire_version}</version>
                <configuration>
                    <dependenciesToScan>
                        <dependency>com.yahoo.vespa.testrunner.test:main.jar</dependency>
                    </dependenciesToScan>
                    <groups>system, com.yahoo.vespa.tenant.systemtest.base.SystemTest</groups>
                    <reportsDirectory>${env.TEST_DIR}</reportsDirectory>
                    <redirectTestOutputToFile>false</redirectTestOutputToFile>
                    <trimStackTrace>false</trimStackTrace>
                    <environmentVariables>
                        <LD_LIBRARY_PATH>/opt/vespa/lib64</LD_LIBRARY_PATH>
                    </environmentVariables>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>${surefire_version}</version>
                <configuration>
                    <reportsDirectory>${env.TEST_DIR}</reportsDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>