Skip to content

Commit 94e775b

Browse files
author
Vladimir Kotal
committed
run plugins tests
fixes #1870
1 parent 23eb76c commit 94e775b

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

opengrok-indexer/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ Portions Copyright (c) 2017, Chris Fraire <[email protected]>.
318318
<groupId>org.apache.lucene</groupId>
319319
<artifactId>lucene-analyzers-common</artifactId>
320320
</dependency>
321-
<dependency>
321+
<dependency>
322322
<groupId>org.apache.lucene</groupId>
323323
<artifactId>lucene-queryparser</artifactId>
324324
</dependency>
325-
<dependency>
325+
<dependency>
326326
<groupId>org.apache.lucene</groupId>
327327
<artifactId>lucene-suggest</artifactId>
328328
</dependency>

plugins/pom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2828
<artifactId>plugins</artifactId>
2929
<packaging>jar</packaging>
3030
<version>1.1-SNAPSHOT</version>
31-
<name>OpenGrok Sample Plugins</name>
31+
<name>OpenGrok authorization plugins</name>
3232

3333
<parent>
3434
<groupId>org.opensolaris.opengrok</groupId>
@@ -38,8 +38,21 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
3838

3939
<build>
4040
<sourceDirectory>.</sourceDirectory>
41+
<!-- TODO: use build-helper:add-test-source to add plugins/UserPlugin/test/ -->
42+
<testSourceDirectory>LdapPlugin/test</testSourceDirectory>
4143

44+
<testResources>
45+
<testResource>
46+
<targetPath>opengrok/auth/plugin/</targetPath>
47+
<directory>LdapPlugin/test/opengrok/auth/plugin/</directory>
48+
<excludes>
49+
<exclude>*.java</exclude>
50+
</excludes>
51+
</testResource>
52+
</testResources>
53+
4254
<plugins>
55+
4356
<plugin>
4457
<artifactId>maven-compiler-plugin</artifactId>
4558
<version>2.0.2</version>
@@ -51,6 +64,17 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5164
</includes>
5265
</configuration>
5366
</plugin>
67+
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-surefire-plugin</artifactId>
71+
<configuration>
72+
<systemPropertyVariables>
73+
<junit-force-all>true</junit-force-all>
74+
</systemPropertyVariables>
75+
</configuration>
76+
</plugin>
77+
5478
</plugins>
5579
</build>
5680

@@ -60,10 +84,15 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6084
<artifactId>opengrok-indexer</artifactId>
6185
<version>${project.version}</version>
6286
</dependency>
87+
<dependency>
88+
<groupId>javax.servlet</groupId>
89+
<artifactId>servlet-api</artifactId>
90+
</dependency>
6391
<dependency>
6492
<groupId>junit</groupId>
6593
<artifactId>junit</artifactId>
6694
<version>4.12</version>
95+
<scope>test</scope>
6796
</dependency>
6897
</dependencies>
6998

0 commit comments

Comments
 (0)