New test checks watchdog API if the simpliest test cases work correctly. Each test contains description at the begining of the source file. This implementation replace old SoC-centric implementation. Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
26 lines
426 B
C
26 lines
426 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
* Copyright (c) 2018 Nordic Semiconductor
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @addtogroup t_driver_wdt
|
|
* @{
|
|
* @defgroup t_wdt_basic test_wdt_basic_operations
|
|
* @}
|
|
*/
|
|
|
|
#include <zephyr.h>
|
|
#include <ztest.h>
|
|
#include "test_wdt.h"
|
|
|
|
|
|
void test_main(void)
|
|
{
|
|
ztest_test_suite(wdt_basic_test,
|
|
ztest_unit_test(test_wdt));
|
|
ztest_run_test_suite(wdt_basic_test);
|
|
}
|