X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_cryptodev.c;h=647787d29ff9a7585a69965af51de8254902e041;hp=33325a8ba0769522040ab6217099613f7f1eaa0d;hb=26e09db6cb5fd9bbf0feb928561af9932694574b;hpb=d7cdc5065bb78c28607aecb0b3576d7690c71216 diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 33325a8ba0..647787d29f 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -4164,10 +4164,6 @@ test_cryptodev_qat(void /*argv __rte_unused, int argc __rte_unused*/) gbl_cryptodev_type = RTE_CRYPTODEV_QAT_SYM_PMD; return unit_test_suite_runner(&cryptodev_qat_testsuite); } -static struct test_command cryptodev_qat_cmd = { - .command = "cryptodev_qat_autotest", - .callback = test_cryptodev_qat, -}; static int test_cryptodev_aesni_mb(void /*argv __rte_unused, int argc __rte_unused*/) @@ -4177,11 +4173,6 @@ test_cryptodev_aesni_mb(void /*argv __rte_unused, int argc __rte_unused*/) return unit_test_suite_runner(&cryptodev_aesni_mb_testsuite); } -static struct test_command cryptodev_aesni_mb_cmd = { - .command = "cryptodev_aesni_mb_autotest", - .callback = test_cryptodev_aesni_mb, -}; - static int test_cryptodev_aesni_gcm(void) { @@ -4190,11 +4181,6 @@ test_cryptodev_aesni_gcm(void) return unit_test_suite_runner(&cryptodev_aesni_gcm_testsuite); } -static struct test_command cryptodev_aesni_gcm_cmd = { - .command = "cryptodev_aesni_gcm_autotest", - .callback = test_cryptodev_aesni_gcm, -}; - static int test_cryptodev_null(void) { @@ -4203,11 +4189,6 @@ test_cryptodev_null(void) return unit_test_suite_runner(&cryptodev_null_testsuite); } -static struct test_command cryptodev_null_cmd = { - .command = "cryptodev_null_autotest", - .callback = test_cryptodev_null, -}; - static int test_cryptodev_sw_snow3g(void /*argv __rte_unused, int argc __rte_unused*/) { @@ -4216,11 +4197,6 @@ test_cryptodev_sw_snow3g(void /*argv __rte_unused, int argc __rte_unused*/) return unit_test_suite_runner(&cryptodev_sw_snow3g_testsuite); } -static struct test_command cryptodev_sw_snow3g_cmd = { - .command = "cryptodev_sw_snow3g_autotest", - .callback = test_cryptodev_sw_snow3g, -}; - static int test_cryptodev_sw_kasumi(void /*argv __rte_unused, int argc __rte_unused*/) { @@ -4229,14 +4205,9 @@ test_cryptodev_sw_kasumi(void /*argv __rte_unused, int argc __rte_unused*/) return unit_test_suite_runner(&cryptodev_sw_kasumi_testsuite); } -static struct test_command cryptodev_sw_kasumi_cmd = { - .command = "cryptodev_sw_kasumi_autotest", - .callback = test_cryptodev_sw_kasumi, -}; - -REGISTER_TEST_COMMAND(cryptodev_qat_cmd); -REGISTER_TEST_COMMAND(cryptodev_aesni_mb_cmd); -REGISTER_TEST_COMMAND(cryptodev_aesni_gcm_cmd); -REGISTER_TEST_COMMAND(cryptodev_null_cmd); -REGISTER_TEST_COMMAND(cryptodev_sw_snow3g_cmd); -REGISTER_TEST_COMMAND(cryptodev_sw_kasumi_cmd); +REGISTER_TEST_COMMAND(cryptodev_qat_autotest, test_cryptodev_qat); +REGISTER_TEST_COMMAND(cryptodev_aesni_mb_autotest, test_cryptodev_aesni_mb); +REGISTER_TEST_COMMAND(cryptodev_aesni_gcm_autotest, test_cryptodev_aesni_gcm); +REGISTER_TEST_COMMAND(cryptodev_null_autotest, test_cryptodev_null); +REGISTER_TEST_COMMAND(cryptodev_sw_snow3g_autotest, test_cryptodev_sw_snow3g); +REGISTER_TEST_COMMAND(cryptodev_sw_kasumi_autotest, test_cryptodev_sw_kasumi);