Add optional CLI tools installation and show package versions
Changes: - Show full package version in crash reports (NAME-VERSION-RELEASE) - Add optional installation of extra CLI tools (enabled by default) - Install via dnf group install: Development Tools, C Development, System Tools - Add 50+ CLI packages: compression, text tools, databases, debug tools - Disable with: INSTALL_EXTRA_TOOLS=no - Adds ~200-400 binaries to test coverage when enabled Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
030118d691
commit
c9b4775338
3 changed files with 37 additions and 2 deletions
|
|
@ -8,3 +8,6 @@ enabled: false
|
|||
adjust:
|
||||
- when: "force == yes"
|
||||
enabled: true
|
||||
|
||||
# run.me: testing-farm-public request --test-type fmf --git-url https://forge.fedoraproject.org/quality/fmf-tests.git --git-ref main --compose Fedora-Cloud-Base-AmazonEC2.x86_64-44-1.3 --arch x86_64 --test run-them-all --context "force=yes"
|
||||
# tmt -c force=yes try 3.140.248.134@connect --test '/system-in-use/run-them-all'
|
||||
|
|
|
|||
|
|
@ -6,8 +6,40 @@
|
|||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlPhaseStartSetup "Install extra CLI tools"
|
||||
CORES_COUNT_OLD=$(coredumpctl list|wc -l)
|
||||
|
||||
# Install extra tools to increase binary coverage (default: enabled)
|
||||
if [[ "${INSTALL_EXTRA_TOOLS:-yes}" == "yes" ]]; then
|
||||
rlLog "Installing extra CLI tools via group install..."
|
||||
|
||||
# Install CLI-focused package groups
|
||||
rlRun "dnf group install -y --skip-broken \
|
||||
'Development Tools' \
|
||||
'C Development Tools and Libraries' \
|
||||
'System Tools'" 0-255
|
||||
|
||||
# Install additional CLI utilities
|
||||
rlRun "dnf install -y --skip-broken \
|
||||
bzip2 xz zstd lz4 zip unzip p7zip \
|
||||
jq xmlstarlet yq \
|
||||
sqlite mariadb postgresql-server \
|
||||
ImageMagick sox \
|
||||
strace ltrace gdb \
|
||||
nmap-ncat socat netcat \
|
||||
curl wget rsync aria2 \
|
||||
vim-enhanced emacs-nox nano \
|
||||
python3-pip ruby golang rust cargo \
|
||||
pandoc markdown asciidoc \
|
||||
htop iotop sysstat perf \
|
||||
tree file pv progress \
|
||||
sed awk gawk grep ripgrep \
|
||||
tar cpio rsync rclone" 0-255
|
||||
|
||||
rlLog "Extra tools installation complete"
|
||||
else
|
||||
rlLog "Skipping extra tools installation (INSTALL_EXTRA_TOOLS=no)"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "run"
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ echo "===================="
|
|||
fuzz_binary() {
|
||||
local bin="$1"
|
||||
local name=$(basename "$bin")
|
||||
local pkg=$(rpm -qf "$bin" --qf '%{NAME}' 2>/dev/null || echo "unknown")
|
||||
local pkg=$(rpm -qf "$bin" --qf '%{NAME}-%{VERSION}-%{RELEASE}' 2>/dev/null || echo "unknown")
|
||||
|
||||
# Extract flags from --help
|
||||
local flags=()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue