Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 25 of 193) sorted by relevance

12345678

/external/rust/crates/tempfile/tests/
Dnamedtempfile.rs15 let mut tmpfile = NamedTempFile::new().unwrap(); in test_basic() localVariable
16 write!(tmpfile, "abcde").unwrap(); in test_basic()
17 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_basic()
19 tmpfile.read_to_string(&mut buf).unwrap(); in test_basic()
25 let tmpfile = NamedTempFile::new().unwrap(); in test_deleted() localVariable
26 let path = tmpfile.path().to_path_buf(); in test_deleted()
28 drop(tmpfile); in test_deleted()
34 let mut tmpfile = NamedTempFile::new().unwrap(); in test_persist() localVariable
35 let old_path = tmpfile.path().to_path_buf(); in test_persist()
37 write!(tmpfile, "abcde").unwrap(); in test_persist()
[all …]
Dtempfile.rs10 let mut tmpfile = tempfile::tempfile().unwrap(); in test_basic() localVariable
11 write!(tmpfile, "abcde").unwrap(); in test_basic()
12 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_basic()
14 tmpfile.read_to_string(&mut buf).unwrap(); in test_basic()
22 let mut tmpfile = tempfile::tempfile_in(&tmpdir).unwrap(); in test_cleanup() localVariable
23 write!(tmpfile, "abcde").unwrap(); in test_cleanup()
54 let mut tmpfile = tempfile::tempfile_in(&tmpdir).unwrap(); in test_pathological_cleaner() localVariable
55 write!(tmpfile, "abcde").unwrap(); in test_pathological_cleaner()
56 tmpfile.seek(SeekFrom::Start(0)).unwrap(); in test_pathological_cleaner()
58 tmpfile.read_to_string(&mut buf).unwrap(); in test_pathological_cleaner()
/external/parameter-framework/upstream/tools/xmlGenerator/
DlightRoutingUpdate.sh42 tmpfile="/tmp/pfw_commands"
80 echo > "${tmpfile}"
86 echo "setTuningMode on" >> "${tmpfile}"
87 echo "setAutoSync off" >> "${tmpfile}"
94 echo "deleteDomain $domain" >> "${tmpfile}"
103 | $(dirname $0)/PFWScriptGenerator.py --output-kind pfw >> "${tmpfile}"
106 echo "setAutoSync off" >> "${tmpfile}"
107 echo "setTuningMode off" >> "${tmpfile}"
128 "${tmpfile}"
130 echo "set -xeu" > "${tmpfile}2"
[all …]
/external/iptables/iptables/tests/shell/testcases/ipt-save/
D0003save-restore_03 tmpfile=""
9 if [ ! -z "$tmpfile" ];then
10 rm -f "$tmpfile"
19 tmpfile=$(mktemp) || exit 1
38 $XT_MULTI iptables-save | grep -v "^#" > "$tmpfile" || exit 1
39 $XT_MULTI iptables-restore < "$tmpfile" || exit 1
44 $XT_MULTI iptables-restore < "$tmpfile" || exit 1
47 do_diff $tmpfile1 "$tmpfile"
D0002load-fedora27-firewalld_04 tmpfile=""
8 if [ ! -z "$tmpfile" ];then
9 rm -f "$tmpfile"
30 tmpfile=$(mktemp) || exit 1
43 :> "$tmpfile"
46 $XT_MULTI ${iptables}-save -t $table $opt | grep -v "^#" >> "$tmpfile"
49 do_diff $dumpfile "$tmpfile"
D0001load-dumps_04 tmpfile=""
10 if [ ! -z "$tmpfile" ];then
11 rm -f "$tmpfile"
34 tmpfile=$(mktemp) || exit 1
41 $XT_MULTI ${iptables}-save | grep -v "^#" > "$tmpfile"
42 do_diff $dumpfile "$tmpfile"
/external/iptables/iptables/tests/shell/testcases/ipt-restore/
D0002-parameters_09 if [ -n "${tmpfile}" ]; then
10 rm -f "${tmpfile}"
16 tmpfile=$(mktemp) || exit 1
18 $XT_MULTI iptables-save -f $tmpfile
19 $XT_MULTI iptables-restore $tmpfile
20 $XT_MULTI iptables-restore -w 5 $tmpfile
21 $XT_MULTI iptables-restore -w 5 -W 1 $tmpfile
D0004-restore-race_07 tmpfile=""
20 [ -n "${tmpfile}" ] && rm -f "${tmpfile}"
73 tmpfile=$(mktemp) || exit 1
111 $XT_MULTI iptables-save | grep -v '^#' > $tmpfile
114 cmp $tmpfile $dumpfile
D0001load-specific-table_04 tmpfile=""
10 if [ -n "${tmpfile}" ]; then
11 rm -f "${tmpfile}"
17 tmpfile=$(mktemp) || exit 1
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc93 char tmpfile[128]; in TEST() local
94 temp_file_name(tmpfile, sizeof(tmpfile), "sanitizer_common.fileops.tmp."); in TEST()
95 fd_t fd = OpenFile(tmpfile, WrOnly); in TEST()
104 EXPECT_TRUE(FileExists(tmpfile)); in TEST()
106 fd = OpenFile(tmpfile, RdOnly); in TEST()
115 EXPECT_EQ(0u, internal_stat(tmpfile, &st1)); in TEST()
116 EXPECT_EQ(0u, internal_lstat(tmpfile, &st2)); in TEST()
145 ::DeleteFileA(&tmpfile[0]); in TEST()
147 internal_unlink(tmpfile); in TEST()
215 char tmpfile[128]; in TEST() local
[all …]
/external/autotest/server/
Dbase_utils.py76 tmpfile = os.path.join(tmpdir, "file")
77 tmpfileobj = open(tmpfile, 'w')
80 return tmpfile
85 tmpfile = os.path.join(tmpdir, os.path.basename(location))
86 utils.urlretrieve(location, tmpfile)
87 return tmpfile
95 tmpfile = os.path.join(tmpdir, os.path.basename(location))
97 tmpfile += '/'
98 shutil.copytree(location, tmpfile, symlinks=True)
99 return tmpfile
[all …]
/external/python/cpython2/Tools/faqwiz/
Dmove-faqwiz.sh32 tmpfile=$(tempfile -d .)
34 tmpfile=tmp$RANDOM.tmp
36 tmpfile=tmp$$.tmp
43 sed -e "s/$1\./$2\./g" data/$file1 > ${tmpfile}1
44 sed -e "s/$1\./$2\./g" data/RCS/$file1,v > ${tmpfile}2
51 mv ${tmpfile}1 data/$file2
52 mv ${tmpfile}2 data/RCS/$file2,v
/external/oss-fuzz/projects/cairo/targets/
Dsurface_write_png_fuzzer.c24 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local
25 image = cairo_image_surface_create_from_png(tmpfile); in LLVMFuzzerTestOneInput()
28 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
37 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
40 cairo_surface_write_to_png(surface, tmpfile); in LLVMFuzzerTestOneInput()
44 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
Dpdf_surface_fuzzer.c33 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local
34 surface = cairo_pdf_surface_create(tmpfile, width_in_points, height_in_points); in LLVMFuzzerTestOneInput()
37 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
53 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
/external/swiftshader/tests/
Dpresubmit.sh56 tmpfile=`mktemp`
61 done | grep -v "(standard input)" > ${tmpfile}
62 if test -s ${tmpfile}; then
65 cat ${tmpfile}
66 rm ${tmpfile}
70 rm ${tmpfile}
/external/autotest/site_utils/lxc/
Dcontainer_unittest.py69 with tempfile.NamedTemporaryFile(dir=self.test_dir) as tmpfile:
70 name = os.path.basename(tmpfile.name)
163 tmpfile = clone0.attach_run('mktemp').stdout
165 clone0.attach_run('test -f %s' % tmpfile)
174 clone1.attach_run('test -f %s' % tmpfile)
207 _unused, tmpfile = tempfile.mkstemp()
209 container.install_control_file(tmpfile)
214 os.path.basename(tmpfile)))
219 with tempfile.NamedTemporaryFile() as tmpfile:
220 tmpfile.write(control_string)
[all …]
/external/ltp/lib/newlib_tests/shell/
Dtest_timeout.sh55 local tmpfile start end;
57 tmpfile=$(mktemp -t ltp_timeout_XXXXXXXX)
73 LTP_TIMEOUT_MUL=$timeout $test 2>&1 | cat >$tmpfile
75 LTP_TIMEOUT_MUL=$timeout $test 1>$tmpfile 2>&1
82 test_output=$(cat $tmpfile)
83 rm $tmpfile
/external/oss-fuzz/projects/gdk-pixbuf/targets/
Dpixbuf_scale_fuzzer.c27 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local
28 pixbuf = gdk_pixbuf_new_from_file_at_scale(tmpfile, 1, size, TRUE, &error); in LLVMFuzzerTestOneInput()
30 pixbuf = gdk_pixbuf_new_from_file_at_scale(tmpfile, 1, size, FALSE, &error); in LLVMFuzzerTestOneInput()
36 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
Dstream_fuzzer.c26 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local
27 file = g_file_new_for_path(tmpfile); in LLVMFuzzerTestOneInput()
32 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
44 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
Dpixbuf_file_fuzzer.c27 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local
28 pixbuf = gdk_pixbuf_new_from_file(tmpfile, &error); in LLVMFuzzerTestOneInput()
31 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
55 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
Danimation_fuzzer.c28 char *tmpfile = fuzzer_get_tmpfile(data, size); in LLVMFuzzerTestOneInput() local
29 anim = gdk_pixbuf_animation_new_from_file(tmpfile, &error); in LLVMFuzzerTestOneInput()
32 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
53 fuzzer_release_tmpfile(tmpfile); in LLVMFuzzerTestOneInput()
/external/ltp/testcases/network/stress/multicast/grp-operation/
Dmcast-lib.sh100 local param_multi_socket ret tmpfile
106 tmpfile=$$
107 EXPECT_PASS $MCAST_LCMD $param_multi_socket -n $num -p $mprefix \> $tmpfile
108 tst_res TINFO "joined $(grep groups $tmpfile)"
159 local tmpfile=$$
160 EXPECT_PASS $MCAST_LCMD -n 1 -p $prefix \> $tmpfile
161 tst_res TINFO "joined $(grep groups $tmpfile)"
/external/elfutils/tests/
Drun-arsymtest.sh23 tmpfile=arsymtest.tmp
26 tempfiles $okfile $tmpfile $testfile
36 testrun ${abs_builddir}/arsymtest $lib $tmpfile || exit 1
37 sort $tmpfile > $testfile
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c276 int map_and_thread(char *tmpfile, in map_and_thread() argument
298 if (strcmp(tmpfile, "NULL")) { in map_and_thread()
300 open(tmpfile, O_RDWR | O_CREAT, in map_and_thread()
312 remove_files(tmpfile, NULL); in map_and_thread()
331 remove_files(tmpfile, NULL); in map_and_thread()
351 remove_files(tmpfile, NULL); in map_and_thread()
395 remove_files(tmpfile, map_addr); in map_and_thread()
419 remove_files(tmpfile, map_addr); in map_and_thread()
428 remove_files(tmpfile, map_addr); in map_and_thread()
445 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()
/external/parameter-framework/support/android/asio/
Dasio_shrinker.sh100 tmpfile=$(mktemp)
106 list_compiled_files "$ANDROID_PRODUCT_OUT" $tmpfile
109 list_compiled_files "$ANDROID_HOST_OUT" $tmpfile
115 -e 's@ @\n@' $tmpfile | \
118 rm $tmpfile

12345678