jaxb-dtd-parser/tests/Sanity/smoke/runtest.sh

17 lines
506 B
Bash
Raw Normal View History

2024-07-02 09:40:51 +00:00
#!/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