Home
last modified time | relevance | path

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

12

/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/zstd/zlibWrapper/
DMakefile19 TEST_FILE = ../doc/zstd_compression_format.md macro
51 ./fitblk 10240 <$(TEST_FILE)
52 ./fitblk 40960 <$(TEST_FILE)
53 ./fitblk_zstd 10240 <$(TEST_FILE)
54 ./fitblk_zstd 40960 <$(TEST_FILE)
63 ./zwrapbench -qi1b3B1K $(TEST_FILE)
72 $(VALGRIND) ./fitblk 10240 <$(TEST_FILE)
73 $(VALGRIND) ./fitblk 40960 <$(TEST_FILE)
74 $(VALGRIND) ./fitblk_zstd 10240 <$(TEST_FILE)
75 $(VALGRIND) ./fitblk_zstd 40960 <$(TEST_FILE)
[all …]
/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.c38 #define TEST_FILE MNTPOINT "/file" macro
56 res = getxattr(TEST_FILE, TRUSTED_SMALL, NULL, 0); in loop_getxattr()
86 SAFE_SETXATTR(TEST_FILE, TRUSTED_BIG, big_value, in verify_getxattr()
88 SAFE_REMOVEXATTR(TEST_FILE, TRUSTED_BIG); in verify_getxattr()
99 SAFE_TOUCH(TEST_FILE, 0644, NULL); in setup()
104 SAFE_SETXATTR(TEST_FILE, TRUSTED_SMALL, small_value, in setup()
Dgetxattr05.c39 #define TEST_FILE "testfile" macro
64 res1 = SAFE_GETXATTR(TEST_FILE, "system.posix_acl_access", in verify_getxattr()
66 res2 = SAFE_GETXATTR(TEST_FILE, "system.posix_acl_access", in verify_getxattr()
137 SAFE_TOUCH(TEST_FILE, 0644, NULL); in setup()
143 res = acl_set_file(TEST_FILE, ACL_TYPE_ACCESS, acl); in setup()
148 tst_brk(TBROK | TERRNO, "acl_set_file(%s) failed", TEST_FILE); in setup()
/external/autotest/client/site_tests/policy_ExternalStorageReadOnly/
Dpolicy_ExternalStorageReadOnly.py24 TEST_FILE = os.path.join(TEST_DIR, 'test') variable in policy_ExternalStorageReadOnly
29 os.remove(self.TEST_FILE)
52 if os.path.isfile(self.TEST_FILE):
54 utils.run('touch %s' % self.TEST_FILE, ignore_status=True)
55 if policy_value and os.path.isfile(self.TEST_FILE):
58 elif not policy_value and not os.path.isfile(self.TEST_FILE):
/external/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_measurements.sh20 TEST_FILE="$PWD/test.txt"
89 cat $TEST_FILE > /dev/null
91 line="$(grep $TEST_FILE $ASCII_MEASUREMENTS | tail -1)"
93 tst_res TFAIL "cannot find measurement record for '$TEST_FILE'"
126 expected_digest="$(compute_digest $algorithm $TEST_FILE)" || \
170 ROD echo "$(date) this is a test file" \> $TEST_FILE
179 ROD echo "$(date) modified file" \> $TEST_FILE
/external/ltp/testcases/kernel/syscalls/statx/
Dstatx06.c50 #define TEST_FILE MOUNT_POINT"/test_file.txt" macro
77 SAFE_UNLINK(TEST_FILE); in create_file()
79 fd = SAFE_OPEN(TEST_FILE, O_CREAT | O_RDWR, 0666); in create_file()
98 SAFE_CHMOD(TEST_FILE, 0777); in change_mode()
130 TEST(statx(AT_FDCWD, TEST_FILE, 0, STATX_ALL, &buff)); in test_statx()
134 TEST_FILE); in test_statx()
/external/linux-kselftest/tools/testing/selftests/sysctl/
Dsysctl.sh23 TEST_FILE=$(mktemp)
220 rm -f "${TEST_FILE}"
235 echo "${TEST_STR}" > "${TEST_FILE}"
236 if ! verify "${TEST_FILE}"; then
275 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
285 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null
295 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
561 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null
571 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
667 TEST_FILE=$(mktemp)
[all …]
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress04.c18 #define TEST_FILE "mmapstress04-testfile" macro
52 if (tst_fill_file(TEST_FILE, 'b', page_size, 1)) in mmapstress04()
55 rofd = SAFE_OPEN(TEST_FILE, O_RDONLY | O_CREAT, 0777); in mmapstress04()
84 rwfd = SAFE_OPEN(TEST_FILE, O_RDWR); in mmapstress04()
107 SAFE_UNLINK(TEST_FILE); in mmapstress04()
/external/ltp/testcases/kernel/syscalls/link/
Dlink08.c27 #define TEST_FILE "testfile" macro
40 {TEST_FILE1, TEST_FILE, EPERM},
41 {TEST_FILE2, TEST_FILE, EXDEV},
43 {test_file4, TEST_FILE, ELOOP},
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorSeekTest.java44 private static final String TEST_FILE = "ts/bbb_2500ms.ts"; field in TsExtractorSeekTest
60 new TsExtractor(), ApplicationProvider.getApplicationContext(), TEST_FILE) in setUp()
71 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
86 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
105 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
125 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
147 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingForward_extractsCorrectFrame()
169 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesRandomSeeks_extractsCorrectFrame()
192 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesRandomSeeksAfterReadingFileOnce_extractsCorrectFrame()
DAdtsExtractorSeekTest.java42 private static final String TEST_FILE = "ts/sample.adts"; field in AdtsExtractorSeekTest
58 String fileName = TEST_FILE; in adtsExtractorReads_returnSeekableSeekMap()
77 String fileName = TEST_FILE; in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
103 String fileName = TEST_FILE; in seeking_handlesSeekToEoF_extractsLastSample()
129 String fileName = TEST_FILE; in seeking_handlesSeekingBackward_extractsCorrectSamples()
157 String fileName = TEST_FILE; in seeking_handlesSeekingForward_extractsCorrectSamples()
185 String fileName = TEST_FILE; in seeking_handlesRandomSeeks_extractsCorrectSamples()
/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/llseek/
Dllseek03.c24 #define TEST_FILE "testfile" macro
31 fd = SAFE_CREAT(TEST_FILE, 0644); in setup()
81 fd = SAFE_OPEN(TEST_FILE, O_RDONLY); in verify_lseek64()
88 tst_res(TFAIL | TTERRNO, "llseek failed on %s ", TEST_FILE); in verify_lseek64()
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify04.c45 #define TEST_FILE "test_file" macro
85 close(SAFE_CREAT(TEST_FILE, 00600)); in verify_inotify()
90 wd_file = SAFE_MYINOTIFY_ADD_WATCH(fd_notify, TEST_FILE, IN_ALL_EVENTS); in verify_inotify()
103 SAFE_UNLINK(TEST_FILE); in verify_inotify()
120 strcpy(event_set[test_cnt].name, TEST_FILE); in verify_inotify()
/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()

12