OLD | NEW |
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("dart:io"); | 7 #import("dart:io"); |
8 #import("dart:isolate"); | 8 #import("dart:isolate"); |
9 | 9 |
10 // The following source statements, hidden in a string, fool the test script | 10 // The following source statements, hidden in a string, fool the test script |
11 // tools/testing/dart/multitest.dart | 11 // tools/testing/dart/multitest.dart |
12 // into copying the files into the generated_tests directory. | 12 // into copying the files into the generated_tests directory. |
13 // TODO(3919): Rewrite this test, not as a multitest, to copy them manually. | 13 // TODO(3919): Rewrite this test, not as a multitest, to copy them manually. |
14 final dummyString = ''' | 14 const dummyString = ''' |
15 #source('test_extension_tester.dart'); | 15 #source('test_extension_tester.dart'); |
16 #source('test_extension.dart'); | 16 #source('test_extension.dart'); |
17 '''; | 17 '''; |
18 | 18 |
19 void main() { | 19 void main() { |
20 Options options = new Options(); | 20 Options options = new Options(); |
21 | 21 |
22 // Make this a multitest so that the test scripts run a copy of it in | 22 // Make this a multitest so that the test scripts run a copy of it in |
23 // [build directory]/generated_tests. This way, we can copy the shared | 23 // [build directory]/generated_tests. This way, we can copy the shared |
24 // library for test_extension.dart to the test directory. | 24 // library for test_extension.dart to the test directory. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 print('Output of test_extension_tester.dart:'); | 69 print('Output of test_extension_tester.dart:'); |
70 print(' stdout:'); | 70 print(' stdout:'); |
71 print(processResult.stdout); | 71 print(processResult.stdout); |
72 print(' stderr:'); | 72 print(' stderr:'); |
73 print(processResult.stderr); | 73 print(processResult.stderr); |
74 stdout.flush(); | 74 stdout.flush(); |
75 exit(processResult.exitCode); | 75 exit(processResult.exitCode); |
76 }); | 76 }); |
77 }); | 77 }); |
78 } | 78 } |
OLD | NEW |