Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang committed Oct 10, 2024
1 parent 31d3f0d commit e74da2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
endif

CFLAGS += -g $(OPT_FLAGS) -rdynamic \
-Wall -Werror -fno-omit-frame-pointer \
-fno-omit-frame-pointer \
$(GENFLAGS) $(SAN_CFLAGS) $(LIBELF_CFLAGS) \
-I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \
-I$(TOOLSINCDIR) -I$(APIDIR) -I$(OUTPUT)
Expand Down
8 changes: 8 additions & 0 deletions tools/testing/selftests/bpf/prog_tests/mptcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,12 @@ static struct nstoken *userspace_pm_init(enum mptcp_pm_type pm_type)

static void userspace_pm_cleanup(void)
{
SYS(fail, "ip netns exec %s cat %s", NS_TEST, PM_EVENTS);

SYS_NOFAIL("ip netns exec %s killall mptcp_pm_nl_ctl > /dev/null 2>&1", NS_TEST);
SYS_NOFAIL("ip netns exec %s rm -rf %s", NS_TEST, PM_EVENTS);
fail:
;
}

static char *get_events_str(char *type)
Expand Down Expand Up @@ -1230,12 +1234,14 @@ static void test_stale(void)

void test_mptcp(void)
{
#if 1
if (test__start_subtest("base"))
test_base();
if (test__start_subtest("mptcpify"))
test_mptcpify();
if (test__start_subtest("subflow"))
test_subflow();
#endif
if (test__start_subtest("iters_subflow"))
test_iters_subflow();
if (test__start_subtest("iters_entry"))
Expand All @@ -1246,6 +1252,7 @@ void test_mptcp(void)
test_userspace_pm();
if (test__start_subtest("userspace_bpf"))
test_userspace_bpf();
#if 1
if (test__start_subtest("default"))
test_default();
if (test__start_subtest("first"))
Expand All @@ -1260,4 +1267,5 @@ void test_mptcp(void)
test_burst();
if (test__start_subtest("stale"))
test_stale();
#endif
}

0 comments on commit e74da2f

Please sign in to comment.