| Index: tests/frog/testcfg.py
|
| ===================================================================
|
| --- tests/frog/testcfg.py (revision 1140)
|
| +++ tests/frog/testcfg.py (working copy)
|
| @@ -1,45 +0,0 @@
|
| -# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| -# for details. All rights reserved. Use of this source code is governed by a
|
| -# BSD-style license that can be found in the LICENSE file.
|
| -
|
| -import atexit
|
| -
|
| -from testing import test_configuration
|
| -
|
| -class FrogTestConfiguration(test_configuration.StandardTestConfiguration):
|
| - def __init__(self, context, root):
|
| - super(FrogTestConfiguration, self).__init__(context, root)
|
| -
|
| - def ListExistingTests(self, current_path, path, mode, arch, component,
|
| - testsuite):
|
| - tests = []
|
| - test_dir = os.path.join(self.root, os.pardir, os.pardir,
|
| - os.pardir, 'tests', testsuite, 'src')
|
| - for root, unused_dirs, files in os.walk(test_dir):
|
| - for f in [x for x in files if self.IsTest(x)]:
|
| - if f.endswith('.dart'):
|
| - test_path = current_path + [testsuite, f[:-5]] # Remove .dart suffix.
|
| - if not self.Contains(path, test_path):
|
| - continue
|
| - tests.extend(self.CreateTestCases(test_path, path,
|
| - os.path.join(root, f),
|
| - mode, arch, component))
|
| - return tests
|
| -
|
| - def ListTests(self, current_path, path, mode, arch, component):
|
| - tests = self.ListExistingTests(current_path, path, mode, arch, component,
|
| - 'language')
|
| - tests.extend(
|
| - self.ListExistingTests(current_path, path, mode, arch, component,
|
| - 'corelib'))
|
| - atexit.register(lambda: self._Cleanup(tests))
|
| - libdir_option = '--libdir=%s' % os.path.abspath(
|
| - os.path.join(self.root, os.pardir, os.pardir, 'lib'))
|
| - for test in tests:
|
| - test.run_arch.vm_options.append(libdir_option)
|
| - if self.context.keep_temporary_files:
|
| - test.run_arch.vm_options.append('--keep_files')
|
| - return tests
|
| -
|
| -def GetConfiguration(context, root):
|
| - return FrogTestConfiguration(context, root)
|
|
|