diff options
author | Christophe Milard <christophe.milard@linaro.org> | 2015-07-27 19:38:49 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-07-29 16:03:14 +0300 |
commit | 27b947d9c186a134aee19846fc1972ef007f876d (patch) | |
tree | 9172dc2aa4f67050765deb15bc0871cc4448cc87 /test/validation | |
parent | 9021d1aefc3ef86eae99b6273d7f61c40fa391d8 (diff) |
validation: time: lib populated
test symbols are now exported in the module lib.
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
Reviewed-by: Stuart Haslam <stuart.haslam@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/validation')
-rw-r--r-- | test/validation/time/time.c | 8 | ||||
-rw-r--r-- | test/validation/time/time.h | 14 |
2 files changed, 18 insertions, 4 deletions
diff --git a/test/validation/time/time.c b/test/validation/time/time.c index 0aac599b6..4fa2eafa1 100644 --- a/test/validation/time/time.c +++ b/test/validation/time/time.c @@ -12,7 +12,7 @@ #define BUSY_LOOP_CNT 100 /* check that a cycles difference gives a reasonable result */ -static void time_test_odp_cycles_diff(void) +void time_test_odp_cycles_diff(void) { /* volatile to stop optimization of busy loop */ volatile int count = 0; @@ -32,7 +32,7 @@ static void time_test_odp_cycles_diff(void) } /* check that a negative cycles difference gives a reasonable result */ -static void time_test_odp_cycles_negative_diff(void) +void time_test_odp_cycles_negative_diff(void) { uint64_t diff, cycles1, cycles2; @@ -43,7 +43,7 @@ static void time_test_odp_cycles_negative_diff(void) } /* check that related conversions come back to the same value */ -static void time_test_odp_time_conversion(void) +void time_test_odp_time_conversion(void) { uint64_t ns1, ns2, cycles; uint64_t upper_limit, lower_limit; @@ -68,7 +68,7 @@ CU_TestInfo time_suite_time[] = { CU_TEST_INFO_NULL }; -static CU_SuiteInfo time_suites[] = { +CU_SuiteInfo time_suites[] = { {"Time", NULL, NULL, NULL, NULL, time_suite_time}, CU_SUITE_INFO_NULL }; diff --git a/test/validation/time/time.h b/test/validation/time/time.h index 1cd54d97f..1f6982633 100644 --- a/test/validation/time/time.h +++ b/test/validation/time/time.h @@ -7,6 +7,20 @@ #ifndef _ODP_TEST_TIME_H_ #define _ODP_TEST_TIME_H_ +#include <CUnit/Basic.h> + +/* test functions: */ +void time_test_odp_cycles_diff(void); +void time_test_odp_cycles_negative_diff(void); +void time_test_odp_time_conversion(void); + +/* test arrays: */ +extern CU_TestInfo time_suite_time[]; + +/* test registry: */ +extern CU_SuiteInfo time_suites[]; + +/* main test program: */ int time_main(void); #endif |