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

Side by Side Diff: bin/run_vm_tests.cc

Issue 8439061: Support command line parameters to specify a url to file name mapping. This is used during snapsh... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #include <stdio.h> 5 #include <stdio.h>
6 6
7 #include "vm/dart.h" 7 #include "vm/dart.h"
8 #include "vm/unit_test.h" 8 #include "vm/unit_test.h"
9 9
10 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. 10 // TODO(iposva, asiva): This is a placeholder for the real unittest framework.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 fprintf(stderr, "run_vm_tests <test name> [vm-flags ...]\n"); 43 fprintf(stderr, "run_vm_tests <test name> [vm-flags ...]\n");
44 } 44 }
45 45
46 46
47 static void* TestIsolateInitCallback(void* data) { 47 static void* TestIsolateInitCallback(void* data) {
48 ASSERT(data == NULL); 48 ASSERT(data == NULL);
49 return reinterpret_cast<void*>(0); 49 return reinterpret_cast<void*>(0);
50 } 50 }
51 51
52 52
53 static int Main(int argc, char** argv) { 53 static int Main(int argc, const char** argv) {
54 // Flags being passed to the Dart VM. 54 // Flags being passed to the Dart VM.
55 int dart_argc = 0; 55 int dart_argc = 0;
56 char** dart_argv = NULL; 56 const char** dart_argv = NULL;
57 57
58 if (argc < 2) { 58 if (argc < 2) {
59 // Bad parameter count. 59 // Bad parameter count.
60 PrintUsage(); 60 PrintUsage();
61 return 1; 61 return 1;
62 } else if (argc == 2) { 62 } else if (argc == 2) {
63 if (strcmp(argv[1], "--list") == 0) { 63 if (strcmp(argv[1], "--list") == 0) {
64 test_filter = kListTests; 64 test_filter = kListTests;
65 // List all the tests and exit without initializing the VM at all. 65 // List all the tests and exit without initializing the VM at all.
66 TestCaseBase::RunAll(); 66 TestCaseBase::RunAll();
(...skipping 19 matching lines...) Expand all
86 if (test_matches == 0) { 86 if (test_matches == 0) {
87 fprintf(stderr, "No tests matched: %s\n", test_filter); 87 fprintf(stderr, "No tests matched: %s\n", test_filter);
88 return 1; 88 return 1;
89 } 89 }
90 return 0; 90 return 0;
91 } 91 }
92 92
93 } // namespace dart 93 } // namespace dart
94 94
95 95
96 int main(int argc, char** argv) { 96 int main(int argc, const char** argv) {
97 return dart::Main(argc, argv); 97 return dart::Main(argc, argv);
98 } 98 }
OLDNEW
« bin/gen_snapshot.cc ('K') | « bin/process_script.cc ('k') | include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698