Add smoke tests, enable JPV tests

This commit is contained in:
Marian Koncek 2023-03-17 14:29:07 +01:00
parent 84b5fbaefe
commit ac69c3916b
6 changed files with 52 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

9
gating.yaml Normal file
View File

@ -0,0 +1,9 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_testing
- bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages.functional}

17
plans/Smoke.java Normal file
View File

@ -0,0 +1,17 @@
import jakarta.xml.bind.JAXB;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.Marshaller;
import jakarta.xml.bind.Unmarshaller;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(JAXB.class.getCanonicalName());
System.out.println(JAXBContext.class.getCanonicalName());
System.out.println(JAXBElement.class.getCanonicalName());
System.out.println(Marshaller.class.getCanonicalName());
System.out.println(Unmarshaller.class.getCanonicalName());
}
}

7
plans/javapackages.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/javapackages
ref: f39
execute:
how: tmt

17
plans/smoke.fmf Normal file
View File

@ -0,0 +1,17 @@
summary: Basic smoke test
prepare:
how: install
package:
- java-11-openjdk-devel
- xmvn-tools
discover:
how: shell
tests:
- name: /smoke/classpath-import
test: |
CLASSPATH+=":$(xmvn-resolve jakarta.xml.bind:jakarta.xml.bind-api)"
export CLASSPATH
/usr/lib/jvm/java-11-openjdk/bin/javac plans/Smoke.java
/usr/lib/jvm/java-11-openjdk/bin/java -cp "${CLASSPATH}:plans" Smoke
execute:
how: tmt