72 lines
1.6 KiB
Plaintext
72 lines
1.6 KiB
Plaintext
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.
|
|
|