[v2,3/4] test/rawdev: add aesni_mb raw device tests

Message ID 20200403163656.60545-4-david.coyle@intel.com (mailing list archive)
State Superseded, archived
Headers
Series introduce multi-function processing support |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Coyle, David April 3, 2020, 4:36 p.m. UTC
  Adding unit tests for the AESNI-MB raw device.

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

Patch

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);