test/eventdev: fix build with crypto disabled
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 6 Apr 2017 14:13:37 +0000 (16:13 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Apr 2017 15:55:54 +0000 (17:55 +0200)
commit56086e9729ac99b76eea56940e0d09c8b431a834
tree92f550b8ee8e5a40266104aab269bbda829d5813
parent65d9e621fac43c42f1a12a8b65ef44e7faa79e11
test/eventdev: fix build with crypto disabled

There is a compilation error in the following case:

  make config T=x86_64-native-linuxapp-gcc
  sed -i 's,CONFIG_RTE_LIBRTE_CRYPTODEV=y,CONFIG_RTE_LIBRTE_CRYPTODEV=n,' \
    build/.config
  sed -i 's,CONFIG_RTE_APP_CRYPTO_PERF=y,CONFIG_RTE_APP_CRYPTO_PERF=n,' \
    build/.config
  make -j4
  make -j4 test-build

  test_eventdev.c:39:27: fatal error:
  rte_cryptodev.h: No such file or directory
  #include <rte_cryptodev.h>
                           ^

Removing the include induces a new error, (missing declaration of
rte_eal_vdev_init()), which is fixed by including rte_dev.h.

Fixes: f8f9d233ea0e ("test/eventdev: add unit tests")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
test/test/test_eventdev.c