From 6bc84e04c40a2497c4c416556df09e2782059e1c Mon Sep 17 00:00:00 2001 From: "Anders K. Pedersen" Date: Sat, 29 Oct 2016 03:12:41 +0200 Subject: Replace tests/files/expr-rt with Python based tests, and replace ether type with meta nfproto, which generates a bit fewer instructions. Signed-off-by: Anders K. Pedersen Signed-off-by: Florian Westphal --- tests/py/ip6/rt0.t | 6 ++++++ tests/py/ip6/rt0.t.payload | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 tests/py/ip6/rt0.t create mode 100644 tests/py/ip6/rt0.t.payload (limited to 'tests/py/ip6') diff --git a/tests/py/ip6/rt0.t b/tests/py/ip6/rt0.t new file mode 100644 index 00000000..92614de3 --- /dev/null +++ b/tests/py/ip6/rt0.t @@ -0,0 +1,6 @@ +:output;type filter hook input priority 0 + +*ip6;test-ip6;output + +rt nexthop 192.168.0.1;fail +rt nexthop fd00::1;ok diff --git a/tests/py/ip6/rt0.t.payload b/tests/py/ip6/rt0.t.payload new file mode 100644 index 00000000..464b7f21 --- /dev/null +++ b/tests/py/ip6/rt0.t.payload @@ -0,0 +1,5 @@ +# rt nexthop fd00::1 +ip6 test-ip6 output + [ rt load nexthop6 => reg 1 ] + [ cmp eq reg 1 0x000000fd 0x00000000 0x00000000 0x01000000 ] + -- cgit v1.2.3