Pass command-line args to the test runner. Issue #428
This will let the test runner filter the tests it runs.
This commit is contained in:
parent
2e46438507
commit
94e1b362f0
2 changed files with 29 additions and 6 deletions
|
|
@ -27,7 +27,7 @@ type test_desc = rec(test_name name,
|
|||
|
||||
// The default console test runner. It accepts the command line
|
||||
// arguments and a vector of test_descs (generated at compile time).
|
||||
fn test_main(&test_desc[] tests) -> int {
|
||||
fn test_main(&vec[str] args, &test_desc[] tests) -> int {
|
||||
if (run_tests(tests)) {
|
||||
ret 0;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue