zephyr/tests/posix/common/src/main.c
Niranjhana N 81f835f27c tests: posix: group pthread tests
Grouped the five pthread tests into two -
pthread execution and pthread termination;
removed redundant tests.

Added the refactored tests and pthread_key
tests into the common folder.

Signed-off-by: Niranjhana N <niranjhana.n@intel.com>
2018-10-10 09:29:42 -04:00

41 lines
1.3 KiB
C

/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <pthread.h>
extern void test_posix_clock(void);
extern void test_posix_mqueue(void);
extern void test_posix_normal_mutex(void);
extern void test_posix_recursive_mutex(void);
extern void test_posix_semaphore(void);
extern void test_posix_rw_lock(void);
extern void test_posix_realtime(void);
extern void test_posix_timer(void);
extern void test_posix_pthread_execution(void);
extern void test_posix_pthread_termination(void);
extern void test_posix_multiple_threads_single_key(void);
extern void test_posix_single_thread_multiple_keys(void);
void test_main(void)
{
ztest_test_suite(posix_apis,
ztest_unit_test(test_posix_pthread_execution),
ztest_unit_test(test_posix_pthread_termination),
ztest_unit_test(test_posix_multiple_threads_single_key),
ztest_unit_test(test_posix_single_thread_multiple_keys),
ztest_unit_test(test_posix_clock),
ztest_unit_test(test_posix_semaphore),
ztest_unit_test(test_posix_normal_mutex),
ztest_unit_test(test_posix_recursive_mutex),
ztest_unit_test(test_posix_mqueue),
ztest_unit_test(test_posix_realtime),
ztest_unit_test(test_posix_timer),
ztest_unit_test(test_posix_rw_lock)
);
ztest_run_test_suite(posix_apis);
}