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

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, 11 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
« tools/test.dart ('K') | « tools/testing/dart/http_server.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 } 1106 }
1107 1107
1108 // Create '[build dir]/generated_tests/$compiler-$runtime/$testUniqueName', 1108 // Create '[build dir]/generated_tests/$compiler-$runtime/$testUniqueName',
1109 // including any intermediate directories that don't exist. 1109 // including any intermediate directories that don't exist.
1110 // If the tests are run in checked or minified mode we add that to the 1110 // If the tests are run in checked or minified mode we add that to the
1111 // '$compile-$runtime' directory name. 1111 // '$compile-$runtime' directory name.
1112 var checked = configuration['checked'] ? '-checked' : ''; 1112 var checked = configuration['checked'] ? '-checked' : '';
1113 var minified = configuration['minified'] ? '-minified' : ''; 1113 var minified = configuration['minified'] ? '-minified' : '';
1114 var dirName = "${configuration['compiler']}-${configuration['runtime']}" 1114 var dirName = "${configuration['compiler']}-${configuration['runtime']}"
1115 "$checked$minified"; 1115 "$checked$minified";
1116 Path generatedTestPath = new Path(dartDir.toNativePath()) 1116 Path generatedTestPath = new Path(buildDir)
1117 .append(buildDir)
1118 .append('generated_tests') 1117 .append('generated_tests')
1119 .append(dirName) 1118 .append(dirName)
1120 .append(testUniqueName); 1119 .append(testUniqueName);
1121 1120
1122 TestUtils.mkdirRecursive(new Path('.'), generatedTestPath); 1121 TestUtils.mkdirRecursive(new Path('.'), generatedTestPath);
1123 return new File.fromPath(generatedTestPath).fullPathSync() 1122 return new File.fromPath(generatedTestPath).fullPathSync()
1124 .replaceAll('\\', '/'); 1123 .replaceAll('\\', '/');
1125 } 1124 }
1126 1125
1127 String get scriptType { 1126 String get scriptType {
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 * $pass tests are expected to pass 1896 * $pass tests are expected to pass
1898 * $failOk tests are expected to fail that we won't fix 1897 * $failOk tests are expected to fail that we won't fix
1899 * $fail tests are expected to fail that we should fix 1898 * $fail tests are expected to fail that we should fix
1900 * $crash tests are expected to crash that we should fix 1899 * $crash tests are expected to crash that we should fix
1901 * $timeout tests are allowed to timeout 1900 * $timeout tests are allowed to timeout
1902 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1901 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1903 """; 1902 """;
1904 print(report); 1903 print(report);
1905 } 1904 }
1906 } 1905 }
OLDNEW
« tools/test.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