diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml index 1ea37c1..c036c89 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,15 +1,6 @@ ---- !Policy -product_versions: - - fedora-33 - - fedora-rawhide -decision_context: bodhi_update_push_stable -rules: - - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} - --- !Policy product_versions: - rhel-9 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1-x86_64.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build./plans/cryptsetup.functional} diff --git a/plans/cryptsetup.fmf b/plans/cryptsetup.fmf new file mode 100644 index 0000000..1ce2d51 --- /dev/null +++ b/plans/cryptsetup.fmf @@ -0,0 +1,71 @@ +summary: cryptsetup gating tests +environment-file: + - plans/env.yaml + +prepare: + - how: feature + epel: enabled + - how: install + package: + - cryptsetup + - cryptsetup-devel + - integritysetup + - veritysetup + - gcc + - make + - kernel-headers + - device-mapper-devel + - expect + - keyutils + - jq + - vim-common + - sharutils + - cryptsetup-libs + - glibc + - libblkid + - popt + - libpwquality + - libuuid + - popt-devel + - libpwquality-devel + - rubygem-asciidoctor + + +discover: + how: shell + url: https://gitlab.com/redhat/centos-stream/rpms/cryptsetup.git + ref: c9s + dist-git-source: true + dist-git-install-builddeps: true + tests: + - name: regression tests + test: | + set -x + if [ -z "$PKG_VER" ]; then + PKG_VER=`rpmspec -q --srpm --qf "%{version}" cryptsetup.spec` + fi + if [ -z "$PKG_VER" ]; then + echo "Error: Unable to extract package version" + exit 1 + fi + pushd $TMT_SOURCE_DIR/cryptsetup-${PKG_VER}/tests + if [[ -z $CRYPTSETUP_PATH ]];then + export CRYPTSETUP_PATH="/sbin" + fi + make -f Makefile.localtest tests + if [[ $? != 0 ]];then + echo "Something was wrong here in localtests" + exit 2 + fi + popd + +execute: + - how: tmt +provision: + hardware: + memory: ">= 3 GB" +adjust: + enabled: false + when: distro == fedora + because: They don't have access to internal repos. + diff --git a/plans/env.yaml b/plans/env.yaml new file mode 100644 index 0000000..2526948 --- /dev/null +++ b/plans/env.yaml @@ -0,0 +1,2 @@ +--- + CRYPTSETUP_PATH: /sbin