test/bpf: add new test cases
authorHarman Kalra <hkalra@marvell.com>
Wed, 25 Sep 2019 10:43:21 +0000 (10:43 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 24 Oct 2019 07:57:48 +0000 (09:57 +0200)
commitcddd879540daf1f1f34f6ade34ebd3cbf069ff96
tree46c0d5d50f53b3a81e889aece9fea9ec5bebe2b9
parent759cf9b5632ceb4715bcd4fcc3c09aa3d86ebdb2
test/bpf: add new test cases

This patch implements following new test cases:
- test_call4: test case to verify if stack corruption occurs
across with multiple function calls.
- test_jump2: test case with a default packet in memory, parse
the packet and check if dest ip is part of a subnet.
- test_call5: test case with string data in the stack and
calling string comaprision.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_bpf.c