X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=app%2Ftest%2Ftest.c;h=76941af086751aab4a51ce5a946e83fa09e144d4;hb=39157ec04095ab012d11db23c462844634bfbb8f;hp=ccad0e30081024ee6b315eb24ca6eac98f64b1af;hpb=97f17497d162afdb82c8704bf097f0fee3724b2e;p=deb_dpdk.git diff --git a/app/test/test.c b/app/test/test.c index ccad0e30..76941af0 100644 --- a/app/test/test.c +++ b/app/test/test.c @@ -95,9 +95,6 @@ do_recursive_call(void) { "test_memory_flags", no_action }, { "test_file_prefix", no_action }, { "test_no_huge_flag", no_action }, -#ifdef RTE_LIBRTE_IVSHMEM - { "test_ivshmem", test_ivshmem }, -#endif }; if (recursive_call == NULL) @@ -168,8 +165,20 @@ unit_test_suite_runner(struct unit_test_suite *suite) } if (suite->setup) - if (suite->setup() != 0) + if (suite->setup() != 0) { + /* + * setup failed, so count all enabled tests and mark + * them as failed + */ + while (suite->unit_test_cases[total].testcase) { + if (!suite->unit_test_cases[total].enabled) + skipped++; + else + failed++; + total++; + } goto suite_summary; + } printf(" + ------------------------------------------------------- +\n");