From 0875cf66449a9df87b58bf3c15cce218bbaae650 Mon Sep 17 00:00:00 2001 From: Ruihan Li Date: Sat, 21 Jun 2025 23:56:55 +0800 Subject: [PATCH] Move the test framework out --- test/apps/clone3/clone_files.c | 2 +- test/apps/epoll/epoll_err.c | 2 +- test/apps/epoll/poll_err.c | 2 +- test/apps/exit/exit_code.c | 2 +- test/apps/exit/exit_procfs.c | 2 +- test/apps/getcpu/getcpu.c | 2 +- test/apps/mmap/mmap_and_mremap.c | 2 +- test/apps/mmap/mmap_readahead.c | 2 +- test/apps/mmap/mmap_vmrss.c | 2 +- test/apps/network/netlink_route.c | 2 +- test/apps/network/rtnl_err.c | 2 +- test/apps/network/sockoption.c | 2 +- test/apps/network/tcp_err.c | 2 +- test/apps/network/tcp_poll.c | 2 +- test/apps/network/udp_err.c | 2 +- test/apps/network/uevent_err.c | 2 +- test/apps/network/unix_err.c | 2 +- test/apps/pipe/pipe_err.c | 2 +- test/apps/pipe/short_rw.c | 2 +- test/apps/process/group_session.c | 2 +- test/apps/process/job_control.c | 2 +- test/apps/process/wait4.c | 2 +- test/apps/pty/pty_blocking.c | 2 +- test/apps/sched/sched_attr.c | 2 +- test/apps/signal_c/signal_test2.c | 2 +- test/apps/{network => }/test.h | 0 26 files changed, 25 insertions(+), 25 deletions(-) rename test/apps/{network => }/test.h (100%) diff --git a/test/apps/clone3/clone_files.c b/test/apps/clone3/clone_files.c index bfbab342d..0f4d38c5d 100644 --- a/test/apps/clone3/clone_files.c +++ b/test/apps/clone3/clone_files.c @@ -2,7 +2,7 @@ #define _GNU_SOURCE -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/epoll/epoll_err.c b/test/apps/epoll/epoll_err.c index c77ed23ed..e55c1d020 100644 --- a/test/apps/epoll/epoll_err.c +++ b/test/apps/epoll/epoll_err.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/epoll/poll_err.c b/test/apps/epoll/poll_err.c index de9f17296..732b86a54 100644 --- a/test/apps/epoll/poll_err.c +++ b/test/apps/epoll/poll_err.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/exit/exit_code.c b/test/apps/exit/exit_code.c index 51ebde31c..a02899731 100644 --- a/test/apps/exit/exit_code.c +++ b/test/apps/exit/exit_code.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/exit/exit_procfs.c b/test/apps/exit/exit_procfs.c index dc4f00153..1ca0cbed3 100644 --- a/test/apps/exit/exit_procfs.c +++ b/test/apps/exit/exit_procfs.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/getcpu/getcpu.c b/test/apps/getcpu/getcpu.c index 86f9c4586..723c3b8a0 100644 --- a/test/apps/getcpu/getcpu.c +++ b/test/apps/getcpu/getcpu.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/mmap/mmap_and_mremap.c b/test/apps/mmap/mmap_and_mremap.c index aeee8accc..5ad0ac428 100644 --- a/test/apps/mmap/mmap_and_mremap.c +++ b/test/apps/mmap/mmap_and_mremap.c @@ -6,7 +6,7 @@ #include #include -#include "../network/test.h" +#include "../test.h" #define PAGE_SIZE 4096 diff --git a/test/apps/mmap/mmap_readahead.c b/test/apps/mmap/mmap_readahead.c index 253b1fbdf..60e93eb69 100644 --- a/test/apps/mmap/mmap_readahead.c +++ b/test/apps/mmap/mmap_readahead.c @@ -4,7 +4,7 @@ #include #include -#include "../network/test.h" +#include "../test.h" #define FILE_NAME "/tmp/mmap_readahead.txt" diff --git a/test/apps/mmap/mmap_vmrss.c b/test/apps/mmap/mmap_vmrss.c index e71d341f7..80a6feaf1 100644 --- a/test/apps/mmap/mmap_vmrss.c +++ b/test/apps/mmap/mmap_vmrss.c @@ -2,7 +2,7 @@ #define _GNU_SOURCE -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/network/netlink_route.c b/test/apps/network/netlink_route.c index 9a80e62f1..66265a9d4 100644 --- a/test/apps/network/netlink_route.c +++ b/test/apps/network/netlink_route.c @@ -4,7 +4,7 @@ #include #include -#include "test.h" +#include "../test.h" #define ETHER_NAME "eth0" #define LOOPBACK_NAME "lo" diff --git a/test/apps/network/rtnl_err.c b/test/apps/network/rtnl_err.c index c2a314888..610a6bb08 100644 --- a/test/apps/network/rtnl_err.c +++ b/test/apps/network/rtnl_err.c @@ -3,7 +3,7 @@ #include #include -#include "test.h" +#include "../test.h" static struct sockaddr_nl sk_addr = { .nl_family = AF_NETLINK }; diff --git a/test/apps/network/sockoption.c b/test/apps/network/sockoption.c index 52f696c41..e58187dbd 100644 --- a/test/apps/network/sockoption.c +++ b/test/apps/network/sockoption.c @@ -7,7 +7,7 @@ #include #include #include -#include "test.h" +#include "../test.h" int sk_unbound; int sk_listen; diff --git a/test/apps/network/tcp_err.c b/test/apps/network/tcp_err.c index 9d7ebb7f4..1aeba254f 100644 --- a/test/apps/network/tcp_err.c +++ b/test/apps/network/tcp_err.c @@ -8,7 +8,7 @@ #include #include -#include "test.h" +#include "../test.h" static struct sockaddr_in sk_addr; diff --git a/test/apps/network/tcp_poll.c b/test/apps/network/tcp_poll.c index b52720116..dacbc8040 100644 --- a/test/apps/network/tcp_poll.c +++ b/test/apps/network/tcp_poll.c @@ -11,7 +11,7 @@ #include #include -#include "test.h" +#include "../test.h" #define S_PORT htons(0x1238) diff --git a/test/apps/network/udp_err.c b/test/apps/network/udp_err.c index bf04bde09..83450e881 100644 --- a/test/apps/network/udp_err.c +++ b/test/apps/network/udp_err.c @@ -8,7 +8,7 @@ #include #include -#include "test.h" +#include "../test.h" static struct sockaddr_in sk_addr; diff --git a/test/apps/network/uevent_err.c b/test/apps/network/uevent_err.c index 6d7d3eb65..26c0ba2a1 100644 --- a/test/apps/network/uevent_err.c +++ b/test/apps/network/uevent_err.c @@ -4,7 +4,7 @@ #include #include -#include "test.h" +#include "../test.h" static struct sockaddr_nl sk_addr = { .nl_family = AF_NETLINK }; diff --git a/test/apps/network/unix_err.c b/test/apps/network/unix_err.c index 7c3fe06f1..a0acfdcb9 100644 --- a/test/apps/network/unix_err.c +++ b/test/apps/network/unix_err.c @@ -11,7 +11,7 @@ #include #include -#include "test.h" +#include "../test.h" FN_SETUP(general) { diff --git a/test/apps/pipe/pipe_err.c b/test/apps/pipe/pipe_err.c index 2460cb3a9..678848942 100644 --- a/test/apps/pipe/pipe_err.c +++ b/test/apps/pipe/pipe_err.c @@ -2,7 +2,7 @@ #define _GNU_SOURCE -#include "../network/test.h" +#include "../test.h" #include #include #include diff --git a/test/apps/pipe/short_rw.c b/test/apps/pipe/short_rw.c index dfea4d129..82f0ca441 100644 --- a/test/apps/pipe/short_rw.c +++ b/test/apps/pipe/short_rw.c @@ -4,7 +4,7 @@ #include #include -#include "../network/test.h" +#include "../test.h" #define PAGE_SIZE 4096 diff --git a/test/apps/process/group_session.c b/test/apps/process/group_session.c index 9897b01b4..8103c7e4d 100644 --- a/test/apps/process/group_session.c +++ b/test/apps/process/group_session.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/process/job_control.c b/test/apps/process/job_control.c index a97e160c6..2a5884aad 100644 --- a/test/apps/process/job_control.c +++ b/test/apps/process/job_control.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/process/wait4.c b/test/apps/process/wait4.c index 5246ff5ee..cc64eefbb 100644 --- a/test/apps/process/wait4.c +++ b/test/apps/process/wait4.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/pty/pty_blocking.c b/test/apps/pty/pty_blocking.c index e227ca4bc..a0ee670ff 100644 --- a/test/apps/pty/pty_blocking.c +++ b/test/apps/pty/pty_blocking.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/sched/sched_attr.c b/test/apps/sched/sched_attr.c index 9e2885c30..8960193f6 100644 --- a/test/apps/sched/sched_attr.c +++ b/test/apps/sched/sched_attr.c @@ -2,7 +2,7 @@ #define _GNU_SOURCE -#include "../network/test.h" +#include "../test.h" #include #include #include diff --git a/test/apps/signal_c/signal_test2.c b/test/apps/signal_c/signal_test2.c index e004cef57..648fc6a08 100644 --- a/test/apps/signal_c/signal_test2.c +++ b/test/apps/signal_c/signal_test2.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 -#include "../network/test.h" +#include "../test.h" #include #include diff --git a/test/apps/network/test.h b/test/apps/test.h similarity index 100% rename from test/apps/network/test.h rename to test/apps/test.h