]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add a test case for fq-codel 14278/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 Dec 2019 14:46:38 +0000 (23:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 Dec 2019 15:06:31 +0000 (00:06 +0900)
test/test-network/conf/25-qdisc-netem-and-fqcodel.network [moved from test/test-network/conf/25-qdisc-netem.network with 66% similarity]
test/test-network/systemd-networkd-tests.py

similarity index 66%
rename from test/test-network/conf/25-qdisc-netem.network
rename to test/test-network/conf/25-qdisc-netem-and-fqcodel.network
index de8f7243ce81779b35b7a75fd053c708078bc829..b7defa33131bdc8f92edb8d139c98af930cb9cd4 100644 (file)
@@ -13,8 +13,5 @@ NetworkEmulatorLossRate=20%
 NetworkEmulatorPacketLimit=100
 
 [TrafficControlQueueingDiscipline]
-Parent=clsact
-NetworkEmulatorDelaySec=100ms
-NetworkEmulatorDelayJitterSec=13ms
-NetworkEmulatorLossRate=20.5%
-NetworkEmulatorPacketLimit=200
+Parent=ingress
+FairQueuingControlledDelayPacketLimit=20480
index 9d22d788ddb92672d402b431387d0b8e1250b6d4..a72b9abf76875897f49784b8d2fcb78d3cf748c3 100755 (executable)
@@ -1509,7 +1509,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         '25-neighbor-ip-dummy.network',
         '25-neighbor-ip.network',
         '25-nexthop.network',
-        '25-qdisc-netem.network',
+        '25-qdisc-netem-and-fqcodel.network',
         '25-qdisc-tbf-and-sfq.network',
         '25-route-ipv6-src.network',
         '25-route-static.network',
@@ -2083,7 +2083,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         self.assertRegex(output, '192.168.5.1')
 
     def test_qdisc(self):
-        copy_unit_to_networkd_unit_path('25-qdisc-netem.network', '12-dummy.netdev',
+        copy_unit_to_networkd_unit_path('25-qdisc-netem-and-fqcodel.network', '12-dummy.netdev',
                                         '25-qdisc-tbf-and-sfq.network', '11-dummy.netdev')
         start_networkd()
 
@@ -2093,7 +2093,8 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         print(output)
         self.assertRegex(output, 'qdisc netem')
         self.assertRegex(output, 'limit 100 delay 50.0ms  10.0ms loss 20%')
-        self.assertRegex(output, 'limit 200 delay 100.0ms  13.0ms loss 20.5%')
+        self.assertRegex(output, 'qdisc fq_codel')
+        self.assertRegex(output, 'limit 20480p')
         output = check_output('tc qdisc show dev test1')
         print(output)
         self.assertRegex(output, 'qdisc tbf')