Add regression test for rhbz#1981486

This commit is contained in:
Mikolaj Izdebski 2022-04-22 23:15:46 +02:00
parent 87a2576a2a
commit 32df82418d
5 changed files with 39 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

8
gating.yaml Normal file
View File

@ -0,0 +1,8 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

10
plans/forktest.fmf Normal file
View File

@ -0,0 +1,10 @@
summary: Basic smoke test
prepare:
how: install
package: xmvn-minimal
execute:
script: |
set -x
cd ./plans/forktest
javac -d target/test-classes ForkTest.java
xmvn -V -e -B -o surefire:test

View File

@ -0,0 +1,4 @@
public class ForkTest {
public void testFork() {
}
}

16
plans/forktest/pom.xml Normal file
View File

@ -0,0 +1,16 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>forktest</artifactId>
<version>1.0.0</version>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>2</forkCount>
</configuration>
</plugin>
</plugins>
</build>
</project>