Move the test framework out

This commit is contained in:
Ruihan Li
2025-06-21 23:56:55 +08:00
committed by Jianfeng Jiang
parent 6af39b2d30
commit 0875cf6644
26 changed files with 25 additions and 25 deletions

View File

@ -2,7 +2,7 @@
#define _GNU_SOURCE
#include "../network/test.h"
#include "../test.h"
#include <fcntl.h>
#include <sched.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <unistd.h>
#include <sys/epoll.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <unistd.h>
#include <sys/poll.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <pthread.h>
#include <unistd.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <unistd.h>
#include <pthread.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <sys/syscall.h>
#include <unistd.h>

View File

@ -6,7 +6,7 @@
#include <unistd.h>
#include <string.h>
#include "../network/test.h"
#include "../test.h"
#define PAGE_SIZE 4096

View File

@ -4,7 +4,7 @@
#include <sys/fcntl.h>
#include <unistd.h>
#include "../network/test.h"
#include "../test.h"
#define FILE_NAME "/tmp/mmap_readahead.txt"

View File

@ -2,7 +2,7 @@
#define _GNU_SOURCE
#include "../network/test.h"
#include "../test.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -4,7 +4,7 @@
#include <netlink/route/addr.h>
#include <unistd.h>
#include "test.h"
#include "../test.h"
#define ETHER_NAME "eth0"
#define LOOPBACK_NAME "lo"

View File

@ -3,7 +3,7 @@
#include <netlink/netlink.h>
#include <unistd.h>
#include "test.h"
#include "../test.h"
static struct sockaddr_nl sk_addr = { .nl_family = AF_NETLINK };

View File

@ -7,7 +7,7 @@
#include <netinet/tcp.h>
#include <unistd.h>
#include <arpa/inet.h>
#include "test.h"
#include "../test.h"
int sk_unbound;
int sk_listen;

View File

@ -8,7 +8,7 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include "test.h"
#include "../test.h"
static struct sockaddr_in sk_addr;

View File

@ -11,7 +11,7 @@
#include <fcntl.h>
#include <stddef.h>
#include "test.h"
#include "../test.h"
#define S_PORT htons(0x1238)

View File

@ -8,7 +8,7 @@
#include <arpa/inet.h>
#include <fcntl.h>
#include "test.h"
#include "../test.h"
static struct sockaddr_in sk_addr;

View File

@ -4,7 +4,7 @@
#include <unistd.h>
#include <sys/socket.h>
#include "test.h"
#include "../test.h"
static struct sockaddr_nl sk_addr = { .nl_family = AF_NETLINK };

View File

@ -11,7 +11,7 @@
#include <unistd.h>
#include <stddef.h>
#include "test.h"
#include "../test.h"
FN_SETUP(general)
{

View File

@ -2,7 +2,7 @@
#define _GNU_SOURCE
#include "../network/test.h"
#include "../test.h"
#include <signal.h>
#include <string.h>
#include <sys/poll.h>

View File

@ -4,7 +4,7 @@
#include <sys/mman.h>
#include <stdio.h>
#include "../network/test.h"
#include "../test.h"
#define PAGE_SIZE 4096

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <unistd.h>
#include <sys/wait.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <unistd.h>
#include <pty.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <pthread.h>
#include <pty.h>

View File

@ -2,7 +2,7 @@
#define _GNU_SOURCE
#include "../network/test.h"
#include "../test.h"
#include <signal.h>
#include <string.h>
#include <sys/poll.h>

View File

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MPL-2.0
#include "../network/test.h"
#include "../test.h"
#include <unistd.h>
#include <signal.h>