Lines Matching full:test_dir
201 def __init__(self, name, test_dir):
203 self.test_dir = test_dir
207 return TestConfig.from_test_dir(self.test_dir)
230 def __init__(self, name, test_dir, script):
231 super(AwkTest, self).__init__(name, test_dir)
235 def from_dir(cls, test_dir):
236 test_name = os.path.basename(test_dir)
244 for test_case in glob.glob(os.path.join(test_dir, '*.in')):
249 return cls(test_name, test_dir, script)
261 for test_case in glob.glob(os.path.join(self.test_dir, '*.in')):
390 def from_test_dir(cls, test_dir):
391 path = os.path.join(test_dir, 'test_config.py')
418 def _run_build_sh_test(test_name, build_dir, test_dir, build_flags, abi,
420 _prep_build_dir(test_dir, build_dir)
437 def _run_ndk_build_test(test_name, build_dir, test_dir, build_flags, abi,
439 _prep_build_dir(test_dir, build_dir)
469 def __init__(self, name, test_dir, abi, platform, toolchain, build_flags):
470 super(PythonBuildTest, self).__init__(name, test_dir)
479 _prep_build_dir(self.test_dir, build_dir)
492 def __init__(self, name, test_dir, abi, platform, toolchain, build_flags):
493 super(ShellBuildTest, self).__init__(name, test_dir)
505 return [_run_build_sh_test(self.name, build_dir, self.test_dir,
511 def __init__(self, name, test_dir, abi, platform, toolchain, build_flags):
512 super(NdkBuildTest, self).__init__(name, test_dir)
521 return [_run_ndk_build_test(self.name, build_dir, self.test_dir,
528 def from_dir(cls, test_dir, abi, platform, toolchain, build_flags):
529 test_name = os.path.basename(test_dir)
531 if os.path.isfile(os.path.join(test_dir, 'test.py')):
532 return PythonBuildTest(test_name, test_dir, abi, platform,
534 elif os.path.isfile(os.path.join(test_dir, 'build.sh')):
535 return ShellBuildTest(test_name, test_dir, abi, platform,
538 return NdkBuildTest(test_name, test_dir, abi, platform,
584 def __init__(self, name, test_dir, abi, platform, device_platform,
586 super(DeviceTest, self).__init__(name, test_dir)
594 def from_dir(cls, test_dir, abi, platform, device_platform, toolchain,
596 test_name = os.path.basename(test_dir)
597 return cls(test_name, test_dir, abi, platform, device_platform,
601 return DeviceTestConfig.from_test_dir(self.test_dir)
626 build_result = _run_ndk_build_test(self.name, build_dir, self.test_dir,