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

Side by Side Diff: tools/testing/dart/test_suite.dart

Issue 11896031: Change the location of the output directory of generated tests to be inside output directory, but n… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 } 1115 }
1116 1116
1117 // Create '[build dir]/generated_tests/$compiler-$runtime/$testUniqueName', 1117 // Create '[build dir]/generated_tests/$compiler-$runtime/$testUniqueName',
1118 // including any intermediate directories that don't exist. 1118 // including any intermediate directories that don't exist.
1119 // If the tests are run in checked or minified mode we add that to the 1119 // If the tests are run in checked or minified mode we add that to the
1120 // '$compile-$runtime' directory name. 1120 // '$compile-$runtime' directory name.
1121 var checked = configuration['checked'] ? '-checked' : ''; 1121 var checked = configuration['checked'] ? '-checked' : '';
1122 var minified = configuration['minified'] ? '-minified' : ''; 1122 var minified = configuration['minified'] ? '-minified' : '';
1123 var dirName = "${configuration['compiler']}-${configuration['runtime']}" 1123 var dirName = "${configuration['compiler']}-${configuration['runtime']}"
1124 "$checked$minified"; 1124 "$checked$minified";
1125 Path generatedTestPath = new Path(dartDir.toNativePath()) 1125 Path generatedTestPath = new Path(buildDir)
1126 .append(buildDir)
1127 .append('generated_tests') 1126 .append('generated_tests')
1128 .append(dirName) 1127 .append(dirName)
1129 .append(testUniqueName); 1128 .append(testUniqueName);
1130 1129
1130 print(generatedTestPath.toString());
kustermann 2013/01/29 12:29:30 same here.
1131 TestUtils.mkdirRecursive(new Path('.'), generatedTestPath); 1131 TestUtils.mkdirRecursive(new Path('.'), generatedTestPath);
1132 return new File.fromPath(generatedTestPath).fullPathSync() 1132 return new File.fromPath(generatedTestPath).fullPathSync()
1133 .replaceAll('\\', '/'); 1133 .replaceAll('\\', '/');
1134 } 1134 }
1135 1135
1136 String get scriptType { 1136 String get scriptType {
1137 switch (configuration['compiler']) { 1137 switch (configuration['compiler']) {
1138 case 'none': 1138 case 'none':
1139 case 'dart2dart': 1139 case 'dart2dart':
1140 return 'application/dart'; 1140 return 'application/dart';
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 * $pass tests are expected to pass 1907 * $pass tests are expected to pass
1908 * $failOk tests are expected to fail that we won't fix 1908 * $failOk tests are expected to fail that we won't fix
1909 * $fail tests are expected to fail that we should fix 1909 * $fail tests are expected to fail that we should fix
1910 * $crash tests are expected to crash that we should fix 1910 * $crash tests are expected to crash that we should fix
1911 * $timeout tests are allowed to timeout 1911 * $timeout tests are allowed to timeout
1912 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1912 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1913 """; 1913 """;
1914 print(report); 1914 print(report);
1915 } 1915 }
1916 } 1916 }
OLDNEW
« tools/testing/dart/http_server.dart ('K') | « tools/testing/dart/http_server.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698