Home
last modified time | relevance | path

Searched refs:TEST_FILE (Results 1 – 25 of 53) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/readlinkat/
Dreadlinkat01.c50 #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()
Dreadlinkat02.c40 #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/
Dgen_test_cases.sh12 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
Dvb2_rsa_tests.sh15 TEST_FILE=${TESTCASE_DIR}/test_file
26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \
27 ${TEST_FILE}
Drun_rsa_tests.sh15 TEST_FILE=${TESTCASE_DIR}/test_file
26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \
27 ${TEST_FILE}
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat02.c56 #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()
Dopenat01.c51 #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/
Dopen12.c37 #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/
Drenameat201.c45 #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()
Drenameat202.c34 #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/
Dgetxattr04.c50 #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()
Dgetxattr05.c39 #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/
Dima_measurements.sh31 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/
Dllseek03.c47 #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/
Dstatx06.c51 #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/
Dmmapstress04.c30 #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/
Dsysctl.sh23 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/
Dinotify04.c67 #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/
Dlink08.c40 #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/
Dstatfs02.c49 #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/
Dlinkat02.c40 #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/
Dpolicy_ExternalStorageReadOnly.py24 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/
Dcontrol25 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/
Dsplice03.c46 #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/
Dcreat06.c63 #define TEST_FILE "test_dir" macro
90 {TEST_FILE, MODE1, EISDIR, NULL, NULL},
131 SAFE_MKDIR(TEST_FILE, MODE2); in setup()

123