Home
last modified time | relevance | path

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

12345

/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/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.py70 tmpfile = os.path.join(tmpdir, "file")
71 tmpfileobj = file(tmpfile, 'w')
74 return tmpfile
79 tmpfile = os.path.join(tmpdir, os.path.basename(location))
80 utils.urlretrieve(location, tmpfile)
81 return tmpfile
89 tmpfile = os.path.join(tmpdir, os.path.basename(location))
91 tmpfile += '/'
92 shutil.copytree(location, tmpfile, symlinks=True)
93 return tmpfile
[all …]
/external/ltp/testcases/commands/at/
Dat_allow0139 tmpfile="$TMP/at_allow_test"
52 rm "${tmpfile}" >/dev/null 2>&1
102 rm "${tmpfile}" >/dev/null 2>&1
116 echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" |
125 test -e "${tmpfile}" && exit_code=0
132 rm -f "${tmpfile}" >/dev/null 2>&1
142 echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" |
150 test -e "${tmpfile}" || exit_code=0
157 rm -f "${tmpfile}" >/dev/null 2>&1
Dat_deny0137 tmpfile="$TMP/at_deny_test"
50 rm "${tmpfile}" >/dev/null 2>&1
106 rm "${tmpfile}" >/dev/null 2>&1
124 echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" |
133 test -e "${tmpfile}" && exit_code=0
140 rm -f "${tmpfile}" >/dev/null 2>&1
150 echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" |
158 test -e "${tmpfile}" || exit_code=0
165 rm -f "${tmpfile}" >/dev/null 2>&1
/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/autotest/site_utils/lxc/
Dcontainer_unittest.py69 with tempfile.NamedTemporaryFile(dir=self.test_dir) as tmpfile:
70 name = os.path.basename(tmpfile.name)
170 tmpfile = clone0.attach_run('mktemp').stdout
172 clone0.attach_run('test -f %s' % tmpfile)
181 clone1.attach_run('test -f %s' % tmpfile)
213 _unused, tmpfile = tempfile.mkstemp()
215 container.install_control_file(tmpfile)
220 os.path.basename(tmpfile)))
226 with tempfile.NamedTemporaryFile() as tmpfile:
227 tmpfile.write(control_string)
[all …]
Dzygote_unittest.py174 _unused, tmpfile = tempfile.mkstemp()
179 zygote.install_control_file(tmpfile)
183 os.path.basename(tmpfile)))
189 with tempfile.NamedTemporaryFile() as tmpfile:
190 tmpfile.write(control_string)
191 tmpfile.flush()
195 os.path.basename(tmpfile.name))
197 zygote.copy(tmpfile.name, dst)
207 fd, tmpfile = tempfile.mkstemp(dir=tmpdir)
218 test_file = os.path.join(dst, os.path.basename(tmpfile))
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c276 int map_and_thread(char *tmpfile, in map_and_thread() argument
296 if (strcmp(tmpfile, "NULL")) { in map_and_thread()
298 open(tmpfile, O_RDWR | O_CREAT, in map_and_thread()
314 remove_files(tmpfile, NULL); in map_and_thread()
333 remove_files(tmpfile, NULL); in map_and_thread()
377 remove_files(tmpfile, map_addr); in map_and_thread()
401 remove_files(tmpfile, map_addr); in map_and_thread()
410 remove_files(tmpfile, map_addr); in map_and_thread()
427 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()
/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/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
/external/tensorflow/tensorflow/contrib/cmake/tools/
Dcreate_def_file.py102 tmpfile = tempfile.NamedTemporaryFile(mode="w", delete=False)
111 tmpfile.file.write(sym + "\n")
117 tmpfile.file.close()
133 proc = subprocess.Popen([UNDNAME, tmpfile.name], stdout=subprocess.PIPE)
163 os.unlink(tmpfile.name)
/external/libmtp/
Dautogen.sh54 wget -O tmpfile http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
55 mv tmpfile config.guess
56 wget -O tmpfile http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
57 mv tmpfile config.sub
/external/vulkan-validation-layers/demos/smoke/
Dglsl-to-spirv43 def compile_glsl(filename, tmpfile): argument
46 args = [validator, "-V", "-H", "-o", tmpfile, filename]
54 with open(tmpfile, "rb") as f:
67 os.remove(tmpfile)
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/
Dtm-vmxcopy.c43 char tmpfile[] = "/tmp/page_faultXXXXXX"; in test_vmxcopy() local
50 fd = mkstemp(tmpfile); in test_vmxcopy()
57 unlink(tmpfile); in test_vmxcopy()
/external/python/cpython3/
Dsetup.py408 tmpfile = os.path.join(self.build_temp, 'multiarch')
412 '%s -print-multiarch > %s 2> /dev/null' % (cc, tmpfile))
416 with open(tmpfile) as fp:
419 os.unlink(tmpfile)
433 tmpfile = os.path.join(self.build_temp, 'multiarch')
438 (opt, tmpfile))
441 with open(tmpfile) as fp:
448 os.unlink(tmpfile)
452 tmpfile = os.path.join(self.build_temp, 'gccpaths')
455 ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile))
[all …]
/external/ltp/testcases/network/stress/multicast/grp-operation/
Dmcast-lib.sh105 local param_multi_socket ret tmpfile
111 tmpfile=$$
112 EXPECT_PASS $MCAST_LCMD $param_multi_socket -n $num -p $mprefix \> $tmpfile
113 tst_resm TINFO "joined $(grep groups $tmpfile)"
/external/scrypt/
Dimport_scrypt.sh259 declare -r tmpfile=$(mktemp)
260 (grep -e -D Makefile | grep -v CONFIGURE_ARGS= | grep -v OPTIONS=) > $tmpfile
262 declare -r ac_cflags=$(filter_by_egrep "^-D" $(grep -e "^CFLAG=" $tmpfile))
263 declare -r ac_depflags=$(filter_by_egrep "^-D" $(grep -e "^DEPFLAG=" $tmpfile))
264 rm -f $tmpfile
/external/autotest/server/site_tests/audio_AudioQualityAfterSuspend/
Daudio_AudioQualityAfterSuspend.py80 with tempfile.NamedTemporaryFile() as tmpfile:
81 file_utils.download_file(self.test_playback_file, tmpfile.name)
82 os.chmod(tmpfile.name, 0444)
83 self.host.send_file(tmpfile.name, host_file)
/external/autotest/client/common_lib/cros/
Darc.py304 with tempfile.NamedTemporaryFile() as tmpfile:
306 pipes.quote(tmpfile.name)))
307 with open(tmpfile.name) as f:
319 with tempfile.NamedTemporaryFile() as tmpfile:
320 tmpfile.write(data)
321 tmpfile.flush()
323 adb_cmd('push %s %s' % (pipes.quote(tmpfile.name),
/external/toybox/tests/
Dcksum.test10 echo -n "hello" > tmpfile
12 rm -f tmpfile
/external/perf_data_converter/src/quipper/
Dperf_parser_test.cc653 const string tmpfile = tmpdir.path() + "file_in_namespace"; in TEST() local
656 testing::WriteElfWithBuildid(tmpfile, ".note.gnu.build-id", in TEST()
660 ASSERT_EQ(stat(tmpfile.c_str(), &tmp_stat), 0); in TEST()
791 const string tmpfile = tmpdir.path() + "file_in_namespace"; in TEST() local
794 testing::WriteElfWithBuildid(tmpfile, ".note.gnu.build-id", in TEST()
800 ASSERT_EQ(stat(tmpfile.c_str(), &tmp_stat), 0); in TEST()
874 const string tmpfile = tmpdir.path() + "file_in_namespace"; in TEST() local
877 testing::WriteElfWithBuildid(tmpfile, ".note.gnu.build-id", in TEST()
883 ASSERT_EQ(stat(tmpfile.c_str(), &tmp_stat), 0); in TEST()
900 testing::ExampleMmap2Event(pid, pid, 0x1c1000, 0x1000, 0, tmpfile, in TEST()
[all …]
/external/toybox/toys/pending/
Dsyslogd.c241 char *p, *tmpfile; in open_logfiles() local
247 tmpfile = xstrdup(tfd->filename + 1); in open_logfiles()
248 if ((p = strchr(tmpfile, ':'))) { in open_logfiles()
261 if (getaddrinfo(tmpfile, NULL, &rp, &info) || !info) in open_logfiles()
262 perror_exit("BAD ADDRESS: can't find : %s ", tmpfile); in open_logfiles()
268 free(tmpfile); in open_logfiles()
/external/libpng/contrib/libtests/
Dtimepng.c423 fp = tmpfile(); in main()
440 char tmpfile[] = "timepng-XXXXXX"; in main()
443 filedes = mkstemp(tmpfile); in main()
452 (void) unlink(tmpfile); in main()
/external/ImageMagick/scripts/
Dformat_c_api_docs329 my($infile, $tmpfile) = @_;
338 open( TMP, ">$tmpfile" ) || die("Failed to open \"$tmpfile\" for write\n" );

12345