]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: test_lwt_ip_encap: add negative tests.
authorPeter Oskolkov <posk@google.com>
Fri, 15 Feb 2019 23:49:33 +0000 (15:49 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 17 Feb 2019 02:41:44 +0000 (18:41 -0800)
commit48842fcfe939502e967aa13fbf1d6c060595fa8a
tree2720f841702e235b84e09228012b454d782334a5
parentee1b3085b93968c68d18cd096665c68df3f1faf9
selftests: bpf: test_lwt_ip_encap: add negative tests.

As requested by David Ahern:

- add negative tests (no routes, explicitly unreachable destinations)
  to exercize error handling code paths;
- do not exit on test failures, but instead print a summary of
  passed/failed tests at the end.

Future patches will add TSO and VRF tests.

Signed-off-by: Peter Oskolkov <posk@google.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_lwt_ip_encap.sh