From e0e10bf10cdec021683be6af79d6c99addce1197 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Wed, 31 Jul 2024 13:25:27 +0200 Subject: [PATCH] CI: Run pyproject-rpm-macros mocktests --- plan.fmf | 9 +++++++++ tests/integration/main.fmf | 5 +++++ tests/integration/python-userpath.fmf | 3 +++ tests/integration/python-virtualenv.fmf | 3 +++ 4 files changed, 20 insertions(+) create mode 100644 tests/integration/main.fmf create mode 100644 tests/integration/python-userpath.fmf create mode 100644 tests/integration/python-virtualenv.fmf diff --git a/plan.fmf b/plan.fmf index e6427de..9f76e68 100644 --- a/plan.fmf +++ b/plan.fmf @@ -1,4 +1,13 @@ discover: how: fmf +prepare: + - name: install git-core + how: install + package: [git-core] + - name: clone pyproject tests + how: shell + script: | + git clone https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git --depth=1 && + cd pyproject-rpm-macros && mv tests $TMT_PLAN_DATA execute: how: tmt diff --git a/tests/integration/main.fmf b/tests/integration/main.fmf new file mode 100644 index 0000000..1f94ad1 --- /dev/null +++ b/tests/integration/main.fmf @@ -0,0 +1,5 @@ +require: +- 'https://kojipkgs.fedoraproject.org/packages/epel-release/10/1.el10_0/noarch/epel-release-10-1.el10_0.noarch.rpm' +- rpm-build +- rpmdevtools +- mock diff --git a/tests/integration/python-userpath.fmf b/tests/integration/python-userpath.fmf new file mode 100644 index 0000000..307ece3 --- /dev/null +++ b/tests/integration/python-userpath.fmf @@ -0,0 +1,3 @@ +test: | + cd $TMT_PLAN_DATA/tests && + TEST_ARTIFACTS=${TMT_TEST_DATA} ./mocktest.sh python-userpath diff --git a/tests/integration/python-virtualenv.fmf b/tests/integration/python-virtualenv.fmf new file mode 100644 index 0000000..f90dcfe --- /dev/null +++ b/tests/integration/python-virtualenv.fmf @@ -0,0 +1,3 @@ +test: | + cd $TMT_PLAN_DATA/tests && + TEST_ARTIFACTS=${TMT_TEST_DATA} ./mocktest.sh python-virtualenv