enable c10s gating
This commit is contained in:
parent
0214010428
commit
dbff9b21e4
6
gating.yaml
Normal file
6
gating.yaml
Normal 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}
|
30
tests/defconfig/runtest.sh
Executable file
30
tests/defconfig/runtest.sh
Executable 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/^\[ens.*\]/\[eth$i\]/" < /etc/synce4l.conf > "$tmpconf"
|
||||||
|
|
||||||
|
out=$(timeout -s 9 5 synce4l -m -q -l 7 -f "$tmpconf" 2>&1 || :)
|
||||||
|
|
||||||
|
echo "$out" | grep -q "config item synce1"
|
||||||
|
echo "$out" | grep -q "dpll mon for synce1 new state"
|
||||||
|
|
||||||
|
echo "unknownoption 1" >> "$tmpconf"
|
||||||
|
|
||||||
|
out=$(timeout -s 9 5 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
9
tests/tests.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
tests:
|
||||||
|
- defconfig
|
||||||
|
required_packages:
|
||||||
|
- iproute
|
Loading…
Reference in New Issue
Block a user