diff --git a/plans/cryptsetup.fmf b/plans/cryptsetup.fmf index 1ce2d51..8c33f37 100644 --- a/plans/cryptsetup.fmf +++ b/plans/cryptsetup.fmf @@ -18,54 +18,23 @@ prepare: - expect - keyutils - jq + - sharutils + - glibc - 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 + - name: upstream tier0 + duration: 2h + test: exec plans/run-local-tests.sh 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/run-local-tests.sh b/plans/run-local-tests.sh new file mode 100755 index 0000000..5468317 --- /dev/null +++ b/plans/run-local-tests.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -eux +set -o pipefail + +pushd $TMT_SOURCE_DIR/cryptsetup-*/tests +make -f Makefile.localtest tests +popd