Compare commits

..

4 commits

Author SHA1 Message Date
Matthew Burket
016433b079
Move to ctest for tests 2026-04-06 10:40:51 -05:00
Milan Lysonek
fed7239f8f Sanity/smoke-test: install pytest for ctest as it's in RHEL10 CRB repository 2024-08-19 11:19:08 +02:00
Milan Lysonek
eef550c096 Sanity/smoke-test: enable only rpms repo, no debuginfo/source 2024-08-19 11:18:21 +02:00
Milan Lysonek
f4dd6b4dee Sanity/smoke-test: remove old adjust 2024-07-03 10:34:09 +02:00
2 changed files with 9 additions and 8 deletions

View file

@ -45,7 +45,3 @@ tier: '1'
extra-summary: /CoreOS/openscap/Sanity/smoke-test
extra-task: /CoreOS/openscap/Sanity/smoke-test
extra-nitrate: TC#0075476
adjust:
- enabled: false
when: distro < rhel-5
continue: false

View file

@ -55,14 +55,19 @@ rlJournalStart
rlFileBackup "/etc/yum.repos.d/"
CleanupRegister "rlFileRestore"
# we have to enable buildroot repo
rlRun "dnf config-manager --set-enabled rhel-buildroot{,-debuginfo,-source}" 0-255
rlRun "dnf config-manager --set-enabled rhel-buildroot" 0-255
# Some packages needed to build openscap moved from rhel-buildroot to rhel-CRB
rlRun "dnf config-manager --set-enabled rhel-CRB{,-debuginfo,-source}" 0-255
rlRun "dnf config-manager --set-enabled beaker-CRB{,-debuginfo,-source}" 0-255
rlRun "dnf config-manager --set-enabled rhel-CRB" 0-255
rlRun "dnf config-manager --set-enabled beaker-CRB" 0-255
# AppStream source repo is not enabled by default
rlRun "dnf config-manager --set-enabled beaker-AppStream-source" 0-255
fi
# in RHEL10, pytest is in CRB which is not enabled during tmt preparation phase
if rlIsRHEL ">=10"; then
rlRun "dnf install -y python3-pytest"
fi
rlFetchSrcForInstalled $PACKAGE
if rlIsRHEL "<=7"; then
rlRun "yum-builddep -y $PACKAGE*"
@ -116,7 +121,7 @@ rlJournalStart
rlRun -s "make -C $(readlink -f ${TOPDIR}/BUILD/${PACKAGE}*) check"
rv=$?
else
rlRun -s "cmake --build $BUILD_DIR_PATH --target test -- ARGS='--output-on-failure'"
rlRun -s "ctest --test-dir $BUILD_DIR_PATH --output-on-failure"
rv=$?
# cmake output does not contain enough information, submit verbose output log
FILE="${BUILD_DIR_PATH}/Testing/Temporary/LastTest.log"