Compare commits
No commits in common. "rawhide" and "f30" have entirely different histories.
7 changed files with 4 additions and 165 deletions
|
|
@ -1 +0,0 @@
|
||||||
1
|
|
||||||
15
gating.yaml
15
gating.yaml
|
|
@ -1,15 +0,0 @@
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_context: bodhi_update_push_testing
|
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
|
||||||
|
|
||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- fedora-*
|
|
||||||
decision_context: bodhi_update_push_stable
|
|
||||||
subject_type: koji_build
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# Spelling error multicast
|
|
||||||
addFilter(r'W: spelling-error .* multicast')
|
|
||||||
63
omping.spec
63
omping.spec
|
|
@ -1,28 +1,26 @@
|
||||||
Name: omping
|
Name: omping
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Release: 35%{?dist}
|
Release: 18%{?dist}
|
||||||
Summary: Utility to test IP multicast functionality
|
Summary: Utility to test IP multicast functionality
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://github.com/jfriesse/omping
|
URL: https://github.com/jfriesse/omping
|
||||||
Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: git
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Omping (Open Multicast Ping) is tool to test IP multicast functionality
|
Omping (Open Multicast Ping) is tool to test IP multicast functionality
|
||||||
primarily in local network.
|
primarily in local network.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -S git_am
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
%make_build
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PREFIX="%{_prefix}"
|
make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
|
|
@ -31,59 +29,6 @@ primarily in local network.
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-35
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-34
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-33
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-32
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-31
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-30
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 06 2023 Jan Friesse <jfriesse@redhat.com> - 0.0.4-29
|
|
||||||
- migrated to SPDX license
|
|
||||||
|
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-28
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-27
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-26
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-25
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-24
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-23
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jul 22 2020 Jan Friesse <jfriesse@redhat.com> - 0.0.4-22
|
|
||||||
- Use make macros
|
|
||||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
||||||
|
|
||||||
* Thu Mar 19 2020 Jan Friesse <jfriesse@redhat.com> - 0.0.4-21
|
|
||||||
- Add CI tests
|
|
||||||
- Enable gating
|
|
||||||
|
|
||||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-20
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-19
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Mar 20 2019 Jan Friesse <jfriesse@redhat.com> - 0.0.4-18
|
* Wed Mar 20 2019 Jan Friesse <jfriesse@redhat.com> - 0.0.4-18
|
||||||
- Use license and set_build_flags macro
|
- Use license and set_build_flags macro
|
||||||
- Fix URL and source
|
- Fix URL and source
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
summary: Run all smoke tests
|
|
||||||
discover:
|
|
||||||
how: fmf
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
||||||
prepare:
|
|
||||||
how: install
|
|
||||||
package:
|
|
||||||
- iproute
|
|
||||||
- omping
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
summary: Basic smoke test
|
|
||||||
test: ./runtest.sh
|
|
||||||
|
|
@ -1,76 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Copyright (c) 2019, Red Hat, Inc.
|
|
||||||
#
|
|
||||||
# Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
# purpose with or without fee is hereby granted, provided that the above
|
|
||||||
# copyright notice and this permission notice appear in all copies.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS" AND RED HAT, INC. DISCLAIMS ALL WARRANTIES
|
|
||||||
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
||||||
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL RED HAT, INC. BE LIABLE
|
|
||||||
# FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
||||||
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
||||||
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
||||||
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
#
|
|
||||||
# Author: Jan Friesse <jfriesse@redhat.com>
|
|
||||||
|
|
||||||
# Home https://github.com/jfriesse/csts/tree/master/smoke
|
|
||||||
|
|
||||||
# -e is really important
|
|
||||||
set -xe
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
####################
|
|
||||||
# Helper functions #
|
|
||||||
####################
|
|
||||||
get_ip() {
|
|
||||||
ip_res=$(ip route get 8.8.8.8)
|
|
||||||
# Format is "8.8.8.8 via ROUTE_IPADDR dev DEV src IPADDR uid NUMBER"
|
|
||||||
# Remove everything up to "src " and then everything after " "
|
|
||||||
addr=${ip_res##*src }
|
|
||||||
addr=${addr%% *}
|
|
||||||
|
|
||||||
echo "$addr"
|
|
||||||
}
|
|
||||||
|
|
||||||
##################
|
|
||||||
# Test functions #
|
|
||||||
##################
|
|
||||||
|
|
||||||
test_omping_v() {
|
|
||||||
# Check that omping -V prints version
|
|
||||||
ver_res=`omping -V`
|
|
||||||
[ "$ver_res" != "${ver_res/[0-9]*\.[0-9]*\.[0-9]/}" ]
|
|
||||||
|
|
||||||
# Check that omping exists and prints usage
|
|
||||||
res=`omping || true`
|
|
||||||
[ "$res" != "${res/usage/}" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
test_man_page() {
|
|
||||||
man -w "omping"
|
|
||||||
}
|
|
||||||
|
|
||||||
test_local_ping() {
|
|
||||||
omping_res_file=`mktemp`
|
|
||||||
local_ip=$(get_ip)
|
|
||||||
|
|
||||||
omping -c 5 "$local_ip" | tee "$omping_res_file"
|
|
||||||
|
|
||||||
grep "$local_ip.*joined (S,G)" "$omping_res_file"
|
|
||||||
grep "$local_ip.*given amount of query messages was sent" "$omping_res_file"
|
|
||||||
grep "$local_ip.*unicast, xmt/rcv/%loss =.*min/avg/max/std-dev" "$omping_res_file"
|
|
||||||
grep "$local_ip.*multicast, xmt/rcv/%loss =.*min/avg/max/std-dev" "$omping_res_file"
|
|
||||||
|
|
||||||
rm -f "$omping_res_file"
|
|
||||||
}
|
|
||||||
|
|
||||||
########
|
|
||||||
# main #
|
|
||||||
########
|
|
||||||
test_omping_v
|
|
||||||
test_man_page
|
|
||||||
|
|
||||||
test_local_ping
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue