forked from woqidaideshi/openruyi-autotest
Compare commits
40
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a247c616a4 | ||
|
|
3e4825afe0 | ||
|
|
3e72c7506e | ||
|
|
61de1021f1 | ||
|
|
c90874ec88 | ||
|
|
d42fae648d | ||
|
|
fc082e5515 | ||
|
|
39d5646e98 | ||
|
|
c98ef02e30 | ||
|
|
85a15b1cac | ||
|
|
8680574fdc | ||
|
|
4a5af63a70 | ||
|
|
e08a767c38 | ||
|
|
b7c0551042 | ||
|
|
fba05449de | ||
|
|
13830aee41 | ||
|
|
e4891a67e2 | ||
|
|
b0c1e34059 | ||
|
|
f5b0bcfac6 | ||
|
|
9541d43632 | ||
|
|
9c9a6f87f7 | ||
|
|
4d48481c6c | ||
|
|
c81dc57b94 | ||
|
|
758a39ba22 | ||
|
|
ad6ef313b4 | ||
|
|
32809e60a1 | ||
|
|
edf7973b19 | ||
|
|
184edd6717 | ||
|
|
343f078f59 | ||
|
|
52b370bbfc | ||
|
|
6c2b40908f | ||
|
|
ff06f99269 | ||
|
|
5f6f5f9239 | ||
|
|
cd8204e0a0 | ||
|
|
ad373f3d9c | ||
|
|
736db0d484 | ||
|
|
4631930cb7 | ||
|
|
80611d1f76 | ||
|
|
0f4991afbe | ||
|
|
1791e79931 |
@@ -10,7 +10,7 @@
|
||||
LTP_FLAG="/tmp/.beakerlib_ltp_posix_suite"
|
||||
LTP_DIR="/tmp/ltp-posix"
|
||||
LTP_BUILD_DIR="$LTP_DIR/testcases/open_posix_testsuite"
|
||||
SUDO_PASSWORD="openruyi"
|
||||
SUDO_PASSWORD="${TEST_SERVER_1_PASSWORD:-openruyi}"
|
||||
|
||||
# ── 引用计数 Setup ──
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ CSMITH_FLAG="/tmp/.beakerlib_compiler_csmith_suite"
|
||||
csmithSetup() {
|
||||
if [ ! -f "$CSMITH_FLAG" ]; then
|
||||
if ! rpm -q csmith 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y csmith 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y csmith 2>/dev/null
|
||||
if ! rpm -q csmith 2>/dev/null; then
|
||||
rlLogWarning "csmith 安装失败"
|
||||
echo "installed=0" > "$CSMITH_FLAG"
|
||||
@@ -43,7 +43,7 @@ csmithCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$CSMITH_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y csmith 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y csmith 2>/dev/null || true
|
||||
rlLogInfo "已卸载 csmith"
|
||||
fi
|
||||
rm -f "$CSMITH_FLAG"
|
||||
|
||||
@@ -17,7 +17,7 @@ DEJAGNU_FLAG="/tmp/.beakerlib_compiler_dejagnu_suite"
|
||||
dejagnuSetup() {
|
||||
if [ ! -f "$DEJAGNU_FLAG" ]; then
|
||||
if ! rpm -q dejagnu 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y dejagnu 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y dejagnu 2>/dev/null
|
||||
if ! rpm -q dejagnu 2>/dev/null; then
|
||||
rlLogWarning "dejagnu 安装失败"
|
||||
echo "installed=0" > "$DEJAGNU_FLAG"
|
||||
@@ -47,7 +47,7 @@ dejagnuCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$DEJAGNU_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y dejagnu 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y dejagnu 2>/dev/null || true
|
||||
rlLogInfo "已卸载 dejagnu"
|
||||
fi
|
||||
rm -f "$DEJAGNU_FLAG"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "环境准备"
|
||||
dejagnuSetup
|
||||
if ! rpm -q clang 2>/dev/null; then echo openruyi | sudo -S dnf install -y clang 2>/dev/null; fi
|
||||
if ! rpm -q clang 2>/dev/null; then echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y clang 2>/dev/null; fi
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "进入临时目录"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "环境准备"
|
||||
dejagnuSetup
|
||||
if ! rpm -q clang 2>/dev/null; then echo openruyi | sudo -S dnf install -y clang 2>/dev/null; fi
|
||||
if ! rpm -q clang 2>/dev/null; then echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y clang 2>/dev/null; fi
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "进入临时目录"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "环境准备"
|
||||
dejagnuSetup
|
||||
if ! rpm -q gdb 2>/dev/null; then echo openruyi | sudo -S dnf install -y gdb 2>/dev/null; fi
|
||||
if ! rpm -q gdb 2>/dev/null; then echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y gdb 2>/dev/null; fi
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "进入临时目录"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "环境准备"
|
||||
dejagnuSetup
|
||||
if ! rpm -q clang 2>/dev/null; then echo openruyi | sudo -S dnf install -y clang 2>/dev/null; fi
|
||||
if ! rpm -q clang 2>/dev/null; then echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y clang 2>/dev/null; fi
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "进入临时目录"
|
||||
|
||||
|
||||
@@ -53,10 +53,10 @@ jotaiSetup() {
|
||||
if [ ! -f "$JOTAI_FLAG" ]; then
|
||||
# Install dependencies
|
||||
if ! rpm -q gcc 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y gcc 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y gcc 2>/dev/null
|
||||
fi
|
||||
if ! rpm -q clang 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y clang 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y clang 2>/dev/null
|
||||
fi
|
||||
|
||||
# Clone jotai-benchmarks if not present
|
||||
|
||||
@@ -17,10 +17,10 @@ yarpgenSetup() {
|
||||
if [ ! -f "$YARPGEN_FLAG" ]; then
|
||||
# Install build dependencies
|
||||
if ! rpm -q cmake 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y cmake 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y cmake 2>/dev/null
|
||||
fi
|
||||
if ! rpm -q gcc-c++ 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y gcc-c++ 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y gcc-c++ 2>/dev/null
|
||||
fi
|
||||
|
||||
# Clone and build yarpgen if not present
|
||||
|
||||
@@ -39,11 +39,11 @@ _blktestsRunCase() {
|
||||
# blktests requires TEST_DEVS config; without devices, most tests will be [not run]
|
||||
# Create minimal config if it doesn't exist
|
||||
if [ ! -f "$BLKTESTS_DIR/config" ]; then
|
||||
echo openruyi | sudo -S bash -c "cat > $BLKTESTS_DIR/config << 'EOF'
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S bash -c "cat > $BLKTESTS_DIR/config << 'EOF'
|
||||
TIMEOUT=30
|
||||
QUICK_RUN=1
|
||||
EOF" 2>/dev/null || true
|
||||
echo openruyi | sudo -S chown openruyi:openruyi "$BLKTESTS_DIR/config" 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S chown openruyi:openruyi "$BLKTESTS_DIR/config" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
timeout --signal=KILL --kill-after=10 600 \
|
||||
@@ -84,7 +84,7 @@ EOF" 2>/dev/null || true
|
||||
blktestsSetup() {
|
||||
if [ ! -f "$BLKTESTS_FLAG" ]; then
|
||||
if [ ! -x "$BLKTESTS_DIR/check" ]; then
|
||||
echo openruyi | sudo -S dnf install -y blktests 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y blktests 2>/dev/null
|
||||
if [ ! -x "$BLKTESTS_DIR/check" ]; then
|
||||
rlLogWarning "blktests 安装失败,测试将被跳过"
|
||||
echo "installed=0" > "$BLKTESTS_FLAG"
|
||||
|
||||
@@ -89,13 +89,13 @@ ltpSetup() {
|
||||
else
|
||||
rlLogInfo "安装 LTP(首次)..."
|
||||
# Try dnf first
|
||||
if echo openruyi | sudo -S dnf install -y ltp 2>/dev/null && command -v kirk >/dev/null 2>&1; then
|
||||
if echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y ltp 2>/dev/null && command -v kirk >/dev/null 2>&1; then
|
||||
method="dnf"
|
||||
echo "installed=1" > "$LTP_FLAG"
|
||||
else
|
||||
# dnf failed or kirk not in PATH — compile from source
|
||||
rlLogInfo "dnf 安装失败或无 kirk,从源码编译(tag: $LTP_TAG)..."
|
||||
echo openruyi | sudo -S dnf install -y git make gcc gcc-c++ autoconf automake pkgconfig \
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y git make gcc gcc-c++ autoconf automake pkgconfig \
|
||||
zlib-devel keyutils-libs-devel libtirpc-devel libmnl-devel libaio-devel \
|
||||
libcap-devel openssl-devel numactl-devel 2>/dev/null || true
|
||||
if [ ! -d "$LTP_INSTALL_DIR" ]; then
|
||||
@@ -172,7 +172,7 @@ ltpCleanup() {
|
||||
local installed
|
||||
installed=$(grep "^installed=" "$LTP_FLAG" | cut -d= -f2)
|
||||
case "$installed" in
|
||||
1) echo openruyi | sudo -S dnf remove -y ltp 2>/dev/null || true
|
||||
1) echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y ltp 2>/dev/null || true
|
||||
rlLogInfo "已卸载 LTP(dnf 安装)" ;;
|
||||
2) rm -rf "$LTP_INSTALL_DIR"
|
||||
rlLogInfo "已删除 LTP 源码目录" ;;
|
||||
|
||||
@@ -18,7 +18,7 @@ aclSetup() {
|
||||
if [ ! -f "$ACL_FLAG" ]; then
|
||||
# First test to arrive: install if needed
|
||||
if ! rpm -q acl 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y acl 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y acl 2>/dev/null
|
||||
echo "installed=1" > "$ACL_FLAG"
|
||||
rlLogInfo "已安装 acl 软件包(首次)"
|
||||
else
|
||||
@@ -52,7 +52,7 @@ aclCleanup() {
|
||||
if [ "$ref" -le 0 ]; then
|
||||
# Last test to leave: uninstall if we installed
|
||||
if grep -q "^installed=1" "$ACL_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y acl 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y acl 2>/dev/null || true
|
||||
rlLogInfo "已卸载 acl 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$ACL_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_atf_suite"
|
||||
atfSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q atf 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y atf 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y atf 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 atf 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ atfCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y atf 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y atf 2>/dev/null || true
|
||||
rlLogInfo "已卸载 atf 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_attr_suite"
|
||||
attrSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q attr 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y attr 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y attr 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 attr 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ attrCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y attr 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y attr 2>/dev/null || true
|
||||
rlLogInfo "已卸载 attr 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_audit_suite"
|
||||
auditSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q audit 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y audit 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y audit 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 audit 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ auditCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y audit 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y audit 2>/dev/null || true
|
||||
rlLogInfo "已卸载 audit 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_authselect_suite"
|
||||
authselectSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q authselect 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y authselect 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y authselect 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 authselect 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ authselectCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y authselect 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y authselect 2>/dev/null || true
|
||||
rlLogInfo "已卸载 authselect 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_autoconf_suite"
|
||||
autoconfSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q autoconf 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y autoconf 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y autoconf 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 autoconf 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ autoconfCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y autoconf 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y autoconf 2>/dev/null || true
|
||||
rlLogInfo "已卸载 autoconf 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_automake_suite"
|
||||
automakeSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q automake 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y automake 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y automake 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 automake 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ automakeCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y automake 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y automake 2>/dev/null || true
|
||||
rlLogInfo "已卸载 automake 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_bash_completion_suite"
|
||||
bashCompletionSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q bash-completion 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y bash-completion 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y bash-completion 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 bash-completion 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ bashCompletionCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y bash-completion 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y bash-completion 2>/dev/null || true
|
||||
rlLogInfo "已卸载 bash-completion 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_bash_suite"
|
||||
bashSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q bash 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y bash 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y bash 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 bash 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ bashCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y bash 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y bash 2>/dev/null || true
|
||||
rlLogInfo "已卸载 bash 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_bc_suite"
|
||||
bcSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q bc 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y bc 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y bc 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 bc 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ bcCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y bc 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y bc 2>/dev/null || true
|
||||
rlLogInfo "已卸载 bc 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_beakerlib_suite"
|
||||
beakerlibSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q beakerlib 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y beakerlib 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y beakerlib 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 beakerlib 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ beakerlibCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y beakerlib 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y beakerlib 2>/dev/null || true
|
||||
rlLogInfo "已卸载 beakerlib 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_binutils_suite"
|
||||
binutilsSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q binutils 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y binutils 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y binutils 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 binutils 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ binutilsCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y binutils 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y binutils 2>/dev/null || true
|
||||
rlLogInfo "已卸载 binutils 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_bison_suite"
|
||||
bisonSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q bison 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y bison 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y bison 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 bison 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ bisonCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y bison 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y bison 2>/dev/null || true
|
||||
rlLogInfo "已卸载 bison 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_boost_suite"
|
||||
boostSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q boost 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y boost 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y boost 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 boost 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ boostCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y boost 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y boost 2>/dev/null || true
|
||||
rlLogInfo "已卸载 boost 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_brotli_suite"
|
||||
brotliSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q brotli 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y brotli 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y brotli 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 brotli 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ brotliCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y brotli 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y brotli 2>/dev/null || true
|
||||
rlLogInfo "已卸载 brotli 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_bzip2_suite"
|
||||
bzip2Setup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q bzip2 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y bzip2 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y bzip2 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 bzip2 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ bzip2Cleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y bzip2 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y bzip2 2>/dev/null || true
|
||||
rlLogInfo "已卸载 bzip2 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_ca_certificates_mozilla_suite"
|
||||
caCertificatesMozillaSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q ca-certificates-mozilla 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y ca-certificates-mozilla 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y ca-certificates-mozilla 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 ca-certificates-mozilla 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ caCertificatesMozillaCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y ca-certificates-mozilla 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y ca-certificates-mozilla 2>/dev/null || true
|
||||
rlLogInfo "已卸载 ca-certificates-mozilla 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_ca_certificates_suite"
|
||||
caCertificatesSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q ca-certificates 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y ca-certificates 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y ca-certificates 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 ca-certificates 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ caCertificatesCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y ca-certificates 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y ca-certificates 2>/dev/null || true
|
||||
rlLogInfo "已卸载 ca-certificates 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_chkconfig_suite"
|
||||
chkconfigSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q chkconfig 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y chkconfig 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y chkconfig 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 chkconfig 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ chkconfigCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y chkconfig 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y chkconfig 2>/dev/null || true
|
||||
rlLogInfo "已卸载 chkconfig 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_chrpath_suite"
|
||||
chrpathSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q chrpath 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y chrpath 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y chrpath 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 chrpath 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ chrpathCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y chrpath 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y chrpath 2>/dev/null || true
|
||||
rlLogInfo "已卸载 chrpath 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_clang_suite"
|
||||
clangSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q clang 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y clang 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y clang 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 clang 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ clangCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y clang 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y clang 2>/dev/null || true
|
||||
rlLogInfo "已卸载 clang 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_cloud_utils_growpart_suite"
|
||||
cloudUtilsGrowpartSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q cloud-utils-growpart 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y cloud-utils-growpart 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y cloud-utils-growpart 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 cloud-utils-growpart 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ cloudUtilsGrowpartCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y cloud-utils-growpart 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y cloud-utils-growpart 2>/dev/null || true
|
||||
rlLogInfo "已卸载 cloud-utils-growpart 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
@@ -10,7 +10,7 @@ PKG_FLAG="/tmp/.beakerlib_cmake_suite"
|
||||
cmakeSetup() {
|
||||
if [ ! -f "$PKG_FLAG" ]; then
|
||||
if ! rpm -q cmake 2>/dev/null; then
|
||||
echo openruyi | sudo -S dnf install -y cmake 2>/dev/null
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf install -y cmake 2>/dev/null
|
||||
echo "installed=1" > "$PKG_FLAG"
|
||||
rlLogInfo "已安装 cmake 软件包(首次)"
|
||||
else
|
||||
@@ -37,7 +37,7 @@ cmakeCleanup() {
|
||||
ref=$((ref - 1))
|
||||
if [ "$ref" -le 0 ]; then
|
||||
if grep -q "^installed=1" "$PKG_FLAG"; then
|
||||
echo openruyi | sudo -S dnf remove -y cmake 2>/dev/null || true
|
||||
echo "${TEST_SERVER_1_PASSWORD:-openruyi}" | sudo -S dnf remove -y cmake 2>/dev/null || true
|
||||
rlLogInfo "已卸载 cmake 软件包(最后一个测试)"
|
||||
fi
|
||||
rm -f "$PKG_FLAG"
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - abseil-cpp-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- abseil-cpp
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_abseil-cpp-devel_cmake_verify
|
||||
require:
|
||||
- abseil-cpp-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: abseil-cpp-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="abseil-cpp-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(absl) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(absl REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(absl) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(absl CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package absl CONFIG)"; then
|
||||
rlPass "find_package(absl CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(absl CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - angelscript-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- angelscript
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_angelscript-devel_cmake_verify
|
||||
require:
|
||||
- angelscript-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: angelscript-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="angelscript-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Angelscript) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Angelscript REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Angelscript) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Angelscript CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Angelscript CONFIG)"; then
|
||||
rlPass "find_package(Angelscript CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Angelscript CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - aom-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- aom
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_aom-devel_cmake_verify
|
||||
require:
|
||||
- aom-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: aom-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="aom-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(AOM) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(AOM REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(AOM) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(AOM CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package AOM CONFIG)"; then
|
||||
rlPass "find_package(AOM CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(AOM CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - appstream-qt-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- appstream-qt
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_appstream-qt-devel_cmake_verify
|
||||
require:
|
||||
- appstream-qt-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: appstream-qt-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="appstream-qt-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(AppStreamQt) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(AppStreamQt REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(AppStreamQt) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(AppStreamQt CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package AppStreamQt CONFIG)"; then
|
||||
rlPass "find_package(AppStreamQt CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(AppStreamQt CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - arrow-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- arrow
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_arrow-devel_cmake_verify
|
||||
require:
|
||||
- arrow-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
#!/bin/bash
|
||||
# Functional test: arrow-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="arrow-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Arrow) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Arrow REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Arrow) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Arrow CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Arrow CONFIG)"; then
|
||||
rlPass "find_package(Arrow CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Arrow CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(ArrowAcero) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(ArrowAcero REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(ArrowAcero) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(ArrowAcero CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_1"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
|
||||
"cmake configuration (find_package ArrowAcero CONFIG)"; then
|
||||
rlPass "find_package(ArrowAcero CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(ArrowAcero CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(ArrowCompute) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(ArrowCompute REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(ArrowCompute) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(ArrowCompute CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_2"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_2" 0 \
|
||||
"cmake configuration (find_package ArrowCompute CONFIG)"; then
|
||||
rlPass "find_package(ArrowCompute CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(ArrowCompute CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(ArrowDataset) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(ArrowDataset REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(ArrowDataset) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(ArrowDataset CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_3"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_3" 0 \
|
||||
"cmake configuration (find_package ArrowDataset CONFIG)"; then
|
||||
rlPass "find_package(ArrowDataset CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(ArrowDataset CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(Parquet) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Parquet REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Parquet) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Parquet CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_4"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_4" 0 \
|
||||
"cmake configuration (find_package Parquet CONFIG)"; then
|
||||
rlPass "find_package(Parquet CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Parquet CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
# --- find_package(arrow) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(arrow REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(arrow) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(arrow CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_5"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_5" 0 \
|
||||
"cmake configuration (find_package arrow CONFIG)"; then
|
||||
rlPass "find_package(arrow CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(arrow CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - asmjit-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- asmjit
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_asmjit-devel_cmake_verify
|
||||
require:
|
||||
- asmjit-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: asmjit-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="asmjit-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(asmjit) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(asmjit REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(asmjit) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(asmjit CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package asmjit CONFIG)"; then
|
||||
rlPass "find_package(asmjit CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(asmjit CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - baloo-widgets-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- baloo-widgets
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_baloo-widgets-devel_cmake_verify
|
||||
require:
|
||||
- baloo-widgets-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: baloo-widgets-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="baloo-widgets-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(KF6BalooWidgets) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(KF6BalooWidgets REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(KF6BalooWidgets) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(KF6BalooWidgets CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package KF6BalooWidgets CONFIG)"; then
|
||||
rlPass "find_package(KF6BalooWidgets CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(KF6BalooWidgets CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - bash-completion-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- bash-completion
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_bash-completion-devel_cmake_verify
|
||||
require:
|
||||
- bash-completion-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: bash-completion-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="bash-completion-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(bash-completion) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(bash-completion REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(bash-completion) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(bash-completion CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package bash-completion CONFIG)"; then
|
||||
rlPass "find_package(bash-completion CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(bash-completion CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - blake3-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- blake3
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_blake3-devel_cmake_verify
|
||||
require:
|
||||
- blake3-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: blake3-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="blake3-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(blake3) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(blake3 REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(blake3) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(blake3 CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package blake3 CONFIG)"; then
|
||||
rlPass "find_package(blake3 CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(blake3 CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - boost-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- boost
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_boost-devel_cmake_verify
|
||||
require:
|
||||
- boost-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: boost-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="boost-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Boost) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Boost REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Boost) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Boost CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Boost CONFIG)"; then
|
||||
rlPass "find_package(Boost CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Boost CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - breeze-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- breeze
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_breeze-devel_cmake_verify
|
||||
require:
|
||||
- breeze-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: breeze-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="breeze-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Breeze) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Breeze REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Breeze) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Breeze CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Breeze CONFIG)"; then
|
||||
rlPass "find_package(Breeze CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Breeze CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - c-ares-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- c-ares
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_c-ares-devel_cmake_verify
|
||||
require:
|
||||
- c-ares-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: c-ares-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="c-ares-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(c-ares) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(c-ares REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(c-ares) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(c-ares CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package c-ares CONFIG)"; then
|
||||
rlPass "find_package(c-ares CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(c-ares CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
summary: Functional test - calamares-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- calamares
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_calamares-devel_cmake_verify
|
||||
require:
|
||||
- calamares-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
- qt6-linguist
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: calamares-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="calamares-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Calamares) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Calamares REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Calamares) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Calamares CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Calamares CONFIG)"; then
|
||||
rlPass "find_package(Calamares CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Calamares CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - capstone-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- capstone
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_capstone-devel_cmake_verify
|
||||
require:
|
||||
- capstone-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: capstone-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="capstone-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(capstone) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(capstone REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(capstone) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(capstone CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package capstone CONFIG)"; then
|
||||
rlPass "find_package(capstone CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(capstone CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - Catch2-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- Catch2
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_catch2-devel_cmake_verify
|
||||
require:
|
||||
- Catch2-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: Catch2-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="Catch2-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Catch2) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Catch2 REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Catch2) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Catch2 CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Catch2 CONFIG)"; then
|
||||
rlPass "find_package(Catch2 CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Catch2 CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - cereal-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- cereal
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_cereal-devel_cmake_verify
|
||||
require:
|
||||
- cereal-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: cereal-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="cereal-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(cereal) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(cereal REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(cereal) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(cereal CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package cereal CONFIG)"; then
|
||||
rlPass "find_package(cereal CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(cereal CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - clang-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- clang
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_clang-devel_cmake_verify
|
||||
require:
|
||||
- clang-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: clang-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="clang-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Clang) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Clang REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Clang) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Clang CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Clang CONFIG)"; then
|
||||
rlPass "find_package(Clang CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Clang CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - clang22-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- clang22
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_clang22-devel_cmake_verify
|
||||
require:
|
||||
- clang22-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: clang22-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="clang22-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(Clang) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(Clang REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(Clang) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(Clang CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package Clang CONFIG)"; then
|
||||
rlPass "find_package(Clang CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(Clang CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - cli11-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- cli11
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_cli11-devel_cmake_verify
|
||||
require:
|
||||
- cli11-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: cli11-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="cli11-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(CLI11) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(CLI11 REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(CLI11) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(CLI11 CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package CLI11 CONFIG)"; then
|
||||
rlPass "find_package(CLI11 CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(CLI11 CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - cmake-rpm-macros cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- note
|
||||
- cmake-rpm-macros
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_cmake-rpm-macros_cmake_verify
|
||||
require:
|
||||
- cmake-rpm-macros
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
# Functional test: cmake-rpm-macros - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# Only Other type .cmake (build helper/documentation), no find_package validation needed
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="cmake-rpm-macros"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
rlLogInfo "Type: Other, 2 .cmake file(s)"
|
||||
rlLogInfo "Only Other/Module type .cmake (build helper/documentation), no find_package validation needed"
|
||||
rlPass "Confirmed as Other type, skipping validation"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - cmocka-cmake cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- cmocka-cmake
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_cmocka-cmake_cmake_verify
|
||||
require:
|
||||
- cmocka-cmake
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: cmocka-cmake - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="cmocka-cmake"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(cmocka) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(cmocka REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(cmocka) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(cmocka CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package cmocka CONFIG)"; then
|
||||
rlPass "find_package(cmocka CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(cmocka CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - concurrentqueue-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- concurrentqueue
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_concurrentqueue-devel_cmake_verify
|
||||
require:
|
||||
- concurrentqueue-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: concurrentqueue-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="concurrentqueue-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(concurrentqueue) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(concurrentqueue REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(concurrentqueue) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(concurrentqueue CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package concurrentqueue CONFIG)"; then
|
||||
rlPass "find_package(concurrentqueue CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(concurrentqueue CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - cpp-httplib-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- cpp-httplib
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_cpp-httplib-devel_cmake_verify
|
||||
require:
|
||||
- cpp-httplib-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: cpp-httplib-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="cpp-httplib-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(httplib) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(httplib REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(httplib) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(httplib CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package httplib CONFIG)"; then
|
||||
rlPass "find_package(httplib CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(httplib CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - cpuinfo-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- cpuinfo
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_cpuinfo-devel_cmake_verify
|
||||
require:
|
||||
- cpuinfo-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: cpuinfo-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="cpuinfo-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(cpuinfo) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(cpuinfo REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(cpuinfo) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(cpuinfo CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package cpuinfo CONFIG)"; then
|
||||
rlPass "find_package(cpuinfo CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(cpuinfo CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - date-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- date
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_date-devel_cmake_verify
|
||||
require:
|
||||
- date-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: date-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="date-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(date) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(date REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(date) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(date CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package date CONFIG)"; then
|
||||
rlPass "find_package(date CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(date CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - dbus-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- dbus
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_dbus-devel_cmake_verify
|
||||
require:
|
||||
- dbus-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: dbus-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="dbus-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(DBus1) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(DBus1 REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(DBus1) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(DBus1 CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package DBus1 CONFIG)"; then
|
||||
rlPass "find_package(DBus1 CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(DBus1 CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - ddcutil-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- ddcutil
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_ddcutil-devel_cmake_verify
|
||||
require:
|
||||
- ddcutil-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
# Functional test: ddcutil-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(MODULE) -> load Find*.cmake modules
|
||||
# Module syntax errors or internal reference issues will cause cmake configuration to fail
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="ddcutil-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
TmpDir2=$(mktemp -d)
|
||||
rlRun "cd $TmpDir2" 0 "Enter temporary test directory"
|
||||
|
||||
# --- find_package(DDCUtil MODULE) ---
|
||||
cat > "$TmpDir2/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_module_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C)
|
||||
list(APPEND CMAKE_MODULE_PATH "/usr/lib64/cmake/ddcutil")
|
||||
find_package(DDCUtil MODULE QUIET)
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(DDCUtil MODULE) ..."
|
||||
rm -rf "$TmpDir2/build_0"
|
||||
if rlRun "cmake -S $TmpDir2 -B $TmpDir2/build_0" 0 \
|
||||
"cmake configuration (find_package DDCUtil MODULE)"; then
|
||||
rlPass "find_package(DDCUtil MODULE) verification passed"
|
||||
else
|
||||
rlLogWarning "find_package(DDCUtil MODULE) verification failed(the library being searched may not be installed)"
|
||||
fi
|
||||
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
rm -rf "$TmpDir2"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - dlpack cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- dlpack
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_dlpack_cmake_verify
|
||||
require:
|
||||
- dlpack
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: dlpack - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="dlpack"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(dlpack) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(dlpack REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(dlpack) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(dlpack CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package dlpack CONFIG)"; then
|
||||
rlPass "find_package(dlpack CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(dlpack CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - doctest cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- doctest
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_doctest_cmake_verify
|
||||
require:
|
||||
- doctest
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: doctest - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="doctest"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(doctest) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(doctest REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(doctest) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(doctest CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package doctest CONFIG)"; then
|
||||
rlPass "find_package(doctest CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(doctest CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - dolphin-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- dolphin
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_dolphin-devel_cmake_verify
|
||||
require:
|
||||
- dolphin-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: dolphin-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="dolphin-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(DolphinVcs) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(DolphinVcs REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(DolphinVcs) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(DolphinVcs CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package DolphinVcs CONFIG)"; then
|
||||
rlPass "find_package(DolphinVcs CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(DolphinVcs CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - double-conversion-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- double-conversion
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_double-conversion-devel_cmake_verify
|
||||
require:
|
||||
- double-conversion-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: double-conversion-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="double-conversion-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(double-conversion) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(double-conversion REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(double-conversion) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(double-conversion CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package double-conversion CONFIG)"; then
|
||||
rlPass "find_package(double-conversion CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(double-conversion CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - draco-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- draco
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_draco-devel_cmake_verify
|
||||
require:
|
||||
- draco-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: draco-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="draco-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(draco) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(draco REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(draco) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(draco CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package draco CONFIG)"; then
|
||||
rlPass "find_package(draco CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(draco CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
@@ -0,0 +1,15 @@
|
||||
summary: Functional test - dwarfs-devel cmake verify
|
||||
test: ./test.sh
|
||||
tag:
|
||||
- functional
|
||||
- cmake
|
||||
- dwarfs
|
||||
duration: 10m
|
||||
tier: 2
|
||||
path: /tests/functional/pkgs/cmake_batch/generated/test_dwarfs-devel_cmake_verify
|
||||
require:
|
||||
- dwarfs-devel
|
||||
- cmake
|
||||
- gcc
|
||||
- beakerlib
|
||||
- gcc-c++
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
# Functional test: dwarfs-devel - cmake export integrity verification
|
||||
# Verify that all files referenced by .cmake files provided by the package actually exist
|
||||
#
|
||||
# Verification principle:
|
||||
# find_package(CONFIG) -> *Config.cmake -> *Targets.cmake
|
||||
# Targets.cmake referencing non-existent .a/.so will cause cmake configuration to fail directly
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
PKG="dwarfs-devel"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup "Environment Setup"
|
||||
TmpDir=$(mktemp -d)
|
||||
rlRun "cd $TmpDir" 0 "Enter temporary test directory"
|
||||
|
||||
CMAKE_COUNT=$(rpm -ql "$PKG" 2>/dev/null | grep -c '\.cmake$' || echo 0)
|
||||
rlLogInfo "$PKG provides $CMAKE_COUNT .cmake file(s)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "find_package(CONFIG) - Verify cmake export integrity"
|
||||
if [ "$CMAKE_COUNT" -eq 0 ]; then
|
||||
rlLogWarning "$PKG provides no .cmake files, skipping cmake verification"
|
||||
else
|
||||
# --- find_package(dwarfs) ---
|
||||
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
|
||||
cmake_minimum_required(VERSION 3.13.4)
|
||||
project(cmake_verify
|
||||
VERSION "0.1"
|
||||
LANGUAGES C CXX)
|
||||
|
||||
find_package(dwarfs REQUIRED CONFIG)
|
||||
|
||||
message(STATUS "find_package(dwarfs) succeeded")
|
||||
EOF
|
||||
|
||||
rlLogInfo "Verifying find_package(dwarfs CONFIG) ..."
|
||||
rm -rf "$TmpDir/build_0"
|
||||
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
|
||||
"cmake configuration (find_package dwarfs CONFIG)"; then
|
||||
rlPass "find_package(dwarfs CONFIG) verification passed"
|
||||
else
|
||||
rlFail "find_package(dwarfs CONFIG) verification failed"
|
||||
fi
|
||||
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup "Clean up test environment"
|
||||
rlRun "cd /" 0 "Leave test directory"
|
||||
if [ -n "$TmpDir" ] && [ -d "$TmpDir" ]; then
|
||||
rlRun "rm -rf $TmpDir" 0 "Clean up temporary test directory"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user