Add smoke tests, enable JPV tests

This commit is contained in:
Marian Koncek 2023-03-17 14:33:23 +01:00
parent de14c765af
commit 12449feb0b
6 changed files with 50 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}

15
plans/Smoke.java Normal file
View File

@ -0,0 +1,15 @@
import com.sun.xml.dtdparser.DTDEventListener;
import com.sun.xml.dtdparser.DTDHandlerBase;
import com.sun.xml.dtdparser.DTDParser;
import com.sun.xml.dtdparser.InputEntity;
public class Smoke
{
public static void main(String[] args)
{
System.out.println(DTDEventListener.class.getCanonicalName());
System.out.println(DTDHandlerBase.class.getCanonicalName());
System.out.println(DTDParser.class.getCanonicalName());
System.out.println(InputEntity.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 com.sun.xml.dtd-parser:dtd-parser)"
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