|
|
9b550e |
From 14ef76c155ad0d646f5c2d0fdfa31edacd4024c6 Mon Sep 17 00:00:00 2001
|
|
|
9b550e |
From: Ben Hutchings <ben@decadent.org.uk>
|
|
|
9b550e |
Date: Sun, 21 Sep 2014 23:40:29 +0100
|
|
|
9b550e |
Subject: [PATCH 3/4] test-cmdline: Disable test cases for --rxfh hash key
|
|
|
9b550e |
parsing
|
|
|
9b550e |
|
|
|
9b550e |
test-cmdline does not mock the result of send_ioctl() but just treats
|
|
|
9b550e |
a call to send_ioctl() as indicating successful parsing. Any parse
|
|
|
9b550e |
failure after this point cannot be tested for. Currently, the hash
|
|
|
9b550e |
key string passed to --rxfh isn't parsed until after the device's key
|
|
|
9b550e |
size is known, so we can't test it tis way.
|
|
|
9b550e |
|
|
|
9b550e |
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|
|
9b550e |
---
|
|
|
9b550e |
test-cmdline.c | 6 ++++++
|
|
|
9b550e |
1 file changed, 6 insertions(+)
|
|
|
9b550e |
|
|
|
9b550e |
diff --git a/test-cmdline.c b/test-cmdline.c
|
|
|
9b550e |
index be41a30..2fd7cbb 100644
|
|
|
9b550e |
--- a/test-cmdline.c
|
|
|
9b550e |
+++ b/test-cmdline.c
|
|
|
9b550e |
@@ -184,8 +184,14 @@ static struct test_case {
|
|
|
9b550e |
{ 0, "--set-rxfh-indir devname weight 1 2 3 4" },
|
|
|
9b550e |
{ 0, "--rxfh devname hkey 48:15:6e:bb:d8:bd:6f:b1:a4:c6:7a:c4:76:1c:29:98:da:e1:ae:6c:2e:12:2f:c0:b9:be:61:3d:00:54:35:9e:09:05:c7:d7:93:72:4a:ee" },
|
|
|
9b550e |
{ 0, "-X devname hkey 48:15:6e:bb:d8:bd:6f:b1:a4:c6:7a:c4:76:1c:29:98:da:e1:ae:6c:2e:12:2f:c0:b9:be:61:3d:00:54:35:9e:09:05:c7:d7:93:72:4a:ee" },
|
|
|
9b550e |
+#if 0
|
|
|
9b550e |
+ /* XXX These won't fail as expected because we don't parse the
|
|
|
9b550e |
+ * hash key until after the first send_ioctl(). That needs to
|
|
|
9b550e |
+ * be changed before we enable them.
|
|
|
9b550e |
+ */
|
|
|
9b550e |
{ 1, "--rxfh devname hkey foo" },
|
|
|
9b550e |
{ 1, "-X devname hkey foo" },
|
|
|
9b550e |
+#endif
|
|
|
9b550e |
{ 0, "--rxfh devname hkey 48:15:6e:bb:d8:bd:6f:b1:a4:c6:7a:c4:76:1c:29:98:da:e1:ae:6c:2e:12:2f:c0:b9:be:61:3d:00:54:35:9e:09:05:c7:d7:93:72:4a:ee weight 1 2 3 4" },
|
|
|
9b550e |
{ 0, "-X devname weight 1 2 3 4 hkey 48:15:6e:bb:d8:bd:6f:b1:a4:c6:7a:c4:76:1c:29:98:da:e1:ae:6c:2e:12:2f:c0:b9:be:61:3d:00:54:35:9e:09:05:c7:d7:93:72:4a:ee" },
|
|
|
9b550e |
{ 0, "--rxfh devname hkey 48:15:6e:bb:d8:bd:6f:b1:a4:c6:7a:c4:76:1c:29:98:da:e1:ae:6c:2e:12:2f:c0:b9:be:61:3d:00:54:35:9e:09:05:c7:d7:93:72:4a:ee equal 2" },
|
|
|
9b550e |
--
|
|
|
9b550e |
1.8.3.1
|
|
|
9b550e |
|