blob: d3bc6442704e211f3cce03f1dd5ce8129d1de7e6 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3#
4# Regression tests for IPv6 flowlabels
5#
6# run in separate namespaces to avoid mgmt db conflicts betweent tests
7
8set -e
9
10echo "TEST management"
11./in_netns.sh ./ipv6_flowlabel_mgr
12
13echo "TEST datapath"
14./in_netns.sh \
15 sh -c 'sysctl -q -w net.ipv6.auto_flowlabels=0 && ./ipv6_flowlabel -l 1'
16
17echo "TEST datapath (with auto-flowlabels)"
18./in_netns.sh \
19 sh -c 'sysctl -q -w net.ipv6.auto_flowlabels=1 && ./ipv6_flowlabel -l 1'
20
21echo OK. All tests passed