selftests/bpf: remove logic duplication in test_verifier
authorAndrii Nakryiko <andriin@fb.com>
Fri, 12 Jul 2019 17:44:41 +0000 (10:44 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Jul 2019 23:01:04 +0000 (01:01 +0200)
commitd5e1db990fcce571a4af2434d6fc2b312d94b45e
tree5a2b9581879f5820945f1a8f9ec35094f1c2c5b4
parent6da193569cbe2127faa7a934a3c18fffe32c6041
selftests/bpf: remove logic duplication in test_verifier

test_verifier tests can specify single- and multi-runs tests. Internally
logic of handling them is duplicated. Get rid of it by making single run
retval/data specification to be a first run spec.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Cc: Krzesimir Nowak <krzesimir@kinvolk.io>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c