zephyr/tests/kernel/test_common/src/main.c
Kumar Gala c610dea725 tests: only run the printk test if CONFIG_PRINTK is enabled
Not all platforms enable CONFIG_PRINTK so lets only test if its enabled

Change-Id: I0fc83e21b4be1ff0e8fef94e66793a0b725a3db2
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-11-03 19:20:19 +00:00

48 lines
1.3 KiB
C

/*
* Copyright (c) 2016 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <ztest.h>
extern void byteorder_test_memcpy_swap(void);
extern void byteorder_test_mem_swap(void);
extern void atomic_test(void);
extern void bitfield_test(void);
extern void intmath_test(void);
extern void printk_test(void);
extern void ring_buffer_test(void);
extern void slist_test(void);
extern void rand32_test(void);
void test_main(void)
{
ztest_test_suite(common_test,
ztest_unit_test(byteorder_test_memcpy_swap),
ztest_unit_test(byteorder_test_mem_swap),
ztest_unit_test(atomic_test),
#ifdef CONFIG_PRINTK
ztest_unit_test(printk_test),
#endif
ztest_unit_test(ring_buffer_test),
ztest_unit_test(slist_test),
ztest_unit_test(rand32_test),
ztest_unit_test(intmath_test)
);
ztest_run_test_suite(common_test);
}