Skip to content

Commit

Permalink
Adding build to packit
Browse files Browse the repository at this point in the history
Tests should consume created packages from build stage

Signed-off-by: Yariv Rachmani <[email protected]>
  • Loading branch information
Yarboa committed Dec 10, 2023
1 parent 8a452e9 commit 58e73fb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
18 changes: 13 additions & 5 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,27 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: rpm/initoverlayfs.spec
upstream_tag_template: v{version}
upstream_project_url: https://github.com/containers/initoverlayfs
issue_repository: https://github.com/containers/initoverlayfs
specfile_path: initoverlayfs.spec
upstream_package_name: initoverlayfs

update_release: false

srpm_build_deps:
- make

jobs:
- job: copr_build
trigger: pull_request
# x86_64 is assumed by default
targets:
- fedora-39-x86_64
- centos-stream-9

- job: tests
trigger: pull_request
identifier: integration-tiers
tmt_plan: /integration/plans/tier-0
skip_build: true
targets:
targets:
- centos-stream-9-x86_64
- fedora-39-x86_64
8 changes: 6 additions & 2 deletions integration/plans/tier-0.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ provision:
how: local

adjust:
- when: distro == centos-stream-9
prepare+:
- name: Prepare c9s Repo
how: shell
order: 10
script: |
dnf install -y epel-release
when: distro == centos-stream-9

prepare:
- when: scenario == manual
prepare+:
- name: Prepare Repos
how: shell
order: 10
script: |
dnf copr enable -y @centos-automotive-sig/next

prepare:
- name: Install rpms
how: install
package: initoverlayfs
Expand Down
10 changes: 9 additions & 1 deletion integration/tests/boot-validation/test.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#!/bin/bash

set -x

if [ "${TMT_REBOOT_COUNT}" == "1" ];then
echo -n "machine is up"
storage_init=$(journalctl -r | grep "init -> usr/sbin/storage-init" | tail -1)
exit_code="$?"
if [ "$exit_code" != "0" ]; then
echo -n "initoverlayfs, storage-init messages not found in journal"
exit "$exit_code"
fi
echo -n "initoverlayfs boot complete"
exit 0
#echo -n "Verifying initoverlayfs in /boot"
fi

RPM_EXIST=$(rpm -qa | grep -i initoverlayfs)
Expand Down

0 comments on commit 58e73fb

Please sign in to comment.