/external/vboot_reference/tests/ |
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
|
run_rsa_tests.sh | 15 TEST_FILE=${TESTCASE_DIR}/test_file 26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \ 27 ${TEST_FILE}
|
vb2_rsa_tests.sh | 15 TEST_FILE=${TESTCASE_DIR}/test_file 26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \ 27 ${TEST_FILE}
|
/external/linux-kselftest/tools/testing/selftests/sysctl/ |
common_tests | 3 TEST_FILE=$(mktemp) 27 trap 'set_orig; rm -f "${TEST_FILE}"' EXIT 32 echo "${TEST_STR}" > "${TEST_FILE}" 33 if ! verify "${TEST_FILE}"; then 72 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null 82 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null 92 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
|
run_stringtests | 15 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null 25 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
|
/external/ltp/testcases/kernel/syscalls/getxattr/ |
getxattr04.c | 50 #define TEST_FILE MNTPOINT "/file" 68 res = getxattr(TEST_FILE, TRUSTED_SMALL, NULL, 0); 98 SAFE_SETXATTR(TEST_FILE, TRUSTED_BIG, big_value, 100 SAFE_REMOVEXATTR(TEST_FILE, TRUSTED_BIG); 111 SAFE_TOUCH(TEST_FILE, 0644, NULL); 116 SAFE_SETXATTR(TEST_FILE, TRUSTED_SMALL, small_value,
|
/external/ltp/testcases/kernel/syscalls/openat/ |
openat01.c | 51 #define TEST_FILE "test_file" 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); 129 snprintf(glob_path, sizeof(glob_path), "%s/" TEST_DIR TEST_FILE,
|
openat02.c | 56 #define TEST_FILE "test_file" 112 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); 114 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE); 121 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); 123 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); 154 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); 242 SAFE_STAT(cleanup, TEST_FILE, &file_stat); 246 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); 257 SAFE_STAT(cleanup, TEST_FILE, &file_newstat) [all...] |
/external/ltp/testcases/kernel/syscalls/readlinkat/ |
readlinkat01.c | 50 #define TEST_FILE "readlink_file" 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); 128 SAFE_SYMLINK(cleanup, TEST_FILE, TEST_SYMLINK);
|
readlinkat02.c | 40 #define TEST_FILE "test_file" 53 {&dir_fd, TEST_FILE, BUFF_SIZE, EINVAL}, 55 {&dir_fd, "test_file/test_file", BUFF_SIZE, ENOTDIR}, 92 file_fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDWR | O_CREAT, 0644); 94 SAFE_SYMLINK(cleanup, TEST_FILE, SYMLINK_FILE);
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
mmapstress04.c | 30 #define TEST_FILE "mmapstress04-testfile" 64 if (tst_fill_file(TEST_FILE, 'b', page_size, 1)) 67 rofd = SAFE_OPEN(TEST_FILE, O_RDONLY | O_CREAT, 0777); 96 rwfd = SAFE_OPEN(TEST_FILE, O_RDWR); 119 SAFE_UNLINK(TEST_FILE);
|
/external/ltp/testcases/kernel/syscalls/renameat2/ |
renameat201.c | 45 #define TEST_FILE "test_file" 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);
|
renameat202.c | 34 #define TEST_FILE "test_file" 67 TEST(renameat2(olddirfd, TEST_FILE, 93 SAFE_TOUCH(cleanup, TEST_DIR TEST_FILE, 0600, NULL); 99 SAFE_FILE_PRINTF(cleanup, TEST_DIR TEST_FILE, "%s", content); 138 emptyfile = TEST_DIR TEST_FILE; 142 contentfile = TEST_DIR TEST_FILE;
|
/external/ltp/testcases/kernel/syscalls/fstat/ |
fstat03.c | 62 #define TEST_FILE "testfile" 139 fildes = open(TEST_FILE, O_RDWR | O_CREAT, 0666); 142 "open(%s, O_RDWR|O_CREAT, 0666) failed", TEST_FILE); 146 TEST_FILE);
|
fstat05.c | 97 #define TEST_FILE "testfile" 215 fildes = open(TEST_FILE, O_RDWR | O_CREAT, 0666); 218 "open(%s, O_RDWR|O_CREAT, 0666) failed", TEST_FILE); 237 TEST_FILE);
|
/external/ltp/testcases/kernel/syscalls/open/ |
open12.c | 37 #define TEST_FILE MNTPOINT"/test_file" 117 SAFE_FILE_PRINTF(cleanup, TEST_FILE, TEST_FILE); 124 TEST(open(TEST_FILE, O_RDWR | O_APPEND, 0777)); 132 SAFE_WRITE(cleanup, 1, TEST_RETURN, TEST_FILE, sizeof(TEST_FILE)); 161 SAFE_STAT(cleanup, TEST_FILE, &old_stat); 165 TEST(open(TEST_FILE, O_RDONLY | O_NOATIME, 0777)); 173 SAFE_STAT(cleanup, TEST_FILE, &new_stat) [all...] |
open02.c | 38 #define TEST_FILE "test_file" 51 {TEST_FILE, O_RDWR, ENOENT},
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
llseek03.c | 47 #define TEST_FILE "testfile" 92 fd = SAFE_CREAT(cleanup, TEST_FILE, 0644); 109 /* reopen TEST_FILE and file offset will be 0 */ 110 fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDONLY); 118 tst_resm(TFAIL | TTERRNO, "llseek failed on %s ", TEST_FILE); 148 /* reopen TEST_FILE and file offset will be 0 */ 149 fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDONLY); 154 tst_resm(TFAIL | TTERRNO, "llseek failed on %s ", TEST_FILE);
|
/external/ltp/testcases/kernel/syscalls/statfs/ |
statfs02.c | 49 #define TEST_FILE "statfs_file" 50 #define TEST_FILE1 TEST_FILE"/statfs_file1" 67 {TEST_FILE, (struct statfs *)-1, EFAULT}, 104 fd = SAFE_CREAT(cleanup, TEST_FILE, 0444);
|
/external/valgrind/memcheck/tests/solaris/ |
sendfilev.c | 12 #define TEST_FILE "sendfile.test" 16 int test_fd = open(TEST_FILE, O_WRONLY | O_CREAT, 0666); 36 test_fd = open(TEST_FILE, O_RDWR, 0666); 86 unlink(TEST_FILE);
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
inotify04.c | 72 #define TEST_FILE "test_file" 132 close(SAFE_CREAT(cleanup, TEST_FILE, 00600)); 142 wd_file = myinotify_add_watch(fd_notify, TEST_FILE, IN_ALL_EVENTS); 146 fd_notify, TEST_FILE); 171 unlink(TEST_FILE); 186 strcpy(event_set[tst_count].name, TEST_FILE);
|
/external/ltp/testcases/kernel/syscalls/link/ |
link08.c | 54 #define TEST_FILE "testfile" 71 {TEST_FILE1, TEST_FILE, EPERM}, 72 {TEST_FILE2, TEST_FILE, EXDEV}, 74 {test_file4, TEST_FILE, ELOOP},
|
/external/autotest/client/site_tests/policy_CookiesAllowedForUrls/ |
policy_CookiesAllowedForUrls.py | 43 self.TEST_FILE = 'cookie_status.html' 44 self.TEST_URL = '%s/%s' % (self.WEB_HOST, self.TEST_FILE)
|
/external/autotest/client/site_tests/policy_CookiesBlockedForUrls/ |
policy_CookiesBlockedForUrls.py | 44 self.TEST_FILE = 'cookie_status.html' 45 self.TEST_URL = '%s/%s' % (self.WEB_HOST, self.TEST_FILE)
|
/external/ltp/testcases/kernel/syscalls/statvfs/ |
statvfs02.c | 37 #define TEST_FILE "statvfs_file" 92 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL);
|