Libtracefs is used by rtla. Install rtla and run the same gating tests as the rtla package. Resolves: rhbz#2171394 Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
48 lines
881 B
Bash
Executable File
48 lines
881 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
if rpm -q --quiet libtracefs; then
|
|
:
|
|
else
|
|
sudo dnf install -y libtracefs
|
|
if [[ $? != 0 ]]; then
|
|
echo "install of libtracefs failed!"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "The libtracefs is meant to be used by rtla. Check installation."
|
|
if [[ ! -f /usr/lib64/libtracefs.so.1 ]]; then
|
|
echo "/usr/lib64/libtracefs.so.1 not found!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Check that rtla works."
|
|
if ! rpm -q --quiet rtla; then
|
|
sudo dnf install -y rtla
|
|
if [[ $? != 0 ]]; then
|
|
echo "install rtla failed when libtracefs exist!"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
rtla
|
|
if [[ $? != 1 ]]; then
|
|
# When you run rtla without a command, it exits with a failure
|
|
echo "rtla failed to run"
|
|
exit 1
|
|
fi
|
|
|
|
rtla timerlat -h
|
|
if [[ $? != 0 ]]; then
|
|
echo "rtla timerlat -h failed"
|
|
exit 1
|
|
fi
|
|
|
|
rtla osnoise -h
|
|
if [[ $? != 0 ]]; then
|
|
echo "rtla osnoise -h failed"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|