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

Unified Diff: test/cctest/cctest.cc

Issue 1369343002: [cctest] adding --help option to output basic information about cctest (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: extending help comment Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/run-tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.cc
diff --git a/test/cctest/cctest.cc b/test/cctest/cctest.cc
index 72be29c38338c62327b378c4e90611157aa1888c..05f276d3f4a178b930e9d75b8de3c26da060719d 100644
--- a/test/cctest/cctest.cc
+++ b/test/cctest/cctest.cc
@@ -173,6 +173,20 @@ int main(int argc, char* argv[]) {
#endif // V8_CC_MSVC
#endif // V8_OS_WIN
+ // hack to print cctest specific flags
+ for (int i = 1; i < argc; i++) {
+ char* arg = argv[i];
+ if ((strcmp(arg, "--help") == 0) || (strcmp(arg, "-h") == 0)) {
+ printf("Usage: %s [--list] [[V8_FLAGS] CCTEST]\n", argv[0]);
+ printf("\n");
+ printf("Options:\n");
+ printf(" --list: list all cctests\n");
+ printf(" CCTEST: cctest identfier returned by --list\n");
+ printf(" D8_FLAGS: see d8 output below\n");
+ printf("\n\n");
+ }
+ }
+
v8::V8::InitializeICU();
v8::Platform* platform = v8::platform::CreateDefaultPlatform();
v8::V8::InitializePlatform(platform);
« no previous file with comments | « no previous file | tools/run-tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698