/external/ltp/testcases/kernel/syscalls/readlinkat/ |
D | readlinkat01.c | 50 #define TEST_FILE "readlink_file" macro 61 {&dir_fd, TEST_SYMLINK, TEST_FILE, sizeof(TEST_FILE)-1, 0}, 62 {&dir_fd, abspath, TEST_FILE, sizeof(TEST_FILE)-1, 0}, 65 {&fd_atcwd, TEST_SYMLINK, TEST_FILE, sizeof(TEST_FILE)-1, 0}, 127 fd = SAFE_OPEN(cleanup, TEST_FILE, O_CREAT, 0600); in setup() 128 SAFE_SYMLINK(cleanup, TEST_FILE, TEST_SYMLINK); in setup()
|
D | readlinkat02.c | 40 #define TEST_FILE "test_file" macro 53 {&dir_fd, TEST_FILE, BUFF_SIZE, EINVAL}, 92 file_fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDWR | O_CREAT, 0644); in setup() 94 SAFE_SYMLINK(cleanup, TEST_FILE, SYMLINK_FILE); in setup()
|
/external/vboot_reference/tests/ |
D | gen_test_cases.sh | 12 TEST_FILE=${TESTCASE_DIR}/test_file 24 openssl dgst -${hashalgo} -binary ${TEST_FILE} > \ 25 ${TEST_FILE}.${hashalgo}.digest 27 ${TEST_FILE} | openssl rsautl \ 29 > ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig 38 dd if=/dev/urandom of=${TEST_FILE} bs=${TEST_FILE_SIZE} count=1
|
D | vb2_rsa_tests.sh | 15 TEST_FILE=${TESTCASE_DIR}/test_file 26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \ 27 ${TEST_FILE}
|
D | run_rsa_tests.sh | 15 TEST_FILE=${TESTCASE_DIR}/test_file 26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \ 27 ${TEST_FILE}
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 56 #define TEST_FILE "test_file" macro 112 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in setup() 114 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE); in setup() 121 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in testfunc_append() 123 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); in testfunc_append() 154 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); in testfunc_cloexec() 241 SAFE_STAT(cleanup, TEST_FILE, &file_stat); in testfunc_noatime() 245 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); in testfunc_noatime() 256 SAFE_STAT(cleanup, TEST_FILE, &file_newstat); in testfunc_noatime() 280 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777)); in testfunc_trunc()
|
D | openat01.c | 51 #define TEST_FILE "test_file" macro 62 {&dir_fd, TEST_FILE, 0, 0}, 64 {&fd, TEST_FILE, -1, ENOTDIR}, 65 {&fd_invalid, TEST_FILE, -1, EBADF}, 66 {&fd_atcwd, TEST_DIR TEST_FILE, 0, 0} 126 fd = SAFE_OPEN(cleanup, TEST_DIR TEST_FILE, O_CREAT | O_RDWR, 0600); in setup() 129 snprintf(glob_path, sizeof(glob_path), "%s/" TEST_DIR TEST_FILE, in setup()
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open12.c | 37 #define TEST_FILE MNTPOINT"/test_file" macro 117 SAFE_FILE_PRINTF(cleanup, TEST_FILE, TEST_FILE); in setup() 124 TEST(open(TEST_FILE, O_RDWR | O_APPEND, 0777)); in test_append() 132 SAFE_WRITE(cleanup, 1, TEST_RETURN, TEST_FILE, sizeof(TEST_FILE)); in test_append() 161 SAFE_STAT(cleanup, TEST_FILE, &old_stat); in test_noatime() 165 TEST(open(TEST_FILE, O_RDONLY | O_NOATIME, 0777)); in test_noatime() 173 SAFE_STAT(cleanup, TEST_FILE, &new_stat); in test_noatime() 194 TEST(open(TEST_FILE, O_RDWR | O_APPEND | O_CLOEXEC, 0777)); in test_cloexec()
|
/external/ltp/testcases/kernel/syscalls/renameat2/ |
D | renameat201.c | 45 #define TEST_FILE "test_file" macro 64 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_NOREPLACE, EEXIST}, 65 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_EXCHANGE, 0}, 66 {&olddirfd, TEST_FILE, &newdirfd, NON_EXIST, RENAME_EXCHANGE, ENOENT}, 67 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE3, RENAME_NOREPLACE, 0}, 68 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_NOREPLACE 70 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_WHITEOUT 115 SAFE_TOUCH(cleanup, TEST_DIR TEST_FILE, 0600, NULL); in setup()
|
D | renameat202.c | 34 #define TEST_FILE "test_file" macro 67 TEST(renameat2(olddirfd, TEST_FILE, in main() 93 SAFE_TOUCH(cleanup, TEST_DIR TEST_FILE, 0600, NULL); in setup() 99 SAFE_FILE_PRINTF(cleanup, TEST_DIR TEST_FILE, "%s", content); in setup() 138 emptyfile = TEST_DIR TEST_FILE; in renameat2_verify() 142 contentfile = TEST_DIR TEST_FILE; in renameat2_verify()
|
/external/ltp/testcases/kernel/syscalls/getxattr/ |
D | getxattr04.c | 50 #define TEST_FILE MNTPOINT "/file" macro 68 res = getxattr(TEST_FILE, TRUSTED_SMALL, NULL, 0); in loop_getxattr() 98 SAFE_SETXATTR(TEST_FILE, TRUSTED_BIG, big_value, in verify_getxattr() 100 SAFE_REMOVEXATTR(TEST_FILE, TRUSTED_BIG); in verify_getxattr() 111 SAFE_TOUCH(TEST_FILE, 0644, NULL); in setup() 116 SAFE_SETXATTR(TEST_FILE, TRUSTED_SMALL, small_value, in setup()
|
D | getxattr05.c | 39 #define TEST_FILE "testfile" macro 62 res1 = SAFE_GETXATTR(TEST_FILE, "system.posix_acl_access", in verify_getxattr() 64 res2 = SAFE_GETXATTR(TEST_FILE, "system.posix_acl_access", in verify_getxattr() 130 SAFE_TOUCH(TEST_FILE, 0644, NULL); in setup() 136 res = acl_set_file(TEST_FILE, ACL_TYPE_ACCESS, acl); in setup() 141 tst_brk(TBROK | TERRNO, "acl_set_file(%s) failed", TEST_FILE); in setup()
|
/external/ltp/testcases/kernel/security/integrity/ima/tests/ |
D | ima_measurements.sh | 31 TEST_FILE="$PWD/test.txt" 103 cat $TEST_FILE > /dev/null 105 line="$(grep $TEST_FILE $ASCII_MEASUREMENTS | tail -1)" 107 tst_res TFAIL "cannot find measurement record for '$TEST_FILE'" 140 expected_digest="$(compute_digest $algorithm $TEST_FILE)" || \ 184 ROD echo "$(date) this is a test file" \> $TEST_FILE 193 ROD echo "$(date) modified file" \> $TEST_FILE
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek03.c | 47 #define TEST_FILE "testfile" macro 92 fd = SAFE_CREAT(cleanup, TEST_FILE, 0644); in setup() 110 fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDONLY); in testfunc_seekcur() 118 tst_resm(TFAIL | TTERRNO, "llseek failed on %s ", TEST_FILE); in testfunc_seekcur() 149 fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDONLY); in testfunc_seekend() 154 tst_resm(TFAIL | TTERRNO, "llseek failed on %s ", TEST_FILE); in testfunc_seekend()
|
/external/ltp/testcases/kernel/syscalls/statx/ |
D | statx06.c | 51 #define TEST_FILE MOUNT_POINT"/test_file.txt" macro 78 SAFE_UNLINK(TEST_FILE); in create_file() 80 fd = SAFE_OPEN(TEST_FILE, O_CREAT | O_RDWR, 0666); in create_file() 99 SAFE_CHMOD(TEST_FILE, 0777); in change_mode() 131 TEST(statx(AT_FDCWD, TEST_FILE, 0, STATX_ALL, &buff)); in test_statx() 135 TEST_FILE); in test_statx()
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress04.c | 30 #define TEST_FILE "mmapstress04-testfile" macro 64 if (tst_fill_file(TEST_FILE, 'b', page_size, 1)) in mmapstress04() 67 rofd = SAFE_OPEN(TEST_FILE, O_RDONLY | O_CREAT, 0777); in mmapstress04() 96 rwfd = SAFE_OPEN(TEST_FILE, O_RDWR); in mmapstress04() 119 SAFE_UNLINK(TEST_FILE); in mmapstress04()
|
/external/linux-kselftest/tools/testing/selftests/sysctl/ |
D | sysctl.sh | 23 TEST_FILE=$(mktemp) 197 rm -f "${TEST_FILE}" 212 echo "${TEST_STR}" > "${TEST_FILE}" 213 if ! verify "${TEST_FILE}"; then 252 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null 262 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null 272 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null 486 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null 496 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify04.c | 67 #define TEST_FILE "test_file" macro 116 close(SAFE_CREAT(TEST_FILE, 00600)); in verify_inotify() 126 wd_file = myinotify_add_watch(fd_notify, TEST_FILE, IN_ALL_EVENTS); in verify_inotify() 130 fd_notify, TEST_FILE); in verify_inotify() 143 SAFE_UNLINK(TEST_FILE); in verify_inotify() 160 strcpy(event_set[test_cnt].name, TEST_FILE); in verify_inotify()
|
/external/ltp/testcases/kernel/syscalls/link/ |
D | link08.c | 40 #define TEST_FILE "testfile" macro 53 {TEST_FILE1, TEST_FILE, EPERM}, 54 {TEST_FILE2, TEST_FILE, EXDEV}, 56 {test_file4, TEST_FILE, ELOOP},
|
/external/ltp/testcases/kernel/syscalls/statfs/ |
D | statfs02.c | 49 #define TEST_FILE "statfs_file" macro 50 #define TEST_FILE1 TEST_FILE"/statfs_file1" 67 {TEST_FILE, (struct statfs *)-1, EFAULT}, 104 fd = SAFE_CREAT(cleanup, TEST_FILE, 0444); in setup()
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat02.c | 40 #define TEST_FILE "testfile" macro 71 {TEST_FILE, nametoolong, 0, ENAMETOOLONG, NULL, NULL}, 72 {nametoolong, TEST_FILE, 0, ENAMETOOLONG, NULL, NULL}, 74 {TEST_ELOOP, TEST_FILE, AT_SYMLINK_FOLLOW, ELOOP, NULL, NULL}, 161 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL); in setup()
|
/external/autotest/client/site_tests/policy_ExternalStorageReadOnly/ |
D | policy_ExternalStorageReadOnly.py | 24 TEST_FILE = os.path.join(os.sep, 'media', 'removable', 'STATE', 'test') variable in policy_ExternalStorageReadOnly 29 os.remove(self.TEST_FILE) 52 return_code = utils.run('touch %s' % self.TEST_FILE)
|
/external/autotest/client/site_tests/audio_SeekAudioFeedback/ |
D | control | 25 TEST_FILE = 'audio_SeekAudioFeedbackaudio.mp3' 27 constraints = ['%s_rms_value > 0.001' % TEST_FILE.replace('.', '_') ] 30 test_file=TEST_FILE,
|
/external/ltp/testcases/kernel/syscalls/splice/ |
D | splice03.c | 46 #define TEST_FILE "testfile" macro 78 SAFE_FILE_PRINTF(TEST_FILE, STR); in setup() 79 rdfd = SAFE_OPEN(TEST_FILE, O_RDONLY); in setup()
|
/external/ltp/testcases/kernel/syscalls/creat/ |
D | creat06.c | 63 #define TEST_FILE "test_dir" macro 90 {TEST_FILE, MODE1, EISDIR, NULL, NULL}, 131 SAFE_MKDIR(TEST_FILE, MODE2); in setup()
|