/* Copyright (c) 2015, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include #include "random.h" /* Helper macro for CU_TestInfo initialization */ #define _CU_TEST_INFO(test_func) {#test_func, test_func} void random_test_get_size(void) { int32_t ret; uint8_t buf[32]; ret = odp_random_data(buf, sizeof(buf), false); CU_ASSERT(ret == sizeof(buf)); } CU_TestInfo random_suite[] = { _CU_TEST_INFO(random_test_get_size), CU_TEST_INFO_NULL, }; CU_SuiteInfo random_suites[] = { {"Random", NULL, NULL, NULL, NULL, random_suite}, CU_SUITE_INFO_NULL, }; int random_main(void) { return odp_cunit_run(random_suites); }