Home
last modified time | relevance | path

Searched refs:write_file (Results 1 – 25 of 109) sorted by relevance

12345

/external/linux-kselftest/tools/testing/selftests/ntb/
Dntb_test.sh118 function write_file() function
138 if ! write_file "N" "$LOC/link" 2> /dev/null; then
143 write_file "N" "$LOC/link_event"
150 write_file "Y" "$LOC/link"
151 write_file "Y" "$LOC/link_event"
164 write_file "c $DB_BITMASK" "$REM/db"
176 write_file "s $MASK" "$LOC/peer_db"
202 write_file "$i $VAL" "$LOC/peer_spad"
307 write_file "" $LOCAL_PERF/run
313 write_file "" $REMOTE_PERF/run
[all …]
/external/python/cpython2/Lib/distutils/tests/
Dtest_sdist.py68 self.write_file((self.tmp_dir, 'README'), 'xxx')
69 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#')
70 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY)
99 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx')
102 self.write_file((self.tmp_dir, 'somecode', '.hg',
106 self.write_file((self.tmp_dir, 'somecode', '.git',
109 self.write_file((self.tmp_dir, 'somecode', '.nfs0001'), 'xxx')
199 self.write_file((self.tmp_dir, 'somecode', 'doc.txt'), '#')
200 self.write_file((self.tmp_dir, 'somecode', 'doc.dat'), '#')
205 self.write_file((data_dir, 'data.dt'), '#')
[all …]
Dtest_bdist_rpm.py63 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
64 self.write_file((pkg_dir, 'foo.py'), '#')
65 self.write_file((pkg_dir, 'MANIFEST.in'), 'include foo.py')
66 self.write_file((pkg_dir, 'README'), '')
107 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
108 self.write_file((pkg_dir, 'foo.py'), '#')
109 self.write_file((pkg_dir, 'MANIFEST.in'), 'include foo.py')
110 self.write_file((pkg_dir, 'README'), '')
Dtest_dep_util.py24 self.write_file(new_file)
42 self.write_file(one)
43 self.write_file(two)
44 self.write_file(four)
60 self.write_file(one)
61 self.write_file(two)
62 self.write_file(three)
Dtest_spawn.py35 self.write_file(exe, '#!/bin/sh\nexit 1')
39 self.write_file(exe, 'exit 1')
47 self.write_file(exe, '#!/bin/sh\nexit 0')
51 self.write_file(exe, 'exit 0')
Dtest_archive_util.py62 self.write_file([tmpdir, 'file1'], 'xxx')
63 self.write_file([tmpdir, 'file2'], 'xxx')
65 self.write_file([tmpdir, 'sub', 'file3'], 'xxx')
110 self.write_file([dist, 'file1'], 'xxx')
111 self.write_file([dist, 'file2'], 'xxx')
113 self.write_file([dist, 'sub', 'file3'], 'xxx')
210 self.write_file([tmpdir, 'file1'], 'xxx')
211 self.write_file([tmpdir, 'file2'], 'xxx')
Dtest_bdist_dumb.py52 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
53 self.write_file((pkg_dir, 'foo.py'), '#')
54 self.write_file((pkg_dir, 'MANIFEST.in'), 'include foo.py')
55 self.write_file((pkg_dir, 'README'), '')
Dtest_upload.py79 self.write_file(self.rc, PYPIRC)
90 self.write_file(self.rc, PYPIRC_NOPASSWORD)
108 self.write_file(path)
111 self.write_file(self.rc, PYPIRC_LONG_PASSWORD)
Dtest_install_data.py25 self.write_file(one, 'xxx')
28 self.write_file(two, 'xxx')
61 self.write_file(three, 'xx')
Dtest_install_lib.py41 self.write_file(f, '# python file')
61 self.write_file(f, '# python file')
78 self.write_file(f, '# python file')
/external/python/cpython3/Lib/distutils/tests/
Dtest_sdist.py66 self.write_file((self.tmp_dir, 'README'), 'xxx')
67 self.write_file((self.tmp_dir, 'somecode', '__init__.py'), '#')
68 self.write_file((self.tmp_dir, 'setup.py'), SETUP_PY)
97 self.write_file((self.tmp_dir, 'somecode', '.svn', 'ok.py'), 'xxx')
100 self.write_file((self.tmp_dir, 'somecode', '.hg',
104 self.write_file((self.tmp_dir, 'somecode', '.git',
107 self.write_file((self.tmp_dir, 'somecode', '.nfs0001'), 'xxx')
179 self.write_file((self.tmp_dir, 'somecode', 'doc.txt'), '#')
180 self.write_file((self.tmp_dir, 'somecode', 'doc.dat'), '#')
185 self.write_file((data_dir, 'data.dt'), '#')
[all …]
Dtest_bdist_rpm.py58 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
59 self.write_file((pkg_dir, 'foo.py'), '#')
60 self.write_file((pkg_dir, 'MANIFEST.in'), 'include foo.py')
61 self.write_file((pkg_dir, 'README'), '')
102 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
103 self.write_file((pkg_dir, 'foo.py'), '#')
104 self.write_file((pkg_dir, 'MANIFEST.in'), 'include foo.py')
105 self.write_file((pkg_dir, 'README'), '')
Dtest_dep_util.py23 self.write_file(new_file)
41 self.write_file(one)
42 self.write_file(two)
43 self.write_file(four)
59 self.write_file(one)
60 self.write_file(two)
61 self.write_file(three)
Dtest_spawn.py35 self.write_file(exe, '#!%s\nexit 1' % unix_shell)
38 self.write_file(exe, 'exit 1')
46 self.write_file(exe, '#!%s\nexit 0' % unix_shell)
49 self.write_file(exe, 'exit 0')
Dtest_upload.py90 self.write_file(self.rc, PYPIRC)
101 self.write_file(self.rc, PYPIRC_NOPASSWORD)
119 self.write_file(path)
122 self.write_file(self.rc, PYPIRC_LONG_PASSWORD)
154 self.write_file(path)
156 self.write_file(self.rc, PYPIRC_LONG_PASSWORD)
Dtest_bdist_dumb.py52 self.write_file((pkg_dir, 'setup.py'), SETUP_PY)
53 self.write_file((pkg_dir, 'foo.py'), '#')
54 self.write_file((pkg_dir, 'MANIFEST.in'), 'include foo.py')
55 self.write_file((pkg_dir, 'README'), '')
Dtest_install_data.py23 self.write_file(one, 'xxx')
26 self.write_file(two, 'xxx')
59 self.write_file(three, 'xx')
Dtest_config.py90 self.write_file(self.rc, PYPIRC)
101 self.write_file(self.rc, PYPIRC_OLD)
124 self.write_file(self.rc, PYPIRC)
Dtest_install_lib.py45 self.write_file(f, '# python file')
63 self.write_file(f, '# python package')
83 self.write_file(f, '# python package')
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/
Dcpuset_inherit_testset.sh46 local write_file="$1"
51 mkdir -p "$(dirname $write_file)" || {
52 tst_brkm TFAIL "Failed to mkdir -p $(basename $write_file)"
57 /bin/echo "$write_string" > "$write_file" 2> $CPUSET_TMP/stderr
58 mkdir $(dirname $write_file)/2 2> $CPUSET_TMP/stderr
60 write_result="$(cat "$(dirname $write_file)/2/$(basename $write_file)")"
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
Dcpuset_base_ops_testset.sh46 local write_file="$1"
52 mkdir -p "$(dirname $write_file)" || {
53 tst_brkm TFAIL "Failed to mkdir -p $(basename $write_file)"
58 /bin/echo "$write_string" > "$write_file" 2> $CPUSET_TMP/stderr
60 write_result="$(cat "$write_file")"
/external/python/cpython3/Lib/test/
Dtest_shutil.py53 def write_file(path, content, binary=False): function
116 write_file(os.path.join(victim, 'somefile'), 'foo')
149 write_file(file1, 'foo')
171 write_file((tmpdir, "tstfile"), "")
268 write_file((TESTFN, 'foo'), 'foo')
281 write_file(src, 'foo')
282 write_file(dst, 'foo')
314 write_file(src, 'foo')
315 write_file(dst, 'foo')
344 write_file(src, 'foo')
[all …]
/external/antlr/antlr-3.4/runtime/Perl5/t/lib/ANTLR/Runtime/
DTest.pm28 sub write_file { subroutine
69 write_file($grammar_file, $grammar);
73 write_file($test_program_file, $test_program);
/external/ltp/testcases/kernel/syscalls/open/
Dopen14.c64 static void write_file(int fd) in write_file() function
81 write_file(fd); in test01()
152 write_file(fd[i]); in test02()
198 write_file(fd[i]); in test03()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat03.c75 static void write_file(int fd) in write_file() function
92 write_file(fd); in test01()
163 write_file(fd[i]); in test02()
209 write_file(fd[i]); in test03()

12345