Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: tests/frog/testcfg.py

Issue 8437081: Frog changes (in experimental) to get frog integrated into the test infrastructure. (Closed) Base URL: http://dart.googlecode.com/svn/experimental/frog/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
« scripts/buildbot_annotated_steps.py ('K') | « tests/frog/frog.status ('k') | world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698