From 2a8f07bab44074bbae95a798298340599983392b Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Thu, 19 Aug 2021 14:35:44 +0200 Subject: [PATCH] Add gating tests Related: rhbz#1994935 --- .fmf/version | 1 + gating.yaml | 7 +++++++ plans/JansiLoadLibrary.class | Bin 0 -> 361 bytes plans/JansiLoadLibrary.java | 8 ++++++++ plans/smoke.fmf | 5 +++++ 5 files changed, 21 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/JansiLoadLibrary.class create mode 100644 plans/JansiLoadLibrary.java create mode 100644 plans/smoke.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..f1bb5dd --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-9 +decision_contexts: + - osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plans/JansiLoadLibrary.class b/plans/JansiLoadLibrary.class new file mode 100644 index 0000000000000000000000000000000000000000..57babc6eba917c5ec9c255ff0c68fd2f877837bd GIT binary patch literal 361 zcmZ9HzfQwI48}jVA%PHR`BOF|*jff|WB{=sF`x*BB9LIZv`6G9y-1e?3Eqkc#J~ga zPzYZJDsiW?E&J#1?C+n?F90VP#R#wwV-tf2!w6f1@Qf`t=Y;-vaz_X*s<|NyQnu#0 zU1Y}H>a3JZu+VG?d*jEn(9c?x+U9E7IJWtzZ;Yo^>t^PXJv_S7w&t|b^OQ5E-OI7> zNw9)2!ghik>=K6mAxSNzZ?eM78p5PP~b?) J>jL(W`~q#+N)G@4 literal 0 HcmV?d00001 diff --git a/plans/JansiLoadLibrary.java b/plans/JansiLoadLibrary.java new file mode 100644 index 0000000..1b05101 --- /dev/null +++ b/plans/JansiLoadLibrary.java @@ -0,0 +1,8 @@ +// Compile with: +// $ javac -cp /usr/lib/java/jansi/jansi.jar JansiLoadLibrary.java + +class JansiLoadLibrary { + public static void main(String[] args) { + org.fusesource.jansi.internal.JansiLoader.initialize(); + } +} diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..140921c --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +execute: + script: + - dnf -y install java-11-openjdk-headless + - /usr/lib/jvm/jre-11-openjdk/bin/java -cp /usr/lib/java/jansi/jansi.jar:plans JansiLoadLibrary