Compare commits

...

No commits in common. "c8" and "0f91e0f68d4d67dcffe379506850adb22715a2c1" have entirely different histories.

9 changed files with 49 additions and 3 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/synce4l-9564b5.tar.gz
/synce4l-9564b5.tar.gz

View File

@ -1 +1 @@
0ac4868f7b3121b7f8cb58ef5560c4b807a36edd SOURCES/synce4l-9564b5.tar.gz
0ac4868f7b3121b7f8cb58ef5560c4b807a36edd synce4l-9564b5.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (synce4l-9564b5.tar.gz) = 2661d920b4dc2e02fd1bc09d8b6d20d13aa15aa4841582ea6bad47f77716cdf8c6f6876eae6efe1e68d89eca58bf8c834241ced8c71820176204347ca07dde31

View File

@ -65,7 +65,7 @@ echo '.so man8/synce4l.8' > $RPM_BUILD_ROOT%{_mandir}/man5/synce4l.conf.5
%changelog
* Tue Jan 03 2023 Miroslav Lichvar <mlichvar@redhat.com> 0-4.20221122git9564b5
- update to 20221122git9564b5 (#2019751)
- update to 20221122git9564b5 (#2143264)
* Wed Nov 16 2022 Miroslav Lichvar <mlichvar@redhat.com> 0-3.20221114gitca51d5
- update to 20221114gitca51d5 (#2141038)

30
tests/defconfig/runtest.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
# Test if synce4l can parse default configuration
set -ex
# Find a nonexistent network device
i=1
while ip link show eth$i &> /dev/null; do
i=$((i + 1))
done
eth=eth$i
tmpconf=$(mktemp)
sed "s/^\[eth0\]/\[eth$i\]/" < /etc/synce4l.conf > "$tmpconf"
out=$(synce4l -m -q -l 7 -f "$tmpconf" 2>&1 || :)
echo "$out" | grep -q "config item synce1"
echo "$out" | grep -q "ioctl SIOCGIFHWADDR failed: No such device"
echo "unknownoption 1" >> "$tmpconf"
out=$(synce4l -m -q -l 7 -f "$tmpconf" 2>&1 || :)
echo "$out" | grep -q "failed to parse configuration file"
rm "$tmpconf"
exit 0

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- defconfig
required_packages:
- iproute