In this example, python test case get the running directory by handling the "--cmdopt" option passed by pytest. Signed-off-by: YouhuaX Zhu <youhuax.zhu@intel.com>
20 lines
297 B
C
20 lines
297 B
C
/*
|
|
* Copyright (c) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#include <ztest.h>
|
|
void test_pytest(void)
|
|
{
|
|
TC_PRINT("Hello world\n");
|
|
}
|
|
|
|
void test_main(void)
|
|
{
|
|
ztest_test_suite(test_pytest,
|
|
ztest_unit_test(test_pytest)
|
|
);
|
|
|
|
ztest_run_test_suite(test_pytest);
|
|
}
|