19from pathlib
import Path
25run_tests.OUT_DIR =
'/tmp/out/fuchsia_debug_x64'
26os.makedirs(run_tests.OUT_DIR, exist_ok=
True)
34 packages, {os.path.join(run_tests.OUT_DIR,
'abc'),
35 os.path.join(run_tests.OUT_DIR,
'def')}
39 Path(os.path.join(run_tests.OUT_DIR,
'abc-0.far')).touch()
41 {
'package':
'abc-0.far'},
43 self.assertEqual(packages, {os.path.join(run_tests.OUT_DIR,
'abc.far')})
44 self.assertTrue(os.path.islink(os.path.join(run_tests.OUT_DIR,
'abc.far')))
48 {
'test_command':
'test run abc'},
49 {
'test_command':
'test run def -- --args'},
58if __name__ ==
'__main__':
63 shutil.rmtree(run_tests.OUT_DIR, ignore_errors=
True)
def test_resolve_package_make_symbolic_link(self)
def test_build_test_cases_with_arguments(self)
def test_resolve_both_package_and_packages(self)
Set[str] resolve_packages(Iterable[Mapping[str, Any]] tests)
List[TestCase] build_test_cases(Iterable[Mapping[str, Any]] tests)