Add smoke tests, enable JPV tests
This commit is contained in:
parent
de14c765af
commit
12449feb0b
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
9
gating.yaml
Normal file
9
gating.yaml
Normal 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
15
plans/Smoke.java
Normal 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
7
plans/javapackages.fmf
Normal 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
17
plans/smoke.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user