Disabling SMP mode for certain tests was a one-release thing, done to avoid having to triage every test independently (MANY are not SMP-safe), and with the knowledge that it was probably hiding bugs in the kernel. Turn it on pervasively. Tests are treated with a combination of flagging specific cases as "1cpu" where we have short-running tests that can be independently run in an otherwise SMP environment, and via setting CONFIG_MP_NUM_CPUS=1 where that's not possible (which still runs the full SMP kernel config, but with only one CPU available). Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
30 lines
835 B
C
30 lines
835 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <ztest.h>
|
|
|
|
extern void test_mslab_kinit(void);
|
|
extern void test_mslab_kdefine(void);
|
|
extern void test_mslab_kdefine_extern(void);
|
|
extern void test_mslab_alloc_free_thread(void);
|
|
extern void test_mslab_alloc_align(void);
|
|
extern void test_mslab_alloc_timeout(void);
|
|
extern void test_mslab_used_get(void);
|
|
|
|
/*test case main entry*/
|
|
void test_main(void)
|
|
{
|
|
ztest_test_suite(mslab_api,
|
|
ztest_unit_test(test_mslab_kinit),
|
|
ztest_unit_test(test_mslab_kdefine),
|
|
ztest_unit_test(test_mslab_kdefine_extern),
|
|
ztest_unit_test(test_mslab_alloc_free_thread),
|
|
ztest_unit_test(test_mslab_alloc_align),
|
|
ztest_1cpu_unit_test(test_mslab_alloc_timeout),
|
|
ztest_unit_test(test_mslab_used_get));
|
|
ztest_run_test_suite(mslab_api);
|
|
}
|