1 /*
2 * Copyright (c) 2020 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #define LOG_LEVEL LOG_LEVEL_INF
8 #include <zephyr/logging/log.h>
9 #include <zephyr/kernel.h>
10 #include <zephyr/ztest.h>
11 #include <zephyr/tc_util.h>
12 LOG_MODULE_DECLARE(brd_pm_test);
13 #include "power_mgmt.h"
14
15 #define MAX_CYCLES 2ul
16
ZTEST(power_mgmt,test_pm_dummyinit)17 ZTEST(power_mgmt, test_pm_dummyinit)
18 {
19 test_dummy_init();
20 }
21
ZTEST(power_mgmt,test_pm_singlethread)22 ZTEST(power_mgmt, test_pm_singlethread)
23 {
24 test_pwr_mgmt_singlethread(MAX_CYCLES);
25 }
26
ZTEST(power_mgmt,test_pm_multithread)27 ZTEST(power_mgmt, test_pm_multithread)
28 {
29 test_pwr_mgmt_multithread(MAX_CYCLES);
30 }
31
32 ZTEST_SUITE(power_mgmt, NULL, NULL, NULL, NULL, NULL);
33