X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Fcommands.c;h=83f737ff63c4b6def7f65f40caf32361f0a5d2f6;hb=b4ce15aa2bc7;hp=a907ff77b60088d563063ba65c69f6c3aecc8861;hpb=277afaf3dbcb9cf6229db213f4583bb1206c54cc;p=dpdk.git diff --git a/app/test/commands.c b/app/test/commands.c index a907ff77b6..83f737ff63 100644 --- a/app/test/commands.c +++ b/app/test/commands.c @@ -178,12 +178,19 @@ static void cmd_autotest_parsed(void *parsed_result, ret |= test_meter(); if (all || !strcmp(res->autotest, "kni_autotest")) ret |= test_kni(); - if (all || !strcmp(res->autotest, "acl_autotest")) - ret |= test_pmac_acl(); if (all || !strcmp(res->autotest, "power_autotest")) ret |= test_power(); if (all || !strcmp(res->autotest, "common_autotest")) ret |= test_common(); +#ifdef RTE_LIBRTE_PMD_RING + if (all || !strcmp(res->autotest, "ring_pmd_autotest")) + ret |= test_pmd_ring(); +#endif /* RTE_LIBRTE_PMD_RING */ + +#ifdef RTE_LIBRTE_ACL + if (all || !strcmp(res->autotest, "acl_autotest")) + ret |= test_acl(); +#endif /* RTE_LIBRTE_ACL */ if (ret == 0) printf("Test OK\n"); @@ -215,8 +222,15 @@ cmdline_parse_token_string_t cmd_autotest_autotest = "memcpy_perf_autotest#ring_perf_autotest#" "red_autotest#meter_autotest#sched_autotest#" "memcpy_perf_autotest#kni_autotest#" - "pm_autotest#acl_autotest#power_autotest#" + "pm_autotest#" +#ifdef RTE_LIBRTE_ACL + "acl_autotest#" +#endif + "power_autotest#" "timer_perf_autotest#" +#ifdef RTE_LIBRTE_PMD_RING + "ring_pmd_autotest#" +#endif "common_autotest#all_autotests"); cmdline_parse_inst_t cmd_autotest = {