Compare commits
No commits in common. "c8" and "c9s" have entirely different histories.
5
.gitignore
vendored
5
.gitignore
vendored
@ -1 +1,4 @@
|
|||||||
SOURCES/omping-0.0.4.tar.gz
|
/omping-0.0.1.tar.gz
|
||||||
|
/omping-0.0.2.tar.gz
|
||||||
|
/omping-0.0.3.tar.gz
|
||||||
|
/omping-0.0.4.tar.gz
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
043fccc87f185e2a801039064b619f7fa370ea72 SOURCES/omping-0.0.4.tar.gz
|
|
||||||
15
gating.yaml
Normal file
15
gating.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- !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}
|
||||||
2
omping.rpmlintrc
Normal file
2
omping.rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Spelling error multicast
|
||||||
|
addFilter(r'W: spelling-error .* multicast')
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: omping
|
Name: omping
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Release: 18%{?dist}
|
Release: 26%{?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
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Omping (Open Multicast Ping) is tool to test IP multicast functionality
|
Omping (Open Multicast Ping) is tool to test IP multicast functionality
|
||||||
@ -17,10 +18,10 @@ primarily in local network.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install
|
%make_install PREFIX="%{_prefix}"
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
@ -29,29 +30,48 @@ make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Apr 28 2020 Jan Friesse <jfriesse@redhat.com> - 0.0.4-18
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.4-26
|
||||||
- Resolves: rhbz#1828305
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
- Add explicit omping dependency for revdeps CI test
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.4-25
|
||||||
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
* Mon May 13 2019 Jan Friesse <jfriesse@redhat.com> - 0.0.4-17
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-24
|
||||||
- Related rhbz#1682115
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
- Add gating tests
|
* 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 Mar 20 2019 Jan Friesse <jfriesse@redhat.com> - 0.0.4-16
|
* 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
|
||||||
- Use license and set_build_flags macro
|
- Use license and set_build_flags macro
|
||||||
- Fix URL and source
|
- Fix URL and source
|
||||||
|
|
||||||
- Related rhbz#1682115
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Tue Jul 10 2018 Jan Friesse <jfriesse@redhat.com> - 0.0.4-15
|
* Tue Jul 10 2018 Jan Friesse <jfriesse@redhat.com> - 0.0.4-15
|
||||||
- Modernize spec file a bit
|
- Modernize spec file a bit
|
||||||
- Fix spec file changelog dates
|
- Fix spec file changelog dates
|
||||||
- Add gcc build requirement
|
- Add gcc build requirement
|
||||||
|
|
||||||
- Related rhbz#1682115
|
|
||||||
|
|
||||||
* Mon Jul 9 2018 Florian Weimer <fweimer@redhat.com> - 0.0.4-14
|
* Mon Jul 9 2018 Florian Weimer <fweimer@redhat.com> - 0.0.4-14
|
||||||
- Use LDFLAGS from redhat-rpm-config
|
- Use LDFLAGS from redhat-rpm-config
|
||||||
|
|
||||||
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (omping-0.0.4.tar.gz) = 358362b41c8a502f95f4a7ac044122159cc73b2b124849c957d4041c14dc38057febeb725066ceb7c595ed059a60c7dffd14c986fa90119a8d27055e665bd023
|
||||||
3
tests/.gitignore
vendored
Normal file
3
tests/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Ignore tests runs/artefacts.
|
||||||
|
artifacts/**
|
||||||
|
**/*.retry
|
||||||
76
tests/smoke/runtest.sh
Normal file
76
tests/smoke/runtest.sh
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
#!/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
|
||||||
10
tests/tests.yml
Normal file
10
tests/tests.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- smoke
|
||||||
|
required_packages:
|
||||||
|
- iproute
|
||||||
|
- omping
|
||||||
Loading…
Reference in New Issue
Block a user