lujavrite/tests/smoke/runtest.sh
2024-07-30 18:58:22 +02:00

24 lines
594 B
Bash
Executable File

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