Compare commits

..

33 Commits

Author SHA1 Message Date
redrose2100 236668bb45 Merge pull request 'chore: remove k8s feature tests and legacy requirements docs' (#119) from 2026_08_12_1-remove-k8s-and-requirements into main
Reviewed-on: woqidaideshi/openruyi-autotest#119
2026-08-12 06:40:47 +00:00
honghua f07d0e8273 chore: remove k8s feature tests and legacy requirements docs
- Delete tests/feature/k8s/ (37 files across 10 subdirectories)
- Delete docs/requirements/ (5 files including templates and history)
- Remove Chapter 10 (K8s RISC-V tutorial) from docs/user_guide_zh.md
2026-08-12 14:28:11 +08:00
woqidaideshi 8230c053e4 Merge pull request 'fix: tests/functional/cmake: move llvm22-devel test from pkgs/llvm22' (#118) from cmake_all_new into main
Reviewed-on: woqidaideshi/openruyi-autotest#118
2026-08-12 02:45:04 +00:00
woqidaideshi 1ea0908577 fix: tests/functional/cmake: move llvm22-devel test from pkgs/llvm22 2026-08-12 10:01:22 +08:00
woqidaideshi 78d407b3a1 Merge pull request 'feat: add cmake export integrity verification' (#117) from cmake_all_new into main
Reviewed-on: woqidaideshi/openruyi-autotest#117
2026-08-12 01:52:32 +00:00
woqidaideshi 7447fba291 fix: test/functional/cmake: add search path to QmlPlugins for qt6-qtremoteobjects-devel and qt6-qttools-devel depend qt6-doctools 2026-08-12 09:47:34 +08:00
woqidaideshi 55cfb7a3de fix: test/functional/cmake: add executable permission 2026-08-10 23:40:34 -04:00
woqidaideshi f7ab0a24d4 fix: remove three test cases for missing -static 2026-08-11 10:38:46 +08:00
woqidaideshi 3fdc015d3a feat: add cmake export integrity verification
Signed-off-by: Yafen Fang <yafen@iscas.ac.cn>
2026-08-11 10:24:38 +08:00
redrose2100 a9d06c91b7 Merge pull request 'feat(k8s): add 25 Sonobuoy-equivalent test cases, env fixes & workflow docs' (#115) from dev into main
Reviewed-on: woqidaideshi/openruyi-autotest#115
2026-08-10 01:50:48 +00:00
honghua a8e32815cd docs: remove temporary file reference from self-test-report 2026-08-10 09:01:50 +08:00
honghua 574334d2a7 chore: untrack .trellis/ spec files, keep local only 2026-07-24 17:54:05 +08:00
honghua b168a2aeb7 docs: expand dev workflow from 6 to 10 phases with test-fix loop, env audit, PR sync, knowledge capture 2026-07-24 17:53:00 +08:00
redrose2100 b6e89f140c Merge pull request 'feat(k8s): add 25 Sonobuoy-equivalent test cases for RISC-V port' (#112) from dev into main
Reviewed-on: woqidaideshi/openruyi-autotest#112
2026-07-24 09:46:25 +00:00
honghua 05655f11e5 fix(k8s): SSH transport validation & reconnect, QEMU pflash fix
- SSHClient.connect(): verify transport is_active() after connect, cleanup on failure
- SSHClient.exec(): auto-reconnect on transport drop, guard against None self.__ssh
- QEMU: remove pflash0/pflash1 from -machine virt when using -drive if=pflash
  (mixing blockdev node-names with -drive if=pflash causes firmware not to load)
2026-07-24 17:40:25 +08:00
honghua 6a9813f22c docs(k8s): update self-test report with final 25/25 full rerun & env audit 2026-07-24 17:39:45 +08:00
honghua cdcb31b850 fix(k8s): fix CoreDNS loop via external DNS + 4 script fixes for 25/25 pass
CoreDNS: change forward from /etc/resolv.conf to 114.114.114.114 223.5.5.5
Scripts: fix dns_resolve (exit code wait), resource_crud (labels+assert), pod_multi_container (labels), pvc_binding (WaitForFirstConsumer)
Docs: add self-test-report stage to development workflow
2026-07-24 14:01:42 +08:00
honghua ebc7b27da9 test(k8s): add 25 Sonobuoy-equivalent test cases for RISC-V port
Refactor 8 legacy scripts into 10 categorized subdirectories with 25
tmt+beakerlib tests covering:
- smoke (4): arch check, DNS, API reachability, DaemonSet
- api (2): resource CRUD, namespace lifecycle
- pod (2): basic lifecycle, multi-container with init
- workload (2): Deployment scale, ReplicaSet maintain
- network (4): ClusterIP, NodePort, DNS, cross-node
- storage (3): PVC binding, volume mount, data persistence
- scheduling (4): nodeSelector, affinity, taints, ResourceQuota
- auth (1): ServiceAccount token and API access
- config (2): Secret and ConfigMap (mount + env injection)
- kata (1): RuntimeClass + pod (rlSkip if unavailable)

Enhance lib.sh with 8 new helpers: k8sApplyYAML, k8sWaitForPodReady,
k8sGetPodName, k8sExecInPod, k8sDeleteResource, k8sImageExists,
k8sGetNodeCount, k8sKataRuntimeAvailable.

Each test uses isolated namespace and auto-cleanup.

Closes: requirement-1
2026-07-24 08:28:07 +08:00
redrose2100 bca2ec0fd5 Merge pull request 'feat: K8s test suite + password encryption + bug fixes' (#111) from dev into main
Reviewed-on: woqidaideshi/openruyi-autotest#111
2026-07-23 07:06:02 +00:00
honghua 037da90e37 feat(k8s): add Sonobuoy-equivalent smoke test case
Add test_k8s_sonobuoy_smoke.sh that replicates openruyi-riscv-sonobuoy-smoke.yaml:

- Verify all cluster nodes have arch=riscv64
- Deploy DaemonSet (busybox) for in-pod perspective verification
- Verify DNS resolves kubernetes.default.svc.cluster.local from each pod
- Verify API Server reachable via Service DNS + SA Token from each pod

Also update main.fmf: suite duration 30m->35m, register new test case.
2026-07-23 14:54:28 +08:00
honghua 395e5e1d6c fix: k8s deploy - kube-proxy nftables + Calico eth0/backend Auto for RISC-V
RISC-V QEMU 上 iptables-nft 内核模块兼容性问题导致 MASQUERADE 失败,修复如下:
- kube-proxy mode: iptables -> nftables(直接使用 nft 后端)
- Calico IP_AUTODETECTION_METHOD: interface=eth1 -> interface=eth0(TAP bridge)
- Calico FELIX_IPTABLESBACKEND: 显式 NFT -> Auto(自动适配)
2026-07-23 08:27:50 +08:00
honghua b97b85c363 fix(k8s): add disk constraint and unify extra-hardware-require format 2026-07-22 17:37:00 +08:00
honghua bb6be97a67 refactor(k8s): flatten single-test subdirectories into named test scripts
Each subdirectory contained only one test.sh, so flatten into k8s/
with naming convention test_k8s_{category}_{feature}.sh:
- test_k8s_quick_health_check.sh
- test_k8s_conformance_pod_lifecycle.sh
- test_k8s_network_cross_node_communication.sh
- test_k8s_storage_pvc_lifecycle.sh
- test_k8s_scheduling_pod_affinity.sh
- test_k8s_workload_config_primitives.sh
- test_k8s_kata_containers_runtime.sh

Update main.fmf to list all tests directly, and update user guide
with new paths and script names.
2026-07-22 17:18:53 +08:00
honghua c6f9eeb192 feat(k8s): add RISC-V K8s feature test suite with 6 test categories
- Add K8s shared library (lib.sh) with sudo-kubectl support for RISC-V nodes
- Add quick smoke test (cluster health, nodes, pods, CoreDNS)
- Add conformance test (pod lifecycle, deployment, scaling)
- Add network test (ClusterIP, NodePort, DNS resolution)
- Add storage test (PVC lifecycle, data persistence)
- Add scheduling test (anti-affinity, nodeSelector, ResourceQuota)
- Add workload test (ConfigMap, Secret, ServiceAccount)
- Add kata test (kata-clh pods, kernel isolation check)
- Update user guide with K8s feature test execution instructions
2026-07-22 17:11:00 +08:00
redrose2100 e694932048 Merge pull request 'feat(cloudpods): add RISC-V QEMU VM creation and K8s multi-node deployment tools' (#109) from dev into main
Reviewed-on: woqidaideshi/openruyi-autotest#109
2026-07-22 01:55:11 +00:00
honghua fdb5c998fc feat: encrypt cloudpods_password with XOR+Base64
- Add _derive_key and _decrypt_password utility functions to both files
- Replace plaintext cloudpods_password with encrypted value in Env class
- Decrypt at point of use in create_qemu_server / create_k8s_env
2026-07-22 09:03:58 +08:00
honghua 8e830bf859 fix: comment out metalink= in openEuler.repo to avoid dnf timeout
mirrors.openeuler.org (used by metalink) is unreachable from some
networks, causing dnf to wait ~60s per repo before falling back to
baseurl. Comment out metalink= lines after adding ISCAS mirror repo
so dnf uses baseurl directly, reducing install time from 850s+ to ~40s.
2026-07-21 16:30:03 +08:00
honghua a463fddf5a fix: use host_ssh.exec() instead of nonexistent exec_script() in create_server.py
create_server.py's SSHClient only has exec(), not exec_script()
(which exists only in create_k8s_env.py's SSHClient).
2026-07-21 15:39:43 +08:00
honghua 5f42a83bf7 fix: use non-destructive ISCAS mirror repo to avoid dnf failure when mirror unreachable
Previously, the deploy scripts replaced all yum repo URLs via sed,
which broke dnf entirely when mirrors.iscas.ac.cn was unreachable
from new servers (e.g. 10.20.237.215).

Now we add iscas-mirror.repo as a separate high-priority repo file
with skip_if_unavailable=1. If ISCAS is down, dnf automatically
falls back to the original repo.openeuler.org repos.

Affected files:
- tools/cloudpods/create_server.py
- tools/cloudpods/create_k8s_env.py
2026-07-21 15:19:46 +08:00
honghua 83b8802555 Merge branch 'main' of ssh://git.openruyi.cn:54865/woqidaideshi/openruyi-autotest into dev 2026-07-21 13:52:52 +08:00
honghua cf51fc7ff3 fix(k8s): resolve multi-node cluster deployment issues on RISC-V QEMU
Fix 4 root causes that prevented worker nodes from joining the cluster:

1. Controller-Manager RBAC: add cluster-admin ClusterRoleBinding for
   system:kube-controller-manager to enable PodCIDR allocation and
   DaemonSet revision management (K8s v1.35.5 default role too limited).

2. CNI plugin path: add --strip-components=2 to tar extraction since
   cni-plugins tarball contains cni/bin/ prefix, which caused plugins
   to land in /opt/cni/bin/cni/bin/ instead of /opt/cni/bin/.

3. Node networking: move static IP from eth1 (user-mode NAT) to eth0
   (TAP bridge) since QEMU adds tap netdev before user netdev. Add
   nmcli/ifcfg-based persistent network config to survive reboots.

4. Calico init container: work around RISC-V runc OCI runtime bug by
   manually generating /etc/cni/net.d/10-calico.conflist on all nodes,
   then restarting kubelet to pick up the new config.

Also patch Calico DaemonSet IP_AUTODETECTION_METHOD from eth1 to eth0.
2026-07-21 09:40:14 +08:00
honghua 8addc8e01a fix: align QEMU args with create_server.py proven config 2026-07-17 17:39:26 +08:00
honghua e128669e6c feat: add K8s RISC-V multi-node deployment tool with cloudpods
- Add create_k8s_env.py: end-to-end K8s cluster deployment on CloudPods+KVM+QEMU RISC-V
- Fix QEMU pflash firmware loading: use -drive if=pflash instead of -blockdev for proper firmware mapping on RISC-V virt machine
- Fix QEMU hostfwd: bind to all interfaces (0.0.0.0) instead of 127.0.0.1
- Change default SSH forward ports to 12055+
- Update .gitignore: add .vscode/
2026-07-17 15:29:00 +08:00
706 changed files with 37008 additions and 348 deletions
+3
View File
@@ -18,3 +18,6 @@ topology.env
# Python 缓存
__pycache__/
# VS Code 工作区配置(IDE 相关,不提交)
.vscode/
@@ -1,6 +1,5 @@
summary: Compatibility test - LTP POSIX - pthread/pthread_mutex_trylock
test: ./test.sh
framework: beakerlib
tag:
- compatibility
- posix
@@ -7,69 +7,6 @@
IFACE_DIR="$LTP_BUILD_DIR/conformance/interfaces"
# BEGIN OPENRUYI FIX: local beakerlib cleanup
#
# Beakerlib rlCleanupAppend generates a separate cleanup script.
# On this platform the generated environment attempts to restore
# Bash's readonly BASH_VERSINFO variable, causing cleanup failure
# and a subsequent segmentation fault.
#
# Keep cleanup commands in this process and execute them before
# rlJournalEnd instead.
declare -a __oru_cleanup_commands=()
rlCleanupAppend() {
if (( $# != 1 )); then
printf '%s\n' \
"rlCleanupAppend compatibility wrapper expects one argument" \
>&2
return 1
fi
__oru_cleanup_commands+=("$1")
}
rlCleanupPrepend() {
if (( $# != 1 )); then
printf '%s\n' \
"rlCleanupPrepend compatibility wrapper expects one argument" \
>&2
return 1
fi
__oru_cleanup_commands=(
"$1"
"${__oru_cleanup_commands[@]}"
)
}
__oru_cleanup_run() {
local cleanup_command
local cleanup_status=0
for cleanup_command in \
"${__oru_cleanup_commands[@]}"
do
eval "$cleanup_command" || cleanup_status=$?
done
__oru_cleanup_commands=()
return "$cleanup_status"
}
__oru_cleanup_on_exit() {
local saved_status=$?
trap - EXIT
__oru_cleanup_run || true
exit "$saved_status"
}
trap __oru_cleanup_on_exit EXIT
# END OPENRUYI FIX: local beakerlib cleanup
rlJournalStart
rlPhaseStartSetup "Environment setup"
ltpPosixSetup
@@ -84,11 +21,4 @@ rlJournalStart
rlPhaseEnd
rlJournalPrintText
# Run registered cleanup commands in the current shell.
# Clear the EXIT trap before Beakerlib closes the journal.
if ! __oru_cleanup_run; then
rlLogWarning \
"One or more local cleanup commands failed"
fi
trap - EXIT
rlJournalEnd
+13
View File
@@ -0,0 +1,13 @@
summary: Functional test - cmake export integrity verification
tag:
- functional
- cmake
- cmake_verify
duration: 10m
tier: 1
path: /tests/functional/cmake
require:
- cmake
- gcc
- gcc-c++
- beakerlib
@@ -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/cmake/test_abseil-cpp-devel_cmake_verify
require:
- abseil-cpp-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_angelscript-devel_cmake_verify
require:
- angelscript-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_aom-devel_cmake_verify
require:
- aom-devel
- cmake
- gcc
- beakerlib
- gcc-c++
+58
View File
@@ -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
@@ -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/cmake/test_appstream-qt-devel_cmake_verify
require:
- appstream-qt-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_arrow-devel_cmake_verify
require:
- arrow-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_asmjit-devel_cmake_verify
require:
- asmjit-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_baloo-widgets-devel_cmake_verify
require:
- baloo-widgets-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_bash-completion-devel_cmake_verify
require:
- bash-completion-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_blake3-devel_cmake_verify
require:
- blake3-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_boost-devel_cmake_verify
require:
- boost-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_breeze-devel_cmake_verify
require:
- breeze-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_c-ares-devel_cmake_verify
require:
- c-ares-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_calamares-devel_cmake_verify
require:
- calamares-devel
- cmake
- gcc
- beakerlib
- gcc-c++
- qt6-linguist
@@ -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/cmake/test_capstone-devel_cmake_verify
require:
- capstone-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_catch2-devel_cmake_verify
require:
- Catch2-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_cereal-devel_cmake_verify
require:
- cereal-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_clang-devel_cmake_verify
require:
- clang-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_clang22-devel_cmake_verify
require:
- clang22-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_cli11-devel_cmake_verify
require:
- cli11-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_cmake-rpm-macros_cmake_verify
require:
- cmake-rpm-macros
- cmake
- gcc
- beakerlib
@@ -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/cmake/test_cmocka-cmake_cmake_verify
require:
- cmocka-cmake
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_concurrentqueue-devel_cmake_verify
require:
- concurrentqueue-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_cpp-httplib-devel_cmake_verify
require:
- cpp-httplib-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_cpuinfo-devel_cmake_verify
require:
- cpuinfo-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_date-devel_cmake_verify
require:
- date-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_dbus-devel_cmake_verify
require:
- dbus-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_ddcutil-devel_cmake_verify
require:
- ddcutil-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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/cmake/test_dlpack_cmake_verify
require:
- dlpack
- cmake
- gcc
- beakerlib
- gcc-c++
+58
View File
@@ -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/cmake/test_doctest_cmake_verify
require:
- doctest
- cmake
- gcc
- beakerlib
- gcc-c++
+58
View File
@@ -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/cmake/test_dolphin-devel_cmake_verify
require:
- dolphin-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -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/cmake/test_double-conversion-devel_cmake_verify
require:
- double-conversion-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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,16 @@
summary: Functional test - draco-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- draco
duration: 10m
tier: 2
path: /tests/functional/cmake/test_draco-devel_cmake_verify
require:
- draco-devel
- draco-static
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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,18 @@
summary: Functional test - dwarfs-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- dwarfs
duration: 10m
tier: 2
path: /tests/functional/cmake/test_dwarfs-devel_cmake_verify
require:
- dwarfs-devel
- libarchive-devel
- openssl-devel
- xxhash-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -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
@@ -0,0 +1,15 @@
summary: Functional test - eigen3 cmake verify
test: ./test.sh
tag:
- functional
- cmake
- eigen3
duration: 10m
tier: 2
path: /tests/functional/cmake/test_eigen3_cmake_verify
require:
- eigen3
- cmake
- gcc
- beakerlib
- gcc-c++
+58
View File
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: eigen3 - 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="eigen3"
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(Eigen3) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Eigen3 REQUIRED CONFIG)
message(STATUS "find_package(Eigen3) succeeded")
EOF
rlLogInfo "Verifying find_package(Eigen3 CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Eigen3 CONFIG)"; then
rlPass "find_package(Eigen3 CONFIG) verification passed"
else
rlFail "find_package(Eigen3 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 - exiv2-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- exiv2
duration: 10m
tier: 2
path: /tests/functional/cmake/test_exiv2-devel_cmake_verify
require:
- exiv2-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: exiv2-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="exiv2-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(exiv2) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(exiv2 REQUIRED CONFIG)
message(STATUS "find_package(exiv2) succeeded")
EOF
rlLogInfo "Verifying find_package(exiv2 CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package exiv2 CONFIG)"; then
rlPass "find_package(exiv2 CONFIG) verification passed"
else
rlFail "find_package(exiv2 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 - expat-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- expat
duration: 10m
tier: 2
path: /tests/functional/cmake/test_expat-devel_cmake_verify
require:
- expat-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: expat-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="expat-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(expat) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(expat REQUIRED CONFIG)
message(STATUS "find_package(expat) succeeded")
EOF
rlLogInfo "Verifying find_package(expat CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package expat CONFIG)"; then
rlPass "find_package(expat CONFIG) verification passed"
else
rlFail "find_package(expat 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 - fast_float cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fast_float
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fast_float_cmake_verify
require:
- fast_float
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: fast_float - 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="fast_float"
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(FastFloat) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(FastFloat REQUIRED CONFIG)
message(STATUS "find_package(FastFloat) succeeded")
EOF
rlLogInfo "Verifying find_package(FastFloat CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package FastFloat CONFIG)"; then
rlPass "find_package(FastFloat CONFIG) verification passed"
else
rlFail "find_package(FastFloat 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 - fcitx5-chinese-addons-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fcitx5-chinese-addons
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fcitx5-chinese-addons-devel_cmake_verify
require:
- fcitx5-chinese-addons-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,100 @@
#!/bin/bash
# Functional test: fcitx5-chinese-addons-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="fcitx5-chinese-addons-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(Fcitx5ModuleCloudPinyin) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleCloudPinyin REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleCloudPinyin) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleCloudPinyin CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Fcitx5ModuleCloudPinyin CONFIG)"; then
rlPass "find_package(Fcitx5ModuleCloudPinyin CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleCloudPinyin CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModulePinyinHelper) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModulePinyinHelper REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModulePinyinHelper) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModulePinyinHelper CONFIG) ..."
rm -rf "$TmpDir/build_1"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
"cmake configuration (find_package Fcitx5ModulePinyinHelper CONFIG)"; then
rlPass "find_package(Fcitx5ModulePinyinHelper CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModulePinyinHelper CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModulePunctuation) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModulePunctuation REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModulePunctuation) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModulePunctuation CONFIG) ..."
rm -rf "$TmpDir/build_2"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_2" 0 \
"cmake configuration (find_package Fcitx5ModulePunctuation CONFIG)"; then
rlPass "find_package(Fcitx5ModulePunctuation CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModulePunctuation 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 - fcitx5-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fcitx5
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fcitx5-devel_cmake_verify
require:
- fcitx5-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,376 @@
#!/bin/bash
# Functional test: fcitx5-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="fcitx5-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(Fcitx5Config) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5Config REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5Config) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5Config CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Fcitx5Config CONFIG)"; then
rlPass "find_package(Fcitx5Config CONFIG) verification passed"
else
rlFail "find_package(Fcitx5Config CONFIG) verification failed"
fi
# --- find_package(Fcitx5Core) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5Core REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5Core) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5Core CONFIG) ..."
rm -rf "$TmpDir/build_1"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
"cmake configuration (find_package Fcitx5Core CONFIG)"; then
rlPass "find_package(Fcitx5Core CONFIG) verification passed"
else
rlFail "find_package(Fcitx5Core CONFIG) verification failed"
fi
# --- find_package(Fcitx5Module) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5Module REQUIRED CONFIG
COMPONENTS
Clipboard
)
message(STATUS "find_package(Fcitx5Module) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5Module CONFIG) ..."
rm -rf "$TmpDir/build_2"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_2" 0 \
"cmake configuration (find_package Fcitx5Module CONFIG)"; then
rlPass "find_package(Fcitx5Module CONFIG) verification passed"
else
rlFail "find_package(Fcitx5Module CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleClipboard) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleClipboard REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleClipboard) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleClipboard CONFIG) ..."
rm -rf "$TmpDir/build_3"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_3" 0 \
"cmake configuration (find_package Fcitx5ModuleClipboard CONFIG)"; then
rlPass "find_package(Fcitx5ModuleClipboard CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleClipboard CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleDBus) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleDBus REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleDBus) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleDBus CONFIG) ..."
rm -rf "$TmpDir/build_4"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_4" 0 \
"cmake configuration (find_package Fcitx5ModuleDBus CONFIG)"; then
rlPass "find_package(Fcitx5ModuleDBus CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleDBus CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleEmoji) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleEmoji REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleEmoji) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleEmoji CONFIG) ..."
rm -rf "$TmpDir/build_5"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_5" 0 \
"cmake configuration (find_package Fcitx5ModuleEmoji CONFIG)"; then
rlPass "find_package(Fcitx5ModuleEmoji CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleEmoji CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleNotificationItem) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleNotificationItem REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleNotificationItem) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleNotificationItem CONFIG) ..."
rm -rf "$TmpDir/build_6"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_6" 0 \
"cmake configuration (find_package Fcitx5ModuleNotificationItem CONFIG)"; then
rlPass "find_package(Fcitx5ModuleNotificationItem CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleNotificationItem CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleNotifications) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleNotifications REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleNotifications) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleNotifications CONFIG) ..."
rm -rf "$TmpDir/build_7"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_7" 0 \
"cmake configuration (find_package Fcitx5ModuleNotifications CONFIG)"; then
rlPass "find_package(Fcitx5ModuleNotifications CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleNotifications CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleQuickPhrase) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleQuickPhrase REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleQuickPhrase) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleQuickPhrase CONFIG) ..."
rm -rf "$TmpDir/build_8"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_8" 0 \
"cmake configuration (find_package Fcitx5ModuleQuickPhrase CONFIG)"; then
rlPass "find_package(Fcitx5ModuleQuickPhrase CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleQuickPhrase CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleSpell) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleSpell REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleSpell) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleSpell CONFIG) ..."
rm -rf "$TmpDir/build_9"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_9" 0 \
"cmake configuration (find_package Fcitx5ModuleSpell CONFIG)"; then
rlPass "find_package(Fcitx5ModuleSpell CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleSpell CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleTestFrontend) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleTestFrontend REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleTestFrontend) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleTestFrontend CONFIG) ..."
rm -rf "$TmpDir/build_10"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_10" 0 \
"cmake configuration (find_package Fcitx5ModuleTestFrontend CONFIG)"; then
rlPass "find_package(Fcitx5ModuleTestFrontend CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleTestFrontend CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleTestIM) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleTestIM REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleTestIM) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleTestIM CONFIG) ..."
rm -rf "$TmpDir/build_11"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_11" 0 \
"cmake configuration (find_package Fcitx5ModuleTestIM CONFIG)"; then
rlPass "find_package(Fcitx5ModuleTestIM CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleTestIM CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleUnicode) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleUnicode REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleUnicode) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleUnicode CONFIG) ..."
rm -rf "$TmpDir/build_12"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_12" 0 \
"cmake configuration (find_package Fcitx5ModuleUnicode CONFIG)"; then
rlPass "find_package(Fcitx5ModuleUnicode CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleUnicode CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleWayland) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleWayland REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleWayland) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleWayland CONFIG) ..."
rm -rf "$TmpDir/build_13"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_13" 0 \
"cmake configuration (find_package Fcitx5ModuleWayland CONFIG)"; then
rlPass "find_package(Fcitx5ModuleWayland CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleWayland CONFIG) verification failed"
fi
# --- find_package(Fcitx5ModuleXCB) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleXCB REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleXCB) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleXCB CONFIG) ..."
rm -rf "$TmpDir/build_14"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_14" 0 \
"cmake configuration (find_package Fcitx5ModuleXCB CONFIG)"; then
rlPass "find_package(Fcitx5ModuleXCB CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleXCB CONFIG) verification failed"
fi
# --- find_package(Fcitx5Utils) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5Utils REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5Utils) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5Utils CONFIG) ..."
rm -rf "$TmpDir/build_15"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_15" 0 \
"cmake configuration (find_package Fcitx5Utils CONFIG)"; then
rlPass "find_package(Fcitx5Utils CONFIG) verification passed"
else
rlFail "find_package(Fcitx5Utils 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 - fcitx5-gtk-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fcitx5-gtk
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fcitx5-gtk-devel_cmake_verify
require:
- fcitx5-gtk-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: fcitx5-gtk-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="fcitx5-gtk-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(Fcitx5GClient) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5GClient REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5GClient) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5GClient CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Fcitx5GClient CONFIG)"; then
rlPass "find_package(Fcitx5GClient CONFIG) verification passed"
else
rlFail "find_package(Fcitx5GClient 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 - fcitx5-lua-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fcitx5-lua
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fcitx5-lua-devel_cmake_verify
require:
- fcitx5-lua-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: fcitx5-lua-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="fcitx5-lua-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(Fcitx5ModuleLuaAddonLoader) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5ModuleLuaAddonLoader REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5ModuleLuaAddonLoader) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5ModuleLuaAddonLoader CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Fcitx5ModuleLuaAddonLoader CONFIG)"; then
rlPass "find_package(Fcitx5ModuleLuaAddonLoader CONFIG) verification passed"
else
rlFail "find_package(Fcitx5ModuleLuaAddonLoader 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 - fcitx5-qt-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fcitx5-qt
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fcitx5-qt-devel_cmake_verify
require:
- fcitx5-qt-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,79 @@
#!/bin/bash
# Functional test: fcitx5-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="fcitx5-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(Fcitx5Qt6DBusAddons) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5Qt6DBusAddons REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5Qt6DBusAddons) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5Qt6DBusAddons CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Fcitx5Qt6DBusAddons CONFIG)"; then
rlPass "find_package(Fcitx5Qt6DBusAddons CONFIG) verification passed"
else
rlFail "find_package(Fcitx5Qt6DBusAddons CONFIG) verification failed"
fi
# --- find_package(Fcitx5Qt6WidgetsAddons) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Fcitx5Qt6WidgetsAddons REQUIRED CONFIG)
message(STATUS "find_package(Fcitx5Qt6WidgetsAddons) succeeded")
EOF
rlLogInfo "Verifying find_package(Fcitx5Qt6WidgetsAddons CONFIG) ..."
rm -rf "$TmpDir/build_1"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
"cmake configuration (find_package Fcitx5Qt6WidgetsAddons CONFIG)"; then
rlPass "find_package(Fcitx5Qt6WidgetsAddons CONFIG) verification passed"
else
rlFail "find_package(Fcitx5Qt6WidgetsAddons 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 - fftw-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fftw
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fftw-devel_cmake_verify
require:
- fftw-devel
- cmake
- gcc
- beakerlib
- gcc-c++
+104
View File
@@ -0,0 +1,104 @@
#!/bin/bash
# Functional test: fftw-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="fftw-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(FFTW3) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(FFTW3 REQUIRED CONFIG)
message(STATUS "find_package(FFTW3) succeeded")
EOF
rlLogInfo "Verifying find_package(FFTW3 CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package FFTW3 CONFIG)"; then
rlPass "find_package(FFTW3 CONFIG) verification passed"
else
rlFail "find_package(FFTW3 CONFIG) verification failed"
fi
# --- find_package(FFTW3f) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(FFTW3f REQUIRED CONFIG
PATHS /usr/lib64/cmake/fftw3
NO_DEFAULT_PATH)
message(STATUS "find_package(FFTW3f) succeeded")
EOF
rlLogInfo "Verifying find_package(FFTW3f CONFIG) ..."
rm -rf "$TmpDir/build_1"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
"cmake configuration (find_package FFTW3f CONFIG)"; then
rlPass "find_package(FFTW3f CONFIG) verification passed"
else
rlFail "find_package(FFTW3f CONFIG) verification failed"
fi
# --- find_package(FFTW3l) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(FFTW3l REQUIRED CONFIG
PATHS /usr/lib64/cmake/fftw3
NO_DEFAULT_PATH)
message(STATUS "find_package(FFTW3l) succeeded")
EOF
rlLogInfo "Verifying find_package(FFTW3l CONFIG) ..."
rm -rf "$TmpDir/build_2"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_2" 0 \
"cmake configuration (find_package FFTW3l CONFIG)"; then
rlPass "find_package(FFTW3l CONFIG) verification passed"
else
rlFail "find_package(FFTW3l 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 - flac-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- flac
duration: 10m
tier: 2
path: /tests/functional/cmake/test_flac-devel_cmake_verify
require:
- flac-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,79 @@
#!/bin/bash
# Functional test: flac-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="flac-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(FLAC) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(FLAC REQUIRED CONFIG)
message(STATUS "find_package(FLAC) succeeded")
EOF
rlLogInfo "Verifying find_package(FLAC CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package FLAC CONFIG)"; then
rlPass "find_package(FLAC CONFIG) verification passed"
else
rlFail "find_package(FLAC CONFIG) verification failed"
fi
# --- find_package(flac) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(flac REQUIRED CONFIG)
message(STATUS "find_package(flac) succeeded")
EOF
rlLogInfo "Verifying find_package(flac CONFIG) ..."
rm -rf "$TmpDir/build_1"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_1" 0 \
"cmake configuration (find_package flac CONFIG)"; then
rlPass "find_package(flac CONFIG) verification passed"
else
rlFail "find_package(flac 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,16 @@
summary: Functional test - flang22 cmake verify
test: ./test.sh
tag:
- functional
- cmake
- flang22
duration: 10m
tier: 2
path: /tests/functional/cmake/test_flang22_cmake_verify
require:
- flang22
- flang22-static
- cmake
- gcc
- beakerlib
- gcc-c++
+60
View File
@@ -0,0 +1,60 @@
#!/bin/bash
# Functional test: flang22 - 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="flang22"
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(Flang) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(Flang REQUIRED CONFIG
PATHS /usr/lib64/llvm22/lib/cmake/flang
NO_DEFAULT_PATH)
message(STATUS "find_package(Flang) succeeded")
EOF
rlLogInfo "Verifying find_package(Flang CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package Flang CONFIG)"; then
rlPass "find_package(Flang CONFIG) verification passed"
else
rlFail "find_package(Flang 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 - flatbuffers-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- flatbuffers
duration: 10m
tier: 2
path: /tests/functional/cmake/test_flatbuffers-devel_cmake_verify
require:
- flatbuffers-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: flatbuffers-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="flatbuffers-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(flatbuffers) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(flatbuffers REQUIRED CONFIG)
message(STATUS "find_package(flatbuffers) succeeded")
EOF
rlLogInfo "Verifying find_package(flatbuffers CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package flatbuffers CONFIG)"; then
rlPass "find_package(flatbuffers CONFIG) verification passed"
else
rlFail "find_package(flatbuffers 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 - fmt-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- fmt
duration: 10m
tier: 2
path: /tests/functional/cmake/test_fmt-devel_cmake_verify
require:
- fmt-devel
- cmake
- gcc
- beakerlib
- gcc-c++
+58
View File
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: fmt-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="fmt-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(fmt) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(fmt REQUIRED CONFIG)
message(STATUS "find_package(fmt) succeeded")
EOF
rlLogInfo "Verifying find_package(fmt CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package fmt CONFIG)"; then
rlPass "find_package(fmt CONFIG) verification passed"
else
rlFail "find_package(fmt 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 - freeglut-devel cmake verify
test: ./test.sh
tag:
- functional
- cmake
- freeglut
duration: 10m
tier: 2
path: /tests/functional/cmake/test_freeglut-devel_cmake_verify
require:
- freeglut-devel
- cmake
- gcc
- beakerlib
- gcc-c++
@@ -0,0 +1,58 @@
#!/bin/bash
# Functional test: freeglut-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="freeglut-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(FreeGLUT) ---
cat > "$TmpDir/CMakeLists.txt" << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(cmake_verify
VERSION "0.1"
LANGUAGES C CXX)
find_package(FreeGLUT REQUIRED CONFIG)
message(STATUS "find_package(FreeGLUT) succeeded")
EOF
rlLogInfo "Verifying find_package(FreeGLUT CONFIG) ..."
rm -rf "$TmpDir/build_0"
if rlRun "cmake -S $TmpDir -B $TmpDir/build_0" 0 \
"cmake configuration (find_package FreeGLUT CONFIG)"; then
rlPass "find_package(FreeGLUT CONFIG) verification passed"
else
rlFail "find_package(FreeGLUT 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