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>
56 lines
2 KiB
Bash
Executable file
56 lines
2 KiB
Bash
Executable file
#!/usr/bin/bash
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
# Author: psklenar@redhat.com <psklenar@redhat.com>
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
# Include Beaker environment
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
|
|
rlJournalStart
|
|
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"
|
|
bash try-all-binaries-help-options.sh
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest
|
|
coredumpctl list
|
|
CORES_COUNT_NEW=$(coredumpctl list|wc -l)
|
|
rlAssertEquals "Number of old and new coredumps should be equal." $CORES_COUNT_OLD $CORES_COUNT_NEW
|
|
rlPhaseEnd
|
|
|
|
rlJournalPrintText
|
|
rlJournalEnd
|