Skip to content

Commit

Permalink
CI: Add packit to run end-to-end tests
Browse files Browse the repository at this point in the history
Run selected tests from:

https://github.com/RedHat-SP-Security/keylime-tests

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
  • Loading branch information
ansasaki committed May 11, 2022
1 parent b869a6a commit d7ab76d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
jobs:
- job: tests
trigger: pull_request
metadata:
targets:
- fedora-stable
- fedora-rawhide
- centos-stream-9-x86_64
skip_build: true
31 changes: 31 additions & 0 deletions packit-ci.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/e2e:

summary: run keylime e2e tests

prepare:
how: shell
script:
- rm -f /etc/yum.repos.d/tag-repository.repo
- ln -s $(pwd) /var/tmp/rust-keylime_sources

discover:
how: fmf
url: https://github.com/RedHat-SP-Security/keylime-tests
ref: main
test:
- /setup/configure_tpm_emulator
- /setup/install_upstream_keylime
- /setup/install_upstream_rust_keylime
- /functional/basic-attestation-on-localhost
- /functional/basic-attestation-without-mtls
- /functional/keylime_tenant-commands-on-localhost

adjust:
# prepare step adjustments
- prepare+:
script+:
- yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
when: distro == centos-stream-9

execute:
how: tmt

0 comments on commit d7ab76d

Please sign in to comment.