From 19efb81bb33276773f319bfe099c2a9db27ce066 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 22 Apr 2022 16:52:42 +0200 Subject: [PATCH] Onboard package into gating --- .fmf/version | 1 + gating.yaml | 8 ++++++++ plans/smoke.fmf | 14 ++++++++++++++ plans/smoke.mdo | 26 ++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/smoke.fmf create mode 100644 plans/smoke.mdo 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..05d1cc5 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,8 @@ +--- !Policy +product_versions: + - fedora-* +decision_contexts: + - bodhi_update_push_testing + - bodhi_update_push_stable +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..ac76cfe --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,14 @@ +summary: Basic smoke test +prepare: + how: install + package: java-11-openjdk-devel +execute: + script: | + set -x + modello plans/smoke.mdo java test-src 1.0.0 foo true + javac -d test-bin test-src/smoke/* + modello plans/smoke.mdo stax-reader test-src 1.0.0 foo true + javac -d test-bin -cp test-bin test-src/smoke/io/stax/* + find test-src test-bin + test -f test-bin/smoke/SomeBean.class + test -f test-bin/smoke/io/stax/SmokeStaxReader.class diff --git a/plans/smoke.mdo b/plans/smoke.mdo new file mode 100644 index 0000000..48d1325 --- /dev/null +++ b/plans/smoke.mdo @@ -0,0 +1,26 @@ + + smoke + Smoke + Smoke test + + + package + smoke + + + + + SomeBean + 1.0.0+ + Ordinary bean + + + f + 1.0.0+ + A boolean field + Boolean + + + + +