lujavrite/tests/smoke/runtest.sh

24 lines
594 B
Bash
Raw Normal View History

2023-03-03 11:53:49 +00:00
#!/bin/bash
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
. /usr/share/beakerlib/beakerlib.sh
rlJournalStart
rlPhaseStartSetup
rlAssertRpm lujavrite
rlAssertRpm java-17-openjdk-headless
export JAVA_HOME=/usr/lib/jvm/jre-17-openjdk
rlPhaseEnd
rlPhaseStartTest
rlAssertExists "${JAVA_HOME}"
rlAssertExists "${JAVA_HOME}/lib/server/libjvm.so"
rlRun -s "lua smoke.lua"
rlAssertGrep "Java version is 17" $rlRun_LOG
rlAssertGrep "foo is bar" $rlRun_LOG
rlAssertGrep "nil in Lua is null in Java" $rlRun_LOG
rlPhaseEnd
rlJournalEnd
rlJournalPrintText