Skip to content

Commit

Permalink
Logic rework of fmf files and add dnf4 build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Jan 24, 2024
1 parent 785d2be commit 69d419f
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ execute:
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
--suite createrepo_c \
run
-c dnf4-testing-container run
9 changes: 9 additions & 0 deletions plans/dnf4/integration/behave-dnf.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
summary: Run Behave Test Suite - DNF
tag: dnf
execute:
how: tmt
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
--suite dnf \
run

18 changes: 18 additions & 0 deletions plans/dnf4/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
summary: Prepare the DNF4 environment

prepare+:
- name: Checkout DNF4 branch
how: shell
script: |
if [ "$PACKIT_UPSTREAM_NAME" == "dnf" ]; then
git -C $TMT_PLANS_DATA/ci-dnf-stack checkout dnf-4-stack
fi

- name: Build DNF4 testing container
how: shell
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
build \
--base $( echo "$@distro" | tr '-' ':') \
--container-arg="--env=COPR=$PACKIT_COPR_PROJECT" \
--container-arg="--env=COPR_RPMS=$PACKIT_COPR_RPMS"
8 changes: 8 additions & 0 deletions plans/dnf5/integration/behave-createrepo_c.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary: Run Behave Test Suite - CREATEREPO_C
tag: createrepo_c
execute:
how: tmt
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
--suite createrepo_c \
-c dnf5-testing-container run
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tag: dnf5
execute:
how: tmt
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test run \
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
-c dnf5-testing-container run \
--tags dnf5 \
--command dnf5
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tag: dnf5daemon
execute:
how: tmt
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test run \
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
-c dnf5-testing-container run \
--tags dnf5daemon \
--command dnf5daemon-client
12 changes: 12 additions & 0 deletions plans/dnf5/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
summary: Prepare the DNF5 environment

prepare+:
- name: Build DNF5 testing container
how: shell
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test \
-c dnf5-testing-container build \
--base $( echo "$@distro" | tr '-' ':') \
--container-arg="--env=COPR=$PACKIT_COPR_PROJECT" \
--container-arg="--env=COPR_RPMS=$PACKIT_COPR_RPMS" \

7 changes: 0 additions & 7 deletions plans/integration/behave-dnf.fmf

This file was deleted.

12 changes: 2 additions & 10 deletions plans/main.fmf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
summary: Prepare CI DNF Stack
summary: Prepare Tests

tag: integration
tag: all

prepare:
- name: Install packages to build fedora container
Expand All @@ -21,11 +21,3 @@ prepare:
git -C $TMT_PLANS_DATA/ci-dnf-stack checkout --track pull-request/$PACKIT_SOURCE_BRANCH
git -C $TMT_PLANS_DATA/ci-dnf-stack rebase $PACKIT_TARGET_BRANCH
fi

- name: Build testing container
how: shell
script: |
$TMT_PLANS_DATA/ci-dnf-stack/container-test build \
--base $( echo "$@distro" | tr '-' ':') \
--container-arg="--env=COPR=$PACKIT_COPR_PROJECT" \
--container-arg="--env=COPR_RPMS=$PACKIT_COPR_RPMS"

0 comments on commit 69d419f

Please sign in to comment.