tuna/tests/scripts/run_tests.sh
Leah Leshchinsky 0b8cffba1c
Edit run_tests.sh to support new CLI changes
Resolves: rhbz#2141349

Signed-off-by: Leah Leshchinsky <lleshchi@redhat.com>
2022-11-09 13:33:18 -05:00

20 lines
309 B
Bash
Executable File

#!/usr/bin/bash
# make sure we have tuna installed
if rpm -q --quiet tuna; then
:
else
sudo dnf install -y tuna
if [[ $? != 0 ]]; then
echo "install of tuna failed!"
exit 1
fi
fi
# simple tests
tuna --help || exit 2
tuna --version || exit 3
tuna show_threads || exit 4
exit 0