diff options
author | Stuart Haslam <stuart.haslam@linaro.org> | 2015-10-14 10:28:17 +0100 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-10-15 12:51:08 +0300 |
commit | 1ee29890ddc03ededb6bedb9c8ba46dbb441be70 (patch) | |
tree | d89dfd3ec22e6119e1cd652239f56a4ab9f44ef8 /test/validation/classification | |
parent | 13559ac79511cfb0544e49852f3ae874ebec6816 (diff) |
validation: add odp_cunit_update() to modify registered tests
Add an odp_cunit_update() function to allow some attributes of previously
registered tests to be modified, such as whether it's active or not.
Previously, registering and running tests was done in a single step;
odp_cunit_run(testsuites);
But this is now split;
odp_cunit_register(testsuites);
odp_cunit_update(testsuites_updates);
odp_cunit_run();
The odp_cunit_update() is optional and none of the currently defined
tests use it, so there's no functional change in this patch.
Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
Reviewed-by: Christophe Milard <christophe.milard@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/validation/classification')
-rw-r--r-- | test/validation/classification/classification.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/validation/classification/classification.c b/test/validation/classification/classification.c index b868c61..fe9a827 100644 --- a/test/validation/classification/classification.c +++ b/test/validation/classification/classification.c @@ -23,5 +23,10 @@ odp_suiteinfo_t classification_suites[] = { int classification_main(void) { - return odp_cunit_run(classification_suites); + int ret = odp_cunit_register(classification_suites); + + if (ret == 0) + ret = odp_cunit_run(); + + return ret; } |