mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
unix: Add special function to improve coverage.
The function and corresponding command-line option are only enabled for the coverage build. They are used to exercise uPy features that can't be properly tested by Python scripts.
This commit is contained in:
@@ -434,6 +434,12 @@ int main(int argc, char **argv) {
|
||||
MP_STATE_VM(mp_optimise_value) = 0;
|
||||
for (char *p = argv[a] + 1; *p && *p == 'O'; p++, MP_STATE_VM(mp_optimise_value)++);
|
||||
}
|
||||
#if defined(MICROPY_UNIX_COVERAGE)
|
||||
} else if (strcmp(argv[a], "--coverage") == 0) {
|
||||
void run_extra_coverage_tests(void);
|
||||
run_extra_coverage_tests();
|
||||
ret = 0;
|
||||
#endif
|
||||
} else {
|
||||
return usage(argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user