Backport tests from Fedora
This commit is contained in:
parent
5680d3b4b8
commit
795c289e3d
@ -1,17 +1,5 @@
|
|||||||
summary: Basic smoke test
|
summary: Basic smoke test
|
||||||
prepare:
|
|
||||||
how: install
|
|
||||||
package:
|
|
||||||
- java-11-openjdk-devel
|
|
||||||
- xmvn-tools
|
|
||||||
discover:
|
discover:
|
||||||
how: shell
|
how: fmf
|
||||||
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:
|
execute:
|
||||||
how: tmt
|
how: tmt
|
||||||
|
7
tests/Sanity/smoke/main.fmf
Normal file
7
tests/Sanity/smoke/main.fmf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
summary: jaxb-dtd-parser smoke test
|
||||||
|
description: |
|
||||||
|
Test basic functionality of jaxb-dtd-parser.
|
||||||
|
require:
|
||||||
|
- jaxb-dtd-parser
|
||||||
|
- java-21-openjdk-devel
|
||||||
|
- xmvn-tools
|
16
tests/Sanity/smoke/runtest.sh
Executable file
16
tests/Sanity/smoke/runtest.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Author: Marian Koncek <mkoncek@redhat.com>
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
|
||||||
|
rlPhaseStartTest "compile Smoke.java and run it"
|
||||||
|
CLASSPATH+=":$(xmvn-resolve com.sun.xml.dtd-parser:dtd-parser)"
|
||||||
|
export CLASSPATH
|
||||||
|
rlRun "/usr/lib/jvm/java-21-openjdk/bin/javac Smoke.java"
|
||||||
|
rlRun -s "/usr/lib/jvm/java-21-openjdk/bin/java -cp \"${CLASSPATH}:plans\" Smoke"
|
||||||
|
rlAssertGrep "com.sun.xml.dtdparser.DTDParser" $rlRun_LOG
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlJournalEnd
|
||||||
|
rlJournalPrintText
|
5
tests/main.fmf
Normal file
5
tests/main.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
contact: Marian Koncek <mkoncek@redhat.com>
|
||||||
|
framework: beakerlib
|
||||||
|
test: ./runtest.sh
|
||||||
|
tier: 0
|
||||||
|
component: jaxb-dtd-parser
|
Loading…
Reference in New Issue
Block a user