Home | History | Annotate | Download | only in test

Lines Matching refs:script_dir

42 def _make_test_script(script_dir, script_basename, source=test_source):
43 return make_script(script_dir, script_basename, source)
60 def _make_launch_script(script_dir, script_basename, module_name, path=None):
66 return make_script(script_dir, script_basename, source)
101 with temp_dir() as script_dir:
102 script_name = _make_test_script(script_dir, 'script')
106 with temp_dir() as script_dir:
107 script_name = _make_test_script(script_dir, 'script')
113 with temp_dir() as script_dir:
114 script_name = _make_test_script(script_dir, '__main__')
115 self._check_script(script_dir, script_name, script_dir, '')
118 with temp_dir() as script_dir:
119 script_name = _make_test_script(script_dir, '__main__')
122 self._check_script(script_dir, compiled_name, script_dir, '')
125 with temp_dir() as script_dir:
126 msg = "can't find '__main__' module in %r" % script_dir
127 self._check_import_error(script_dir, msg)
130 with temp_dir() as script_dir:
131 script_name = _make_test_script(script_dir, '__main__')
132 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
136 with temp_dir() as script_dir:
137 script_name = _make_test_script(script_dir, '__main__')
139 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
143 with temp_dir() as script_dir:
144 script_name = _make_test_script(script_dir, 'not_main')
145 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
150 with temp_dir() as script_dir:
151 pkg_dir = os.path.join(script_dir, 'test_pkg')
154 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg.script')
158 with temp_dir() as script_dir:
159 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
160 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg.script', zip_name)
164 with temp_dir() as script_dir:
165 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
166 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg.test_pkg.script', zip_name)
170 with temp_dir() as script_dir:
171 pkg_dir = os.path.join(script_dir, 'test_pkg')
174 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg')
179 with temp_dir() as script_dir:
180 pkg_dir = os.path.join(script_dir, 'test_pkg')
185 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg')
190 with temp_dir() as script_dir:
191 pkg_dir = os.path.join(script_dir, 'test_pkg')
195 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg')
199 with temp_dir() as script_dir:
200 pkg_dir = os.path.join(script_dir, 'test_pkg')
207 launch_name = _make_launch_script(script_dir, 'launch', 'test_pkg')
214 with temp_dir() as script_dir:
215 pkg_dir = os.path.join(script_dir, 'test_pkg')