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)
commit9d6b3584a7a9d7fa872cb17ceda7a3b208f441eb
tree2720f841702e235b84e09228012b454d782334a5
parentb251f9f63a3bea7864bf627960926d978e97814d
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