| 2116 | } |
| 2117 | |
| 2118 | void help(void) |
| 2119 | { |
| 2120 | printf("run-test262 version %s\n" |
| 2121 | "usage: run-test262 [options] {-f file ... | [dir_list] [index range]}\n" |
| 2122 | "-h help\n" |
| 2123 | "-a run tests in strict and nostrict modes\n" |
| 2124 | "-m print memory usage summary\n" |
| 2125 | "-N run test prepared by test262-harness+eshost\n" |
| 2126 | "-s run tests in strict mode, skip @nostrict tests\n" |
| 2127 | "-E only run tests from the error file\n" |
| 2128 | "-u update error file\n" |
| 2129 | "-v verbose: output error messages\n" |
| 2130 | "-vv like -v but also print test name and running time\n" |
| 2131 | "-T duration display tests taking more than 'duration' ms\n" |
| 2132 | "-t threads number of parallel threads; default: numcpus - 1\n" |
| 2133 | "-c file read configuration from 'file'\n" |
| 2134 | "-d dir run all test files in directory tree 'dir'\n" |
| 2135 | "-e file load the known errors from 'file'\n" |
| 2136 | "-f file execute single test from 'file'\n" |
| 2137 | "-x file exclude tests listed in 'file'\n" |
| 2138 | "--no-can-block set [[CanBlock]] to false (Atomics.wait will throw)\n", |
| 2139 | JS_GetVersion()); |
| 2140 | exit(1); |
| 2141 | } |
| 2142 | |
| 2143 | char *get_opt_arg(const char *option, char *arg) |
| 2144 | { |