Skip to content

Commit

Permalink
test: remove unnecessary test commands
Browse files Browse the repository at this point in the history
EAL and rwlock tests have been split into smaller unit tests now listed
in meson.
Nothing is referencing eal_flags_autotest and rwlock_autotest anymore,
since we dropped the python wrapper.

Fixes: 8c745bb ("test: remove autotest python wrapper")

Signed-off-by: David Marchand <[email protected]>
  • Loading branch information
david-marchand committed Nov 16, 2021
1 parent 9f4b0b7 commit 81169a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 126 deletions.
84 changes: 0 additions & 84 deletions app/test/test_eal_flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -1498,90 +1498,6 @@ test_memory_flags(void)
return 0;
}

static int
test_eal_flags(void)
{
int ret = 0;

ret = test_missing_c_flag();
if (ret < 0) {
printf("Error in test_missing_c_flag()\n");
return ret;
}

ret = test_main_lcore_flag();
if (ret < 0) {
printf("Error in test_main_lcore_flag()\n");
return ret;
}

ret = test_invalid_n_flag();
if (ret < 0) {
printf("Error in test_invalid_n_flag()\n");
return ret;
}

ret = test_no_hpet_flag();
if (ret < 0) {
printf("Error in test_no_hpet_flag()\n");
return ret;
}

ret = test_no_huge_flag();
if (ret < 0) {
printf("Error in test_no_huge_flag()\n");
return ret;
}

ret = test_allow_flag();
if (ret < 0) {
printf("Error in test_allow_flag()\n");
return ret;
}

ret = test_invalid_b_flag();
if (ret < 0) {
printf("Error in test_invalid_b_flag()\n");
return ret;
}

#ifdef RTE_NET_RING
ret = test_invalid_vdev_flag();
if (ret < 0) {
printf("Error in test_invalid_vdev_flag()\n");
return ret;
}
#endif
ret = test_invalid_r_flag();
if (ret < 0) {
printf("Error in test_invalid_r_flag()\n");
return ret;
}

ret = test_memory_flags();
if (ret < 0) {
printf("Error in test_memory_flags()\n");
return ret;
}

ret = test_file_prefix();
if (ret < 0) {
printf("Error in test_file_prefix()\n");
return ret;
}

ret = test_misc_flags();
if (ret < 0) {
printf("Error in test_misc_flags()");
return ret;
}

return ret;
}

REGISTER_TEST_COMMAND(eal_flags_autotest, test_eal_flags);

/* subtests used in meson for CI */
REGISTER_TEST_COMMAND(eal_flags_c_opt_autotest, test_missing_c_flag);
REGISTER_TEST_COMMAND(eal_flags_main_opt_autotest, test_main_lcore_flag);
REGISTER_TEST_COMMAND(eal_flags_n_opt_autotest, test_invalid_n_flag);
Expand Down
42 changes: 0 additions & 42 deletions app/test/test_rwlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,48 +506,6 @@ try_rwlock_test_rde_wro(void)
return process_try_lcore_stats();
}

static int
test_rwlock(void)
{
uint32_t i;
int32_t rc, ret;

static const struct {
const char *name;
int (*ftst)(void);
} test[] = {
{
.name = "rwlock_test1",
.ftst = rwlock_test1,
},
{
.name = "try_rwlock_test_rda",
.ftst = try_rwlock_test_rda,
},
{
.name = "try_rwlock_test_rds_wrm",
.ftst = try_rwlock_test_rds_wrm,
},
{
.name = "try_rwlock_test_rde_wro",
.ftst = try_rwlock_test_rde_wro,
},
};

ret = 0;
for (i = 0; i != RTE_DIM(test); i++) {
printf("starting test %s;\n", test[i].name);
rc = test[i].ftst();
printf("test %s completed with status %d\n", test[i].name, rc);
ret |= rc;
}

return ret;
}

REGISTER_TEST_COMMAND(rwlock_autotest, test_rwlock);

/* subtests used in meson for CI */
REGISTER_TEST_COMMAND(rwlock_test1_autotest, rwlock_test1);
REGISTER_TEST_COMMAND(rwlock_rda_autotest, try_rwlock_test_rda);
REGISTER_TEST_COMMAND(rwlock_rds_wrm_autotest, try_rwlock_test_rds_wrm);
Expand Down

0 comments on commit 81169a0

Please sign in to comment.