diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16fd43c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +lujavrite-1.0.2.tar.gz diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index a9520db..0000000 --- a/gating.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- !Policy -product_versions: - - rhel-10 -decision_contexts: - - osci_compose_gate -rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/lujavrite.spec b/lujavrite.spec index c745cd0..20626b3 100644 --- a/lujavrite.spec +++ b/lujavrite.spec @@ -1,6 +1,6 @@ Name: lujavrite Version: 1.0.2 -Release: 7%{?dist} +Release: 5%{?dist} Summary: Lua library for calling Java code License: Apache-2.0 URL: https://github.com/mizdebsk/lujavrite @@ -37,14 +37,6 @@ lua test.lua %doc README.md %changelog -* Tue Oct 29 2024 Troy Dawson - 1.0.2-7 -- Bump release for October 2024 mass rebuild: - Resolves: RHEL-64018 - -* Sat Sep 21 2024 Andrew Hughes - 1.0.2-6 -- Rebuilt with java-21-openjdk as default JDK: - https://issues.redhat.com/browse/RHEL-34597 - * Mon Jun 24 2024 Troy Dawson - 1.0.2-5 - Bump release for June 2024 mass rebuild diff --git a/plans/plan.fmf b/plans/plan.fmf deleted file mode 100644 index 39a49cb..0000000 --- a/plans/plan.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Run smoke tests from dist-git -discover: - how: fmf -execute: - how: tmt diff --git a/tests/main.fmf b/tests/main.fmf deleted file mode 100644 index 99fd67e..0000000 --- a/tests/main.fmf +++ /dev/null @@ -1,4 +0,0 @@ -contact: Mikolaj Izdebski -framework: beakerlib -test: ./runtest.sh -tier: 0 diff --git a/tests/smoke/main.fmf b/tests/smoke/main.fmf deleted file mode 100644 index e04064d..0000000 --- a/tests/smoke/main.fmf +++ /dev/null @@ -1,3 +0,0 @@ -summary: Lujavrite smoke test -description: Test basic functionality of Lujavrite. -require: java-21-openjdk-headless diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh deleted file mode 100755 index 058f4d6..0000000 --- a/tests/smoke/runtest.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# Author: Mikolaj Izdebski -. /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 diff --git a/tests/smoke/smoke.lua b/tests/smoke/smoke.lua deleted file mode 100644 index 20c6148..0000000 --- a/tests/smoke/smoke.lua +++ /dev/null @@ -1,37 +0,0 @@ -local lujavrite = require "lujavrite" - --- Determine Java home to use -java_home = os.getenv("JAVA_HOME") -if java_home == nil then - java_home = "/usr/lib/jvm/jre" -end - --- Initialize JVM -lujavrite.init(java_home .. "/lib/server/libjvm.so", "-ea", "-esa") - --- System.getProperty(key) -function get_property(key) - return lujavrite.call( - "java/lang/System", "getProperty", - "(Ljava/lang/String;)Ljava/lang/String;", - key - ) -end - --- System.setProperty(key, value) -function set_property(key, value) - return lujavrite.call( - "java/lang/System", "setProperty", - "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", - key, value - ) -end - -local java_version = get_property("java.version") -print("Java version is " .. java_version) - -set_property("foo", "bar") -print("foo is " .. get_property("foo")) - -local java_nil = lujavrite.call("java/lang/String", "valueOf", "(Ljava/lang/Object;)Ljava/lang/String;", nil) -print("nil in Lua is " .. java_nil .. " in Java")