/tools/testing/selftests/kselftest/ |
D | runner.sh | 49 TEST="$2" 52 BASENAME_TEST=$(basename $TEST) 105 if [ ! -e "$TEST" ]; then 106 echo "# Warning: file $TEST is missing!" 114 if [ ! -x "$TEST" ]; then 115 echo "# Warning: file $TEST is not executable" 117 if [ $(head -n 1 "$TEST" | cut -c -2) = "#!" ] 119 interpreter=$(head -n 1 "$TEST" | cut -c 3-) 126 cd `dirname $TEST` > /dev/null 151 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/bpf/progs/ |
D | map_kptr.c | 197 #define TEST(map) \ in test_map_kptr() macro 203 TEST(array_map); in test_map_kptr() 204 TEST(hash_map); in test_map_kptr() 205 TEST(hash_malloc_map); in test_map_kptr() 206 TEST(lru_hash_map); in test_map_kptr() 208 #undef TEST in test_map_kptr() 271 #define TEST(map_in_map) \ in test_map_in_map_kptr() macro 280 TEST(array_of_array_maps); in test_map_in_map_kptr() 281 TEST(array_of_hash_maps); in test_map_in_map_kptr() 282 TEST(array_of_hash_malloc_maps); in test_map_in_map_kptr() [all …]
|
/tools/testing/selftests/mm/ |
D | khugepaged.c | 1218 #define TEST(t, c, o) do { \ in main() macro 1225 TEST(collapse_full, khugepaged_context, anon_ops); in main() 1226 TEST(collapse_full, khugepaged_context, file_ops); in main() 1227 TEST(collapse_full, khugepaged_context, shmem_ops); in main() 1228 TEST(collapse_full, madvise_context, anon_ops); in main() 1229 TEST(collapse_full, madvise_context, file_ops); in main() 1230 TEST(collapse_full, madvise_context, shmem_ops); in main() 1232 TEST(collapse_empty, khugepaged_context, anon_ops); in main() 1233 TEST(collapse_empty, madvise_context, anon_ops); in main() 1235 TEST(collapse_single_pte_entry, khugepaged_context, anon_ops); in main() [all …]
|
/tools/perf/tests/shell/coresight/ |
D | thread_loop_check_tid_2.sh | 7 TEST="thread_loop" 11 DATA="$DATD/perf-$TEST-$DATV.data" 12 STDO="$DATD/perf-$TEST-$DATV.stdout"
|
D | thread_loop_check_tid_10.sh | 7 TEST="thread_loop" 11 DATA="$DATD/perf-$TEST-$DATV.data" 12 STDO="$DATD/perf-$TEST-$DATV.stdout"
|
D | unroll_loop_thread_10.sh | 7 TEST="unroll_loop_thread" 11 DATA="$DATD/perf-$TEST-$DATV.data"
|
D | memcpy_thread_16k_10.sh | 7 TEST="memcpy_thread" 11 DATA="$DATD/perf-$TEST-$DATV.data"
|
D | asm_pure_loop.sh | 7 TEST="asm_pure_loop" 11 DATA="$DATD/perf-$TEST-$DATV.data"
|
/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/bpf/prog_tests/ |
D | linked_list.c | 17 #define TEST(test, off) \ macro 26 TEST(kptr, 40) 27 TEST(global, 16) 28 TEST(map, 0) 29 TEST(inner_map, 0) 30 #undef TEST 31 #define TEST(test, op) \ macro 44 TEST(kptr, push_front) 45 TEST(kptr, push_back) 46 TEST(kptr, pop_front) [all …]
|
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/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/cgroup/ |
D | test_cpuset_prs.sh | 537 TEST=$1 541 eval CNT="\${#$TEST[@]}" 551 eval set -- "\${$TEST[$I]}" 577 echo "Test $TEST[$I] failed result check!" 578 eval echo \"\${$TEST[$I]}\" 586 echo "Test $TEST[$I] failed effective CPU check!" 587 eval echo \"\${$TEST[$I]}\" 597 echo "FAILED: Test $TEST[$I] failed states check!" 598 eval echo \"\${$TEST[$I]}\" 618 echo "All $I tests of $TEST PASSED."
|
/tools/testing/selftests/filesystems/incfs/ |
D | incfs_test.c | 78 #define TEST(statement, condition) \ macro 2019 TEST(filename = concat_file_name(mount_dir, file->name), filename); in validate_hash_tree() 2020 TEST(fd = open(filename, O_RDONLY | O_CLOEXEC), fd != -1); in validate_hash_tree() 2021 TEST(buf = malloc(INCFS_DATA_FILE_BLOCK_SIZE * 8), buf); in validate_hash_tree() 2032 TEST(err = ioctl(fd, FS_IOC_READ_VERITY_METADATA, &args), in validate_hash_tree() 2188 TEST(filename = concat_file_name(mount_dir, file->name), filename); in validate_logs() 2189 TEST(fd = open(filename, O_RDONLY | O_CLOEXEC), fd != -1); in validate_logs() 2277 TEST(backing_dir = create_backing_dir(mount_dir), backing_dir); in read_log_test() 2281 TEST(cmd_fd = open_commands_file(mount_dir), cmd_fd != -1); in read_log_test() 2292 TEST(log_fd = open_log_file(mount_dir), log_fd != -1); in read_log_test() [all …]
|
/tools/perf/tests/shell/lib/ |
D | coresight.sh | 16 DIR="$TOOLS/$TEST" 17 BIN="$DIR/$TEST" 76 STATF="$STATD/stats-$TEST-$DATV.csv"
|
/tools/testing/selftests/ |
D | run_kselftest.sh | 24 -t | --test COLLECTION:TEST Run TEST from COLLECTION
|