Home
last modified time | relevance | path

Searched refs:tmp_file (Results 1 – 25 of 37) sorted by relevance

12

/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/
Dext4_nsec_timestamps_test.sh50 touch mnt_point/tmp_file
52 atime=`ext4_file_time mnt_point/tmp_file atime nsec`
53 mtime=`ext4_file_time mnt_point/tmp_file mtime nsec`
54 ctime=`ext4_file_time mnt_point/tmp_file ctime nsec`
85 touch mnt_point/tmp_file
89 touch mnt_point/tmp_file
95 sec_atime=`ext4_file_time mnt_point/tmp_file atime sec`
96 sec_mtime=`ext4_file_time mnt_point/tmp_file mtime sec`
97 sec_ctime=`ext4_file_time mnt_point/tmp_file ctime sec`
98 nsec_atime=`ext4_file_time mnt_point/tmp_file atime nsec`
[all …]
/external/chromium-trace/catapult/common/eslint/eslint/
Dsmoke_test.py27 tmp_file = tempfile.NamedTemporaryFile(
29 tmp_file.write(_TEMP_FILE_CONTENTS)
30 tmp_file.close()
32 success, output = eslint.RunEslint([tmp_file.name])
36 os.remove(tmp_file.name)
/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/
Dext4_online_defrag_test.sh48 touch mnt_point/tmp_file
49 echo "abc" > mnt_point/tmp_file
52 echo "abc" > mnt_point/tmp_dir/tmp_file
73 dest=mnt_point/tmp_dir/tmp_file
75 dest=mnt_point/tmp_file
96 $E4DEFRAG -v mnt_point/tmp_file
/external/ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/
Dext4_inode_version_test.sh51 touch mnt_point/tmp_file
53 version=`ext4_get_inode_version.sh tmp_file`
99 old_version=`ext4_test_inode_version $1 mnt_point/tmp_file tmp_file`
126 version=`ext4_get_inode_version.sh tmp_file`
/external/tensorflow/tensorflow/compiler/xla/
Dparse_flags_from_env_test.cc95 string tmp_file = in TEST() local
97 FILE* fp = fopen(tmp_file.c_str(), "w"); in TEST()
98 CHECK_NE(fp, nullptr) << "can't write to " << tmp_file; in TEST()
103 CHECK_EQ(ferror(fp), 0) << "writes failed to " << tmp_file; in TEST()
106 setenv("TF_XLA_FLAGS", tmp_file.c_str(), true /*overwrite*/); in TEST()
108 unlink(tmp_file.c_str()); in TEST()
/external/python/setuptools/setuptools/tests/
Dtest_upload_docs.py51 tmp_file = os.path.join(tmp_dir, 'foo.zip')
52 zip_file = cmd.create_zipfile(tmp_file)
54 assert zipfile.is_zipfile(tmp_file)
56 with contextlib.closing(zipfile.ZipFile(tmp_file)) as zip_file:
/external/skqp/infra/skqp/
Drun_skqp.sh27 tmp_file="$(mktemp "${TMPDIR:-/tmp}/skqp.XXXXXXXXXX")"
29 adb shell am instrument -w org.skia.skqp | tee "$tmp_file" | fold -s
33 if ! grep -q '^OK ' "$tmp_file"; then
/external/skia/infra/skqp/
Drun_skqp.sh27 tmp_file="$(mktemp "${TMPDIR:-/tmp}/skqp.XXXXXXXXXX")"
29 adb shell am instrument -w org.skia.skqp | tee "$tmp_file" | fold -s
33 if ! grep -q '^OK ' "$tmp_file"; then
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dmain.cc108 char tmp_file[PATH_MAX]; in main() local
111 sprintf(tmp_file, "%s.tmp", out_file); in main()
112 out_stream = fopen(tmp_file, "w"); in main()
133 rename(tmp_file, out_file); in main()
/external/libchrome/base/files/
Dimportant_file_writer.cc166 File tmp_file(tmp_file_path, File::FLAG_OPEN | File::FLAG_WRITE); in WriteFileAtomically() local
167 if (!tmp_file.IsValid()) { in WriteFileAtomically()
170 -tmp_file.error_details(), -base::File::FILE_ERROR_MAX); in WriteFileAtomically()
179 int bytes_written = tmp_file.Write(0, data.data(), data_length); in WriteFileAtomically()
185 bool flush_success = tmp_file.Flush(); in WriteFileAtomically()
186 tmp_file.Close(); in WriteFileAtomically()
/external/perfetto/src/traced/probes/filesystem/
Dfs_mount_unittest.cc55 base::TempFile tmp_file = base::TempFile::Create(); in TEST() local
56 ASSERT_EQ(base::WriteAll(tmp_file.fd(), kMounts, sizeof(kMounts)), in TEST()
59 ParseMounts(tmp_file.path().c_str()); in TEST()
/external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/
Dplatform_DebugDaemonDumpDebugLogs.py19 tmp_file = os.path.join(self.tmp_dir, filename)
21 fh = os.open(tmp_file, os.O_TRUNC | os.O_CREAT | os.O_WRONLY)
29 with tarfile.open(tmp_file, mode) as tar_file:
/external/v8/tools/
Ddisasm.py65 tmp_file = tempfile.NamedTemporaryFile(prefix=".v8code", delete=False)
66 tmp_name = tmp_file.name
67 tmp_file.close()
Dandroid-run.py81 tmp_file = open(fname, "w")
82 tmp_file.write(data)
83 tmp_file.close()
/external/bcc/tools/
Drunqlen.py92 tmp_file = NamedTemporaryFile(delete=False)
93 tmp_file.close();
101 fd = open(tmp_file.name, O_WRONLY)
114 unlink(tmp_file.name)
/external/perfetto/src/tracing/ipc/
Dposix_shared_memory_unittest.cc70 base::TempFile tmp_file = base::TempFile::CreateUnlinked(); in TEST() local
71 const int fd_num = tmp_file.fd(); in TEST()
76 PosixSharedMemory::AttachToFd(tmp_file.ReleaseFD()); in TEST()
/external/autotest/client/common_lib/
Dautotemp_unittest.py25 tmp_file = autotemp.tempfile(unique_id='del')
26 name = tmp_file.name
28 tmp_file.__del__()
/external/autotest/site_utils/lxc/
Dlxc.py69 delete=False) as tmp_file:
73 _download_via_devserver(url, tmp_file.name)
75 _download_via_curl(url, tmp_file.name)
76 common_utils.run('sudo mv %s %s' % (tmp_file.name, target))
/external/puffin/src/
Dutils_unittest.cc89 string tmp_file; in FindDeflatesInZlibBlocks() local
90 ASSERT_TRUE(MakeTempFile(&tmp_file, nullptr)); in FindDeflatesInZlibBlocks()
91 ScopedPathUnlinker unlinker(tmp_file); in FindDeflatesInZlibBlocks()
92 auto src_stream = FileStream::Open(tmp_file, false, true); in FindDeflatesInZlibBlocks()
98 ASSERT_TRUE(LocateDeflatesInZlibBlocks(tmp_file, zlibs, &deflates_out)); in FindDeflatesInZlibBlocks()
/external/autotest/server/site_tests/brillo_StorageWriteSpeedTest/
Dbrillo_StorageWriteSpeedTest.py36 tmp_file = os.path.join(host.get_tmp_dir(), 'testfile')
39 (tmp_file, block_size, num_blocks))
/external/autotest/client/cros/faft/utils/
Dos_interface.py369 tmp_file = self.state_dir_file('part.tmp')
371 partition, tmp_file, size))
372 data = self.read_file(tmp_file)
373 self.remove_file(tmp_file)
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_util_unittest.py187 tmp_file = tempfile.NamedTemporaryFile(delete=False)
188 tmp_file_name = tmp_file.name
189 tmp_file.write('Bad file!')
190 tmp_file.close()
/external/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat_tests.sh313 touch $TEST_DIR/tmp_file
314 chattr +a $TEST_DIR/tmp_file
319 chattr -a $TEST_DIR/tmp_file
/external/autotest/client/bin/input/
Dinput_event_recorder.py160 self.tmp_file = '/tmp/evtest.dat'
209 with open(self.tmp_file, 'w') as output_f:
/external/perfetto/src/tracing/test/
Dtracing_integration_test.cc372 base::TempFile tmp_file = base::TempFile::CreateUnlinked(); in TEST_F() local
374 base::ScopedFile(dup(tmp_file.fd()))); in TEST_F()
416 ASSERT_EQ(0, lseek(tmp_file.fd(), 0, SEEK_SET)); in TEST_F()
418 ssize_t rsize = read(tmp_file.fd(), tmp_buf, sizeof(tmp_buf)); in TEST_F()

12