Home
last modified time | relevance | path

Searched refs:script_name (Results 1 – 25 of 69) sorted by relevance

123

/external/python/cpython2/Lib/test/
Dtest_cmd_line_script.py70 def _check_script(self, script_name, expected_file, argument
73 run_args = cmd_line_switches + (script_name,)
76 print 'Output from test script %r:' % script_name
91 def _check_import_error(self, script_name, expected_msg, argument
93 run_args = cmd_line_switches + (script_name,)
96 print 'Output from test script %r:' % script_name
103 script_name = _make_test_script(script_dir, 'script')
104 self._check_script(script_name, script_name, script_name, None)
108 script_name = _make_test_script(script_dir, 'script')
109 compiled_name = compile_script(script_name)
[all …]
Dscript_helper.py108 script_name = os.path.join(script_dir, script_filename)
109 script_file = open(script_name, 'w')
112 return script_name
114 def compile_script(script_name): argument
115 py_compile.compile(script_name, doraise=True)
117 compiled_name = script_name + 'c'
119 compiled_name = script_name + 'o'
122 def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None): argument
127 name_in_zip = os.path.basename(script_name)
128 zip_file.write(script_name, name_in_zip)
[all …]
Dtest_runpy.py338 def _check_script(self, script_name, expected_name, expected_file, argument
340 result = run_path(script_name)
347 def _check_import_error(self, script_name, msg): argument
349 self.assertRaisesRegexp(ImportError, msg, run_path, script_name)
354 script_name = self._make_test_script(script_dir, mod_name)
355 self._check_script(script_name, "<run_path>", script_name,
356 script_name, None)
361 script_name = self._make_test_script(script_dir, mod_name)
362 compiled_name = compile_script(script_name)
363 os.remove(script_name)
[all …]
Dtest_zipimport_support.py116 script_name = make_script(d, 'test_zipped_doctest',
119 script_name)
129 os.remove(script_name)
205 script_name = make_script(d, 'script', test_src)
206 exit_code, data = run_python(script_name)
207 expected = pattern % (script_name, "__main__.Test")
214 script_name, '__main__.py')
232 script_name = make_script(d, 'script', test_src)
233 p = spawn_python(script_name)
236 self.assertIn(script_name, data)
[all …]
/external/python/cpython3/Lib/test/
Dtest_cmd_line_script.py111 def _check_output(self, script_name, exit_code, data, argument
116 print("Output from test script %r:" % script_name)
138 def _check_script(self, script_name, expected_file, argument
143 *cmd_line_switches, script_name, *example_args]
145 self._check_output(script_name, rc, out + err, expected_file,
149 def _check_import_error(self, script_name, expected_msg, argument
151 run_args = cmd_line_switches + (script_name,)
154 print('Output from test script %r:' % script_name)
226 script_name = _make_test_script(script_dir, 'script')
227 self._check_script(script_name, script_name, script_name,
[all …]
Dtest_multiprocessing_main_handling.py144 def _check_output(self, script_name, exit_code, out, err): argument
146 print("Output from test script %r:" % script_name)
153 def _check_script(self, script_name, *cmd_line_switches): argument
156 run_args = cmd_line_switches + (script_name, self.start_method)
158 self._check_output(script_name, rc, out, err)
162 script_name = _make_test_script(script_dir, 'script')
163 self._check_script(script_name)
167 script_name = _make_test_script(script_dir, 'script',
169 self._check_script(script_name)
178 script_name = _make_test_script(script_dir, 'ipython',
[all …]
Dtest_runpy.py601 def _check_script(self, script_name, expected_name, expected_file, argument
606 return run_path(script_name, init_globals)
635 return run_path(script_name, init_globals, run_name)
646 def _check_import_error(self, script_name, msg): argument
648 self.assertRaisesRegex(ImportError, msg, run_path, script_name)
653 script_name = self._make_test_script(script_dir, mod_name)
654 self._check_script(script_name, "<run_path>", script_name,
655 script_name, expect_spec=False)
660 script_name = self._make_test_script(script_dir, mod_name,
662 self._check_script(script_name, "<run_path>", script_name,
[all …]
Dtest_zipimport_support.py121 script_name = make_script(d, 'test_zipped_doctest',
124 script_name)
134 os.remove(script_name)
198 script_name = make_script(d, 'script', test_src)
199 rc, out, err = assert_python_ok(script_name)
200 expected = pattern % (script_name, "__main__.Test")
207 script_name, '__main__.py')
225 script_name = make_script(d, 'script', test_src)
226 p = spawn_python(script_name)
230 self.assertIn(os.path.normcase(script_name.encode('utf-8')), data)
[all …]
/external/python/cpython3/Lib/test/support/
Dscript_helper.py197 script_name = os.path.join(script_dir, script_filename)
199 script_file = open(script_name, 'w', encoding='utf-8')
203 return script_name
205 def make_zip_script(zip_dir, zip_basename, script_name, name_in_zip=None): argument
210 parts = script_name.split(os.sep)
212 legacy_pyc = make_legacy_pyc(source_from_cache(script_name))
214 script_name = legacy_pyc
216 name_in_zip = os.path.basename(script_name)
217 zip_file.write(script_name, name_in_zip)
236 script_name = make_script(zip_dir, script_basename, source)
[all …]
/external/python/cpython3/Lib/wsgiref/
Dutil.py98 script_name = environ.get('SCRIPT_NAME','')
99 script_name = posixpath.normpath(script_name+'/'+name)
100 if script_name.endswith('/'):
101 script_name = script_name[:-1]
102 if not name and not script_name.endswith('/'):
103 script_name += '/'
105 environ['SCRIPT_NAME'] = script_name
/external/python/cpython2/Lib/wsgiref/
Dutil.py98 script_name = environ.get('SCRIPT_NAME','')
99 script_name = posixpath.normpath(script_name+'/'+name)
100 if script_name.endswith('/'):
101 script_name = script_name[:-1]
102 if not name and not script_name.endswith('/'):
103 script_name += '/'
105 environ['SCRIPT_NAME'] = script_name
/external/python/cpython3/Lib/distutils/
Dcore.py32 def gen_usage (script_name): argument
33 script = os.path.basename(script_name)
136 raise SystemExit(gen_usage(dist.script_name) + "\nerror: %s" % msg)
170 def run_setup (script_name, script_args=None, stop_after="run"): argument
208 g = {'__file__': script_name}
211 sys.argv[0] = script_name
214 with open(script_name, 'rb') as f:
227 script_name)
Dutil.py380 (script_fd, script_name) = mkstemp(".py")
383 (script_fd, script_name) = None, mktemp(".py")
384 log.info("writing byte-compilation script '%s'", script_name)
389 script = open(script_name, "w")
422 cmd.append(script_name)
424 execute(os.remove, (script_name,), "removing %s" % script_name,
/external/python/cpython2/Lib/distutils/
Dcore.py35 def gen_usage(script_name): argument
36 script = os.path.basename(script_name)
139 raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
171 def run_setup(script_name, script_args=None, stop_after="run"): argument
209 g = {'__file__': script_name}
213 sys.argv[0] = script_name
216 f = open(script_name)
235 script_name
Dutil.py383 (script_fd, script_name) = mkstemp(".py")
386 (script_fd, script_name) = None, mktemp(".py")
387 log.info("writing byte-compilation script '%s'", script_name)
392 script = open(script_name, "w")
423 cmd = [sys.executable, script_name]
429 execute(os.remove, (script_name,), "removing %s" % script_name,
/external/toolchain-utils/
Dremote_test.py50 version_dir_path, script_name = misc.GetRoot(sys.argv[0])
68 '/tmp/' + script_name,
75 '/tmp/' + script_name + '1',
83 '/tmp/' + script_name,
90 '/tmp/' + script_name,
91 '/tmp/' + script_name,
/external/v8/src/ic/
Dic-stats.cc63 String* script_name = String::cast(script_name_raw); in GetOrCacheScriptName() local
65 script_name->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL) in GetOrCacheScriptName()
93 script_name(nullptr), in ICInfo()
105 script_name = nullptr; in Reset()
126 if (script_name) value->SetString("scriptName", script_name); in AppendToTracedValue()
/external/python/cpython3/Lib/
Drunpy.py64 pkg_name=None, script_name=None): argument
70 fname = script_name
90 pkg_name=None, script_name=None): argument
92 fname = script_name if mod_spec is None else mod_spec.origin
96 mod_name, mod_spec, pkg_name, script_name)
263 pkg_name=pkg_name, script_name=fname)
/external/tensorflow/tensorflow/python/tools/
Dprint_selective_registration_header_test.py76 _, self.script_name = os.path.split(sys.argv[0])
137 '// This file was autogenerated by %s' % self.script_name,
198 #endif''' % self.script_name
/external/python/cpython2/Lib/distutils/tests/
Dtest_build_py.py38 dist.script_name = os.path.join(sources, "setup.py")
89 dist.script_name = os.path.join(sources, "setup.py")
124 dist.script_name = os.path.join(sources, "setup.py")
/external/lisa/libs/utils/
Dtarget_script.py42 def __init__(self, env, script_name=SCRIPT_NAME): argument
45 self._script_name = script_name
/external/v8/src/third_party/vtune/
Dvtune-jit.cc183 Local<String> script_name = in event_handler() local
185 temp_file_name = new char[script_name->Utf8Length() + 1]; in event_handler()
186 script_name->WriteUtf8(temp_file_name); in event_handler()
/external/swiftshader/third_party/subzero/pydir/
Drun-pnacl-sz.py170 script_name = os.path.basename(sys.argv[0])
179 print ' %s ... %s ... --args' % (script_name, preferred_option)
181 print ' %s ... --args %s ...' % (script_name, arg)
/external/python/cpython3/Lib/distutils/tests/
Dtest_build_py.py37 dist.script_name = os.path.join(sources, "setup.py")
82 dist.script_name = os.path.join(sources, "setup.py")
148 dist.script_name = os.path.join(sources, "setup.py")
/external/autotest/server/
Dautoserv_utils.py76 script_name = 'virtualenv_autoserv' if use_virtualenv else 'autoserv'
77 command = [os.path.join(autoserv_directory, script_name)]

123