test/ipsec: fix test suite setup
authorBernard Iremonger <bernard.iremonger@intel.com>
Thu, 17 Jan 2019 16:03:56 +0000 (16:03 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jan 2019 23:30:19 +0000 (00:30 +0100)
commit59d7353b0df04e722034964b7b44eb983b2837a1
treeec882353f1bd506e5a60cfcc0e2866274fd7d620
parent646f379068530b47e571a7c8ed9b157008a48a89
test/ipsec: fix test suite setup

Check for valid crypto_null device before continuing.
Use valid_dev instead of valid_devs[].
Replace valid_dev_count with valid_dev_found
Call create_crypto_session for one driver only.
Refactor code so that driver capabilities can be checked in
the testsuite_setup function.

Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
test/test/test_ipsec.c