Add OSCI tests

Resolves: RHEL-77171
This commit is contained in:
Bastien Nocera 2025-02-11 16:18:29 +01:00
parent 7d5d270a51
commit 022e94ab9b
4 changed files with 41 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -6,7 +6,7 @@
Name: bluez Name: bluez
Version: 5.77 Version: 5.77
Release: 6%{?dist} Release: 7%{?dist}
Summary: Bluetooth utilities Summary: Bluetooth utilities
License: GPL-2.0-or-later License: GPL-2.0-or-later
URL: http://www.bluez.org/ URL: http://www.bluez.org/
@ -339,6 +339,10 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
%{_userunitdir}/obex.service %{_userunitdir}/obex.service
%changelog %changelog
* Tue Feb 11 2025 Bastien Nocera <bnocera@redhat.com> - 5.77-7
- Add OSCI tests
- Resolves: RHEL-77171
* Mon Feb 10 2025 Bastien Nocera <bnocera@redhat.com> - 5.77-6 * Mon Feb 10 2025 Bastien Nocera <bnocera@redhat.com> - 5.77-6
- Fix config not being applied - Fix config not being applied
- Resolves: RHEL-78405 - Resolves: RHEL-78405

30
tests/run_tests.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
set -ex
# This test is designed such that a Bluetooth controller is not required but we
# can at least check to make sure the commands are installed correctly
# Is bluemoon present and doesn't fail if called
bluemoon --help
# Is bluetoothctl present and doesn't fail if called
# FIXME: https://issues.redhat.com/browse/RHEL-56073
# bluetoothctl --help
# Is btattach present and doesn't fail if called
btattach --version
# Is btmgmt present and doesn't fail if called
# FIXME: https://issues.redhat.com/browse/RHEL-56073
# btmgmt --help
# Is btmon present and doesn't fail if called
btmon --help
# Is hex2hcd present and doesn't fail if called
hex2hcd --help
# Is mpris-proxy present and doesn't fail if called
mpris-proxy --help

5
tests/tests.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Check basic command line options
discover:
how: shell
execute:
script: tests/run_tests.sh