summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Garver <e@erig.me>2017-03-17 16:13:11 -0400
committerJoe Stringer <joe@ovn.org>2017-03-27 14:34:08 -0700
commit7c121b48d1a149de6c537af6cfdf54e141773c77 (patch)
tree546fde7449a34a5da38ba31234602ca5e79a9aa9 /tests
parente34bbe31b4f61bae48805165ce2c61e13715971c (diff)
downloadopenvswitch-7c121b48d1a149de6c537af6cfdf54e141773c77.tar.gz
system-common-macros: Add macro to check for 802.1ad support.
Add macro OVS_CHECK_8021AD(). Signed-off-by: Eric Garver <e@erig.me> Signed-off-by: Joe Stringer <joe@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/system-common-macros.at5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/system-common-macros.at b/tests/system-common-macros.at
index 10a08f445..3cb6b11ea 100644
--- a/tests/system-common-macros.at
+++ b/tests/system-common-macros.at
@@ -267,3 +267,8 @@ m4_define([OVS_CHECK_GRE],
m4_define([OVS_CHECK_GENEVE],
[AT_SKIP_IF([! ip link add foo type geneve help 2>&1 | grep geneve >/dev/null])
OVS_CHECK_FIREWALL()])
+
+# OVS_CHECK_8021AD()
+m4_define([OVS_CHECK_8021AD],
+ [AT_SKIP_IF([! grep -q "VLAN header stack length probed as" ovs-vswitchd.log])
+ AT_SKIP_IF([[test `sed -n 's/.*VLAN header stack length probed as \([0-9]\+\).*/\1/p' ovs-vswitchd.log` -lt 2]])])