commit 4f3f774fed75b799be7b2b29a64f5a97eb860bd2 Author: Adam Samalik Date: Thu Feb 23 11:47:58 2023 +0000 update modulemd etc diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..e811d68 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,11 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate_modules +subject_type: redhat-module +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.other.functional} +# - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.tier1.functional} +# - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.tier2.functional} +# - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.tier3.functional} +# - !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.acceptance-tier.functional} diff --git a/log4j.yaml b/log4j.yaml new file mode 100644 index 0000000..96e22cd --- /dev/null +++ b/log4j.yaml @@ -0,0 +1,45 @@ +--- +document: modulemd +version: 2 +data: + stream: 2 + summary: Java logging library + description: >- + Log4j is a popular Java logging library that allows the programmer + to output log statements to a variety of output targets. + license: + module: + - MIT + dependencies: + - buildrequires: + javapackages-tools: [201902] + platform: [el8] + requires: + platform: [el8] + profiles: + common: + rpms: + - log4j + api: + rpms: + - log4j + - log4j-jcl + - log4j-slf4j + filter: + rpms: + - disruptor-javadoc + - jctools-javadoc + components: + rpms: + disruptor: + buildorder: 10 + ref: stream-log4j-2-rhel-8.8.0 + rationale: Dependency of log4j. + jctools: + buildorder: 10 + ref: stream-log4j-2-rhel-8.8.0 + rationale: Dependency of log4j. + log4j: + buildorder: 20 + ref: stream-log4j-2-rhel-8.8.0 + rationale: Module API. diff --git a/plans/Smoke.java b/plans/Smoke.java new file mode 100644 index 0000000..e9df839 --- /dev/null +++ b/plans/Smoke.java @@ -0,0 +1,11 @@ +import org.apache.logging.log4j.*; + +public class Smoke +{ + public static void main(String[] args) + { + Logger log = LogManager.getLogger(Smoke.class); + log.error("Hello from Log4J"); + System.out.println("SMOKE TEST COMPLETE"); + } +} diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..bc64702 --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,8 @@ +summary: Basic smoke test +prepare: + how: install + package: java-1.8.0-openjdk-devel +execute: + script: + - /usr/lib/jvm/java-1.8.0-openjdk/bin/javac -cp /usr/share/java/log4j/log4j-api.jar plans/Smoke.java + - /usr/lib/jvm/java-1.8.0-openjdk/bin/java -cp /usr/share/java/log4j/log4j-api.jar:/usr/share/java/log4j/log4j-core.jar:plans Smoke