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

Side by Side Diff: tests/standalone/io/test_extension_test.dart

Issue 2858623002: Remove MIPS support (Closed)
Patch Set: Merge and cleanup Created 3 years, 6 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
« no previous file with comments | « tests/language/language.status ('k') | tests/standalone/standalone.status » ('j') | 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 // Dart test program for testing native extensions. 5 // Dart test program for testing native extensions.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import "package:path/path.dart"; 8 import "package:path/path.dart";
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 default: 50 default:
51 Expect.fail('Unknown operating system ${Platform.operatingSystem}'); 51 Expect.fail('Unknown operating system ${Platform.operatingSystem}');
52 } 52 }
53 } 53 }
54 54
55 String getArchFromBuildDir(String buildDirectory) { 55 String getArchFromBuildDir(String buildDirectory) {
56 if (buildDirectory.endsWith('SIMARM')) return ''; 56 if (buildDirectory.endsWith('SIMARM')) return '';
57 if (buildDirectory.endsWith('SIMARM64')) return ''; 57 if (buildDirectory.endsWith('SIMARM64')) return '';
58 if (buildDirectory.endsWith('SIMDBC')) return ''; 58 if (buildDirectory.endsWith('SIMDBC')) return '';
59 if (buildDirectory.endsWith('SIMDBC64')) return ''; 59 if (buildDirectory.endsWith('SIMDBC64')) return '';
60 if (buildDirectory.endsWith('SIMMIPS')) return '';
61 if (buildDirectory.endsWith('ARM')) return '-arm'; 60 if (buildDirectory.endsWith('ARM')) return '-arm';
62 if (buildDirectory.endsWith('ARM64')) return '-arm64'; 61 if (buildDirectory.endsWith('ARM64')) return '-arm64';
63 if (buildDirectory.endsWith('IA32')) return '-ia32'; 62 if (buildDirectory.endsWith('IA32')) return '-ia32';
64 if (buildDirectory.endsWith('MIPS')) return '-mips';
65 if (buildDirectory.endsWith('X64')) return '-x64'; 63 if (buildDirectory.endsWith('X64')) return '-x64';
66 return 'unknown'; 64 return 'unknown';
67 } 65 }
68 66
69 Future testExtension(bool withArchSuffix) { 67 Future testExtension(bool withArchSuffix) {
70 String scriptDirectory = dirname(Platform.script.toFilePath()); 68 String scriptDirectory = dirname(Platform.script.toFilePath());
71 String buildDirectory = dirname(Platform.executable); 69 String buildDirectory = dirname(Platform.executable);
72 Directory tempDirectory = 70 Directory tempDirectory =
73 Directory.systemTemp.createTempSync('dart_test_extension'); 71 Directory.systemTemp.createTempSync('dart_test_extension');
74 String testDirectory = tempDirectory.path; 72 String testDirectory = tempDirectory.path;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 114 }
117 115
118 Future testWithoutArchSuffix() { 116 Future testWithoutArchSuffix() {
119 return testExtension(false); 117 return testExtension(false);
120 } 118 }
121 119
122 main() async { 120 main() async {
123 await testWithArchSuffix(); 121 await testWithArchSuffix();
124 await testWithoutArchSuffix(); 122 await testWithoutArchSuffix();
125 } 123 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698