-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 */