Forward port the tests directory for ci testing
Resolves: rhbz#2196611 jiraProject == RHELPLAN-156801 Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
0ecf8272bf
commit
f6b8fb4dda
@ -1,6 +1,6 @@
|
||||
Name: rtla
|
||||
Version: 5.14.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Real-Time Linux Analysis tools
|
||||
|
||||
License: GPLv2
|
||||
@ -67,6 +67,11 @@ make DESTDIR=%{buildroot} -C Documentation install
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue May 09 2023 John Kacur <jkacur@redhat.com> - 5.14.0-6
|
||||
- Forward port the tests directory for ci testing
|
||||
Resolves: rhbz#2196611
|
||||
jiraProject == RHELPLAN-156801
|
||||
|
||||
* Fri May 05 2023 John Kacur <jkacur@redhat.com> - 5.14.0-5
|
||||
- Correct commandline example
|
||||
Resolves: rhbz#2189440
|
||||
|
44
tests/scripts/run_tests.sh
Executable file
44
tests/scripts/run_tests.sh
Executable file
@ -0,0 +1,44 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# Make sure rtla is installed
|
||||
if rpm -q rtla; then
|
||||
:
|
||||
else
|
||||
# libtraceevent is a dependency of libtracefs too
|
||||
sudo dnf install -y libtraceevent
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "install of rtla dependency libtraceevent failed"
|
||||
exit 1
|
||||
fi
|
||||
sudo dnf install -y libtracefs
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "install of rtla dependency libtracefs failed"
|
||||
exit 1
|
||||
fi
|
||||
sudo dnf install -y rtla
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "install of rtla dependency libtracefs failed"
|
||||
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
|
9
tests/tests.yml
Normal file
9
tests/tests.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- simple:
|
||||
dir: scripts
|
||||
run: ./run_tests.sh
|
Loading…
Reference in New Issue
Block a user