Adding unit tests for the AESNI-MB raw device.

Signed-off-by: David Coyle <david.co...@intel.com>
Signed-off-by: Mairtin o Loingsigh <mairtin.oloings...@intel.com>
---
 app/test/test_rawdev.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/app/test/test_rawdev.c b/app/test/test_rawdev.c
index 524a9d5f3..badb6a756 100644
--- a/app/test/test_rawdev.c
+++ b/app/test/test_rawdev.c
@@ -45,3 +45,19 @@ test_rawdev_selftest_ioat(void)
 }
 
 REGISTER_TEST_COMMAND(ioat_rawdev_autotest, test_rawdev_selftest_ioat);
+
+static int
+test_rawdev_selftest_aesni_mb(void)
+{
+       int ret;
+
+       ret = rte_vdev_init("rawdev_aesni_mb", NULL);
+       if (ret) {
+               printf("Failed to create AESNI-MB rawdev\n");
+               return ret;
+       }
+
+       return rte_rawdev_selftest(rte_rawdev_get_dev_id("rawdev_aesni_mb"));
+}
+
+REGISTER_TEST_COMMAND(rawdev_aesni_mb_autotest, test_rawdev_selftest_aesni_mb);
-- 
2.17.1

Reply via email to