From 52e3d8350c82336e1c479007a64c97654cfb1416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 8 Jun 2023 18:34:39 +0200 Subject: [PATCH] Add TMT tests and gating --- .fmf/version | 1 + gating.yaml | 7 +++++++ plans/sanity.fmf | 5 +++++ tests/headers.fmf | 8 ++++++++ tests/tool.fmf | 9 +++++++++ 5 files changed, 30 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/sanity.fmf create mode 100644 tests/headers.fmf create mode 100644 tests/tool.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..282e16b --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/plans/sanity.fmf b/plans/sanity.fmf new file mode 100644 index 0000000..a72ded4 --- /dev/null +++ b/plans/sanity.fmf @@ -0,0 +1,5 @@ +summary: Sanity tests +discover: + how: fmf +execute: + how: tmt diff --git a/tests/headers.fmf b/tests/headers.fmf new file mode 100644 index 0000000..b100348 --- /dev/null +++ b/tests/headers.fmf @@ -0,0 +1,8 @@ +summary: Building a lp_solve application +description: + Check that a lp_solve application can be compiled, linked and executed. +component: lpsolve +require: + - gcc + - lpsolve-devel +test: gcc -I/usr/include/lpsolve /usr/share/doc/lpsolve-devel/demo.c -llpsolve55 && ./a.out