test rename overhaul: step 1 peg.

The overhaul consists of:
- use _tests.dart notation, instead of xTest.dart
- use the directory setup (no more test_config, yay!)

Review URL: https://chromiumcodereview.appspot.com//10168010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6815 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
sigmund@google.com 2012-04-20 22:57:03 +00:00
parent fc45ff8f0c
commit d25fe08396
4 changed files with 17 additions and 25 deletions

View file

@ -47,7 +47,6 @@
#import("../frog/tests/await/test_config.dart");
#import("../utils/tests/css/test_config.dart");
#import("../utils/tests/import_mapper/test_config.dart");
#import("../utils/tests/peg/test_config.dart");
/**
* The directories that contain test suites which follow the conventions
@ -56,7 +55,8 @@
* basically add the directory here and you're done.)
*/
final TEST_SUITE_DIRECTORIES = const [
'utils/tests/pub'
'utils/tests/peg',
'utils/tests/pub',
];
main() {
@ -145,9 +145,6 @@ main() {
if (selectors.containsKey('import_mapper')) {
queue.addTestSuite(new ImportMapperTestSuite(conf));
}
if (selectors.containsKey('peg')) {
queue.addTestSuite(new PegTestSuite(conf));
}
if (selectors.containsKey('await')) {
queue.addTestSuite(new AwaitTestSuite(conf));
}

View file

@ -2,8 +2,17 @@
# 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.
[ $compiler == dartc ]
PegTest: Skip # Undiagnosed error on "a ? b ? c : d : e ? f : g"
[ $runtime == opera ]
peg_tests: Skip
[ $compiler == frog || $compiler == dart2js || $runtime == drt ]
PegTest: Skip # #-directives not supported by browser test architecture
[ $compiler == dart2js && ($runtime == ff || $runtime == ie || $runtime == chrome || $runtime == safari) ]
peg_tests: Skip # TODO(ahe): Triage
[ $arch == x64 ]
*: Skip
[ $arch == simarm ]
*: Skip
[ $arch == arm ]
*: Skip

View file

@ -2,7 +2,8 @@
// 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('../../../peg/pegparser.dart');
#library("peg_tests");
#import('../../peg/pegparser.dart');
testParens() {
Grammar g = new Grammar();

View file

@ -1,15 +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.
#library("peg_test_config");
#import("../../../tools/testing/dart/test_suite.dart");
class PegTestSuite extends StandardTestSuite {
PegTestSuite(Map configuration)
: super(configuration,
"peg",
"utils/tests/peg/src",
["utils/tests/peg/peg.status"]);
}