diff options
| author | Tom Rini <[email protected]> | 2022-11-08 09:45:10 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-11-08 09:45:10 -0500 |
| commit | 77b5cc2948f5d93fe3d275302f596ffd8701a875 (patch) | |
| tree | 703dfe2a0ebb2eacb241c19b99c96665a2d66811 /include/test | |
| parent | 88bd8ee106591eb900561715c44ad04441afc0e3 (diff) | |
| parent | 168a0e45fcf49194fca55795f84a844f16b480f6 (diff) | |
Merge tag 'dm-pull-7nov22' of https://source.denx.de/u-boot/custodians/u-boot-dm
sandbox UCLASS_HOST
Diffstat (limited to 'include/test')
| -rw-r--r-- | include/test/ut.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/test/ut.h b/include/test/ut.h index e0e618b58c2..4d00b4eeca1 100644 --- a/include/test/ut.h +++ b/include/test/ut.h @@ -410,10 +410,15 @@ void test_set_state(struct unit_test_state *uts); * then all tests are run * @runs_per_test: Number of times to run each test (typically 1) * @force_run: Run tests that are marked as manual-only (UT_TESTF_MANUAL) + * @test_insert: String describing a test to run after n other tests run, in the + * format n:name where n is the number of tests to run before this one and + * name is the name of the test to run. This is used to find which test causes + * another test to fail. If the one test fails, testing stops immediately. + * Pass NULL to disable this * Return: 0 if all tests passed, -1 if any failed */ int ut_run_list(const char *name, const char *prefix, struct unit_test *tests, int count, const char *select_name, int runs_per_test, - bool force_run); + bool force_run, const char *test_insert); #endif |
