/tools/testing/selftests/kselftest/ |
D | runner.sh | 46 TEST="$2" 49 BASENAME_TEST=$(basename $TEST) 69 if [ ! -e "$TEST" ]; then 70 echo "# Warning: file $TEST is missing!" 74 if [ ! -x "$TEST" ]; then 75 echo "# Warning: file $TEST is not executable" 77 if [ $(head -n 1 "$TEST" | cut -c -2) = "#!" ] 79 interpreter=$(head -n 1 "$TEST" | cut -c 3-) 86 cd `dirname $TEST` > /dev/null 111 for TEST in "$@"; do [all …]
|
/tools/testing/ktest/examples/include/ |
D | tests.conf | 33 TEST_START IF ${TEST} == boot 42 TEST_START IF ${TEST} == build 54 TEST_START ITERATE 10 IF ${TEST} == randconfig 58 TEST = ${RUN_TEST} 63 TEST_START ITERATE 10 IF ${TEST} == randconfig && ${MULTI} 70 TEST_START IF ${TEST} == test 73 TEST = ${RUN_TEST}
|
D | patchcheck.conf | 91 TEST_START IF ${TEST} == patchcheck 94 TEST = ${PATCH_TEST} 101 TEST_START IF ${TEST} == patchcheck && ${MULTI} 104 TEST = ${PATCH_TEST}
|
D | min-config.conf | 47 TEST_START IF ${TEST} == min-config 52 TEST = ${SSH} echo hi 55 TEST_START IF ${TEST} == min-config && ${MULTI}
|
D | bisect.conf | 19 TEST_START IF ${TEST} == bisect 32 TEST = ${RUN_TEST} 82 TEST_START IF ${TEST} == config-bisect
|
D | bootconfig.conf | 43 TEST = ${DO_TEST} 55 TEST = ${DO_TEST} 67 TEST = ${DO_TEST}
|
/tools/testing/selftests/x86/ |
D | test_FCMOV.c | 16 #define TEST(insn) \ macro 33 TEST(fcmovb) 34 TEST(fcmove) 35 TEST(fcmovbe) 36 TEST(fcmovu) 37 TEST(fcmovnb) 38 TEST(fcmovne) 39 TEST(fcmovnbe) 40 TEST(fcmovnu)
|
/tools/testing/selftests/filesystems/fuse/ |
D | fuse_test.c | 63 TEST(fd = s_openat(dir, name, O_CREAT | O_WRONLY, 0777), fd != -1); in create_file() 81 TEST(tp = s_open(s_path(tracing_folder(), s("trace")), in bpf_clear_trace() 97 TEST(tp = s_open(s_path(tracing_folder(), s("trace_pipe")), in bpf_test_trace_maybe() 213 TEST(src_fd = open(ft_src, O_DIRECTORY | O_RDONLY | O_CLOEXEC), in bpf_test_real() 215 TEST(fd = openat(src_fd, test_name, O_CREAT | O_RDWR | O_CLOEXEC, 0777), in bpf_test_real() 255 TEST(src_fd = open(ft_src, O_DIRECTORY | O_RDONLY | O_CLOEXEC), in bpf_test_partial() 266 TEST(filename = concat_file_name(mount_dir, test_name), in bpf_test_partial() 318 TEST(src_fd = open(ft_src, O_DIRECTORY | O_RDONLY | O_CLOEXEC), in bpf_test_attrs() 325 TEST(filename = concat_file_name(mount_dir, test_name), filename); in bpf_test_attrs() 362 TEST(src_fd = open(ft_src, O_DIRECTORY | O_RDONLY | O_CLOEXEC), in bpf_test_readdir() [all …]
|
D | fuse_daemon.c | 37 TEST(pid = fork(), pid != -1); in display_trace() 42 TEST(tp = s_open(s_path(tracing_folder(), s("trace_pipe")), in display_trace() 45 TEST(bytes_read = read(tp, &c, sizeof(c)), in display_trace() 212 TEST(trace_pid = display_trace(), trace_pid != -1); in main() 215 TEST(src_dir = setup_mount_dir("fd-src"), src_dir); in main() 217 TEST(mount_dir = setup_mount_dir("fd-dst"), mount_dir); in main() 222 TEST(src_fd = open("fd-src", O_DIRECTORY | O_RDONLY | O_CLOEXEC), in main()
|
D | bpf_loader.c | 456 TEST(mounts = fopen("/proc/mounts", "re"), mounts); in tracing_folder() 480 TEST(tracing_on = s_open(s_path(tracing_folder(), s("tracing_on")), in tracing_on() 569 TEST(fuse_dev = open("/dev/fuse", O_RDWR | O_CLOEXEC), fuse_dev != -1); in mount_fuse_maybe_init() 658 TEST(*mr = realloc(*mr, ++*map_count * in install_maps() 661 TEST(map_fd = syscall(__NR_bpf, BPF_MAP_CREATE, in install_maps() 732 TEST(last_slash = strrchr(path, '/'), last_slash); in install_elf_bpf() 734 TEST(filter_fd = open(path, O_RDONLY | O_CLOEXEC), filter_fd != -1); in install_elf_bpf() 736 TEST(elf = elf_begin(filter_fd, ELF_C_READ, NULL), elf); in install_elf_bpf() 743 TEST(scn = elf_getscn(elf, i), scn); in install_elf_bpf() 745 TEST(shname = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name), in install_elf_bpf() [all …]
|
/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 84 #define TEST(name, ld_op, st_op, form, ld_reg, st_reg) \ macro 106 #define LOAD_VSX_XFORM_TEST(op) TEST(op, op, stxvd2x, XFORM, 32, 32) 107 #define STORE_VSX_XFORM_TEST(op) TEST(op, lxvd2x, op, XFORM, 32, 32) 108 #define LOAD_VSX_DFORM_TEST(op) TEST(op, op, stxv, DFORM, 32, 32) 109 #define STORE_VSX_DFORM_TEST(op) TEST(op, lxv, op, DFORM, 32, 32) 110 #define LOAD_VMX_XFORM_TEST(op) TEST(op, op, stxvd2x, XFORM, 0, 32) 111 #define STORE_VMX_XFORM_TEST(op) TEST(op, lxvd2x, op, XFORM, 32, 0) 112 #define LOAD_VMX_DFORM_TEST(op) TEST(op, op, stxv, DFORM, 0, 32) 113 #define STORE_VMX_DFORM_TEST(op) TEST(op, lxv, op, DFORM, 32, 0) 115 #define LOAD_XFORM_TEST(op) TEST(op, op, stdx, XFORM, 31, 31) [all …]
|
/tools/testing/selftests/sparc64/ |
D | Makefile | 26 TEST=$$DIR"_test.sh"; \ 27 if [ -e $$DIR/$$TEST ]; then \ 28 rsync -a $$DIR/$$TEST $$BUILD_TARGET/; \
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sk_assign.c | 256 #define TEST(NAME, FAMILY, TYPE, REWRITE) \ macro 272 TEST("ipv4 tcp port redir", AF_INET, SOCK_STREAM, false), in test_sk_assign() 273 TEST("ipv4 tcp addr redir", AF_INET, SOCK_STREAM, true), in test_sk_assign() 274 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign() 275 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign() 276 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 277 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign() 278 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 279 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
|
/tools/testing/selftests/filesystems/incfs/ |
D | incfs_test.c | 76 #define TEST(statement, condition) \ macro 2024 TEST(filename = concat_file_name(mount_dir, file->name), filename); in validate_hash_tree() 2025 TEST(fd = open(filename, O_RDONLY | O_CLOEXEC), fd != -1); in validate_hash_tree() 2026 TEST(buf = malloc(INCFS_DATA_FILE_BLOCK_SIZE * 8), buf); in validate_hash_tree() 2037 TEST(err = ioctl(fd, FS_IOC_READ_VERITY_METADATA, &args), in validate_hash_tree() 2193 TEST(filename = concat_file_name(mount_dir, file->name), filename); in validate_logs() 2194 TEST(fd = open(filename, O_RDONLY | O_CLOEXEC), fd != -1); in validate_logs() 2282 TEST(backing_dir = create_backing_dir(mount_dir), backing_dir); in read_log_test() 2286 TEST(cmd_fd = open_commands_file(mount_dir), cmd_fd != -1); in read_log_test() 2297 TEST(log_fd = open_log_file(mount_dir), log_fd != -1); in read_log_test() [all …]
|
/tools/testing/selftests/ |
D | run_kselftest.sh | 24 -t | --test COLLECTION:TEST Run TEST from COLLECTION
|
/tools/testing/selftests/arm64/pauth/ |
D | pac.c | 196 TEST(corrupt_pac) in TEST() function 218 TEST(pac_instructions_not_nop) in TEST() function 240 TEST(pac_instructions_not_nop_generic) in TEST() function 252 TEST(single_thread_different_keys) in TEST() function 294 TEST(exec_changed_keys) in TEST() function 327 TEST(context_switch_keep_keys) in TEST() function 350 TEST(context_switch_keep_keys_generic) in TEST() function
|
/tools/testing/selftests/landlock/ |
D | base_test.c | 24 TEST(inconsistent_attr) in TEST() function 73 TEST(abi_version) in TEST() function 101 TEST(create_ruleset_checks_ordering) in TEST() function 144 TEST(add_rule_checks_ordering) in TEST() function 191 TEST(restrict_self_checks_ordering) in TEST() function 235 TEST(ruleset_fd_io) in TEST() function 257 TEST(ruleset_fd_transfer) in TEST() function
|
/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 163 TEST(epoll1) in TEST() function 194 TEST(epoll2) in TEST() function 225 TEST(epoll3) in TEST() function 263 TEST(epoll4) in TEST() function 301 TEST(epoll5) in TEST() function 340 TEST(epoll6) in TEST() function 380 TEST(epoll7) in TEST() function 426 TEST(epoll8) in TEST() function 472 TEST(epoll9) in TEST() function 515 TEST(epoll10) in TEST() function [all …]
|
/tools/testing/selftests/syscall_user_dispatch/ |
D | sud_test.c | 82 TEST(bad_prctl_param) in TEST() function 163 TEST(dispatch_and_return) in TEST() function 261 TEST(disable_dispatch) in TEST() function 289 TEST(direct_dispatch_range) in TEST() function
|
/tools/testing/selftests/net/ |
D | reuseaddr_ports_exhausted.c | 81 TEST(reuseaddr_ports_exhausted_unreusable) in TEST() function 101 TEST(reuseaddr_ports_exhausted_reusable_same_euid) in TEST() function 126 TEST(reuseaddr_ports_exhausted_reusable_different_euid) in TEST() function
|
/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 30 TEST(basic_interface) in TEST() function 83 TEST(check_anonymous_locked_pages) in TEST() function 139 TEST(check_huge_pages) in TEST() function 187 TEST(check_file_mmap) in TEST() function 292 TEST(check_tmpfs_mmap) in TEST() function
|
/tools/testing/selftests/ptrace/ |
D | vmaccess.c | 24 TEST(vmaccess) in TEST() function 46 TEST(attach) in TEST() function
|
/tools/testing/selftests/pid_namespace/ |
D | regression_enomem.c | 22 TEST(regression_enomem) in TEST() function
|
/tools/testing/selftests/kexec/ |
D | test_kexec_load.sh | 7 TEST="$0"
|
/tools/testing/selftests/core/ |
D | close_range_test.c | 57 TEST(core_close_range) in TEST() function 116 TEST(close_range_unshare) in TEST() function 205 TEST(close_range_unshare_capped) in TEST() function 248 TEST(close_range_cloexec) in TEST() function 316 TEST(close_range_cloexec_unshare) in TEST() function 390 TEST(close_range_cloexec_syzbot) in TEST() function 472 TEST(close_range_cloexec_unshare_syzbot) in TEST() function
|