From 51430de623359c1f85ceee4dbe22558948d3c261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Mon, 26 Aug 2024 16:39:04 +0200 Subject: [PATCH] CI: cover the `shellcheck` plug-in by a test Related: https://issues.redhat.com/browse/OSH-655 Closes: https://github.com/csutils/csmock/pull/182 --- tests/simple_build/shellcheck.fmf | 11 +++++++++++ tests/simple_build/test.sh | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 tests/simple_build/shellcheck.fmf diff --git a/tests/simple_build/shellcheck.fmf b/tests/simple_build/shellcheck.fmf new file mode 100644 index 0000000..04751ca --- /dev/null +++ b/tests/simple_build/shellcheck.fmf @@ -0,0 +1,11 @@ +summary: Test analysis using ShellCheck +test: ./test.sh +framework: beakerlib +environment: + TEST_PACKAGE: dracut + TEST_TOOL: shellcheck +component: + - csmock +recommend: + - csmock +duration: 1h diff --git a/tests/simple_build/test.sh b/tests/simple_build/test.sh index 9c0106e..3e684da 100755 --- a/tests/simple_build/test.sh +++ b/tests/simple_build/test.sh @@ -7,6 +7,10 @@ TEST_PACKAGE="${TEST_PACKAGE:-}" TEST_TOOL="${TEST_TOOL:-}" TEST_USER="csmock" +# Add CS Koji +BEAKERLIB_rpm_fetch_base_url+=( "https://kojihub.stream.centos.org/kojifiles/packages/" ) +BEAKERLIB_rpm_packageinfo_base_url+=( "https://kojihub.stream.centos.org/koji/" ) + rlJournalStart rlPhaseStartSetup # use the latest csutils in the Testing Farm