Compare commits
13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3a829cbdf | ||
|
|
671ea064e1 | ||
|
|
e25ea34122 | ||
|
|
4158799e86 | ||
|
|
9ea8818a9b | ||
|
|
b300a9a112 | ||
|
|
8461b23340 | ||
|
|
1d28cea60d | ||
|
|
175f2efbde |
||
|
|
17db725ead |
||
|
|
39f8f8d532 |
||
|
|
cc2dcd1643 |
||
|
|
8f237a6070 |
6 changed files with 96 additions and 1 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
1
|
||||||
14
gating.yaml
Normal file
14
gating.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_contexts: [bodhi_update_push_testing]
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_contexts: [bodhi_update_push_stable]
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||||
5
plans/all.fmf
Normal file
5
plans/all.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
summary: All tests
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
25
rigsync.spec
25
rigsync.spec
|
|
@ -6,12 +6,14 @@
|
||||||
|
|
||||||
Name: rigsync
|
Name: rigsync
|
||||||
Version: 0~%{git_suffix}
|
Version: 0~%{git_suffix}
|
||||||
Release: 1%{?dist}
|
Release: 8%{?dist}
|
||||||
Summary: Rigsync keeps multiple rigs frequency and mode in sync using Hamlib
|
Summary: Rigsync keeps multiple rigs frequency and mode in sync using Hamlib
|
||||||
License: LGPL-2.1-only
|
License: LGPL-2.1-only
|
||||||
URL: https://github.com/daveriesz/%{name}
|
URL: https://github.com/daveriesz/%{name}
|
||||||
Source0: %{url}/archive/%{git_commit}/%{name}-%{git_suffix}.tar.gz
|
Source0: %{url}/archive/%{git_commit}/%{name}-%{git_suffix}.tar.gz
|
||||||
|
|
||||||
|
ExcludeArch: i686
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
|
|
@ -37,5 +39,26 @@ install -Dp %{name} %{buildroot}%{_bindir}/%{name}
|
||||||
%{_bindir}/rigsync
|
%{_bindir}/rigsync
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0~20230612gitb320c4d9-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 06 2025 Richard Shaw <hobbes1069@gmail.com> - 0~20230612gitb320c4d9-7
|
||||||
|
- Rebuild for hamlib 4.6.
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0~20230612gitb320c4d9-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Dec 31 2024 Richard Shaw <hobbes1069@gmail.com> - 0~20230612gitb320c4d9-5
|
||||||
|
- Rebuild for Hamlib 4.6.
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0~20230612gitb320c4d9-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0~20230612gitb320c4d9-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0~20230612gitb320c4d9-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
* Mon Oct 2 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 0-20230612gitb320c4d9-1
|
* Mon Oct 2 2023 Jaroslav Škarvada <jskarvad@redhat.com> - 0-20230612gitb320c4d9-1
|
||||||
- Initial version
|
- Initial version
|
||||||
|
|
|
||||||
5
tests/Sanity/sync-emulated-radios/main.fmf
Normal file
5
tests/Sanity/sync-emulated-radios/main.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
summary: Verify that the synchronization of 2 emulated radios works as expected
|
||||||
|
contact: Pavol Žáčik <pzacik@redhat.com>
|
||||||
|
test: ./test.sh
|
||||||
|
framework: beakerlib
|
||||||
|
require: rigsync
|
||||||
47
tests/Sanity/sync-emulated-radios/test.sh
Executable file
47
tests/Sanity/sync-emulated-radios/test.sh
Executable file
|
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
# Copyright (c) 2023 Red Hat
|
||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="rigsync"
|
||||||
|
|
||||||
|
PORT1=8881
|
||||||
|
PORT2=8882
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlAssertRpm $PACKAGE
|
||||||
|
rlRun "rigctld -m 1 -t $PORT1 &" 0 "Emulate radio 1"
|
||||||
|
rlRun "PID1=$!"
|
||||||
|
rlRun "rigctld -m 1 -t $PORT2 &" 0 "Emulate radio 2"
|
||||||
|
rlRun "PID2=$!"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
sleep 1
|
||||||
|
rlRun "rigsync -m 2 -r localhost:$PORT1 -m 2 -r localhost:$PORT2 &" 0 "Synchronize the radios"
|
||||||
|
rlRun "PIDSYNC=$!"
|
||||||
|
sleep 1
|
||||||
|
rlRun "rigctl -m 2 -r localhost:$PORT2 F 146000000" 0 "Set frequency of radio 2 to 146Mhz"
|
||||||
|
sleep 1
|
||||||
|
rlRun "rigctl -m 2 -r localhost:$PORT1 F 147000000" 0 "Set frequency of radio 1 to 147Mhz"
|
||||||
|
sleep 1
|
||||||
|
rlRun "FREQ=$(rigctl -m 2 -r localhost:$PORT2 f)"
|
||||||
|
rlAssertEquals "Check that the frequency of radio 2 is 147Mhz" $FREQ "147000000"
|
||||||
|
rlRun "kill $PIDSYNC" 0 "Stop the synchronization"
|
||||||
|
sleep 1
|
||||||
|
rlRun "rigctl -m 2 -r localhost:$PORT1 F 145000000" 0 "Set frequency of radio 1 to 145Mhz"
|
||||||
|
sleep 1
|
||||||
|
rlRun "FREQ=$(rigctl -m 2 -r localhost:$PORT2 f)"
|
||||||
|
rlAssertEquals "Check that the frequency of radio 2 stays at 147Mhz" $FREQ "147000000"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "kill $PID1 $PID2" 0 "Terminate both radios"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue