Home
last modified time | relevance | path

Searched refs:suite (Results 1 – 25 of 94) sorted by relevance

1234

/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/
Dztest_test.h359 struct ztest_unit_test *z_ztest_get_next_test(const char *suite, struct ztest_unit_test *prev);
409 #define Z_TEST_P(suite, fn, t_options) \ argument
410 struct ztest_unit_test_stats z_ztest_unit_test_stats_##suite##_##fn; \
411 static void _##suite##_##fn##_wrapper(void *data); \
412 static void suite##_##fn(void *data); \
413 static STRUCT_SECTION_ITERABLE(ztest_unit_test, z_ztest_unit_test__##suite##__##fn) = { \
414 .test_suite_name = STRINGIFY(suite), \
416 .test = (_##suite##_##fn##_wrapper), \
418 .stats = &z_ztest_unit_test_stats_##suite##_##fn \
420 static void _##suite##_##fn##_wrapper(void *wrapper_data) \
[all …]
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest.c324 static void run_test_functions(struct ztest_suite_node *suite, struct ztest_unit_test *test, in run_test_functions() argument
488 static int run_test(struct ztest_suite_node *suite, struct ztest_unit_test *test, void *data) in run_test() argument
516 if (suite->before) { in run_test()
517 suite->before(data); in run_test()
519 run_test_functions(suite, test, data); in run_test()
528 if (suite->after != NULL) { in run_test()
529 suite->after(data); in run_test()
648 struct ztest_suite_node *suite = a; in test_cb() local
655 if (suite->before) { in test_cb()
656 suite->before(/*data=*/c); in test_cb()
[all …]
Dztest_shell.c119 bool z_ztest_should_suite_run(const void *state, struct ztest_suite_node *suite) in z_ztest_should_suite_run() argument
124 if (test_args_local != NULL && !z_ztest_testargs_contains(suite->name, NULL)) { in z_ztest_should_suite_run()
126 suite->stats->run_count++; in z_ztest_should_suite_run()
127 } else if (suite->predicate != NULL) { in z_ztest_should_suite_run()
128 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
148 bool z_ztest_should_test_run(const char *suite, const char *test) in z_ztest_should_test_run() argument
152 run_test = z_ztest_testargs_contains(suite, test); in z_ztest_should_test_run()
Dztest_defaults.c47 bool z_ztest_should_suite_run(const void *state, struct ztest_suite_node *suite) in z_ztest_should_suite_run() argument
51 if (suite->predicate != NULL) { in z_ztest_should_suite_run()
52 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
67 bool z_ztest_should_test_run(const char *suite, const char *test) in z_ztest_should_test_run() argument
Dztest_posix.c188 bool z_ztest_should_test_run(const char *suite, const char *test) in z_ztest_should_test_run() argument
193 z_ztest_testargs_contains(suite, test)); in z_ztest_should_test_run()
210 bool z_ztest_should_suite_run(const void *state, struct ztest_suite_node *suite) in z_ztest_should_suite_run() argument
214 if (test_args != NULL && !z_ztest_testargs_contains(suite->name, NULL)) { in z_ztest_should_suite_run()
216 suite->stats->run_count++; in z_ztest_should_suite_run()
217 } else if (suite->predicate != NULL) { in z_ztest_should_suite_run()
218 run_suite = suite->predicate(state); in z_ztest_should_suite_run()
/Zephyr-latest/samples/tfm_integration/tfm_regression_test/
DREADME.rst64 Test suite 'PSA protected storage S interface tests (TFM_PS_TEST_2XXX)' has PASSED
65 Test suite 'PS reliability tests (TFM_PS_TEST_3XXX)' has PASSED
66 Test suite 'PS rollback protection tests (TFM_PS_TEST_4XXX)' has PASSED
67 Test suite 'PSA internal trusted storage S interface tests (TFM_ITS_TEST_2XXX)' has PASSED
68 Test suite 'ITS reliability tests (TFM_ITS_TEST_3XXX)' has PASSED
69 Test suite 'Crypto secure interface tests (TFM_CRYPTO_TEST_5XXX)' has PASSED
70 … Test suite 'Initial Attestation Service secure interface tests(TFM_ATTEST_TEST_1XXX)' has PASSED
71 Test suite 'Platform Service Secure interface tests(TFM_PLATFORM_TEST_1XXX)' has PASSED
72 Test suite 'IPC secure interface test (TFM_IPC_TEST_1XXX)' has PASSED
107 Test suite 'PSA protected storage NS interface tests (TFM_PS_TEST_1XXX)' has PASSED
[all …]
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dreports.py153 for suite in suites_to_report:
156 name=suite.get("name"), time="0",
165 ET.SubElement(eleTSPropetries, 'property', name="platform", value=suite.get("platform"))
166 ET.SubElement(eleTSPropetries, 'property', name="architecture", value=suite.get("arch"))
170 handler_time = suite.get('execution_time', 0)
171 runnable = suite.get('runnable', 0)
173 ts_status = TwisterStatus(suite.get('status'))
174 classname = Path(suite.get("name","")).name
175 for tc in suite.get("testcases", []):
177 reason = tc.get('reason', suite.get('reason', 'Unknown'))
[all …]
/Zephyr-latest/scripts/tests/twister/
Dtest_harness.py775 state=GTEST_START_STATE, suite="suite_name", test="test_name"
795 state=GTEST_START_STATE, suite="suite_name", test="test_name"
798 state=GTEST_PASS_STATE, suite="suite_name", test="test_name"
820 state=GTEST_START_STATE, suite="suite_name", test="test_name"
823 state=GTEST_FAIL_STATE, suite="suite_name", test="test_name"
845 state=GTEST_START_STATE, suite="suite_name", test="test_name"
848 state=GTEST_SKIP_STATE, suite="suite_name", test="test_name"
870 state=GTEST_START_STATE, suite="suite_name", test="test_name"
873 state=GTEST_PASS_STATE, suite="suite_name", test="test_name"
896 state=GTEST_START_STATE, suite="suite_name", test="test_name"
[all …]
Dtest_testsuite.py378 suite = TestSuite(testsuite_root, suite_path, name)
379 assert suite.name == expected
777 suite = TestSuite(testsuite_root, suite_path, name)
778 suite.add_subcases(data, parsed_subcases, suite_names)
780 assert sorted(suite.ztest_suite_names) == sorted(suite_names)
782 assert len(suite.testcases) == len(expected)
783 for testcase in suite.testcases:
844 suite = TestSuite(testsuite_root, suite_path, name)
849 suite.load(data)
857 assert getattr(suite, attr_name) == value
[all …]
/Zephyr-latest/scripts/coccinelle/
Dmacros.h17 #define ZTEST(suite, fn) static void _##suite##_##fn##_wrapper(void)
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h29 #define DEFINE_TEST_VARIANT1(suite, name, variant, a1) \ argument
30 ZTEST(suite, test_##name##_##variant) \
35 #define DEFINE_TEST_VARIANT2(suite, name, variant, a1, a2) \ argument
36 ZTEST(suite, test_##name##_##variant) \
41 #define DEFINE_TEST_VARIANT3(suite, name, variant, a1, a2, a3) \ argument
42 ZTEST(suite, test_##name##_##variant) \
47 #define DEFINE_TEST_VARIANT4(suite, name, variant, a1, a2, a3, a4) \ argument
48 ZTEST(suite, test_##name##_##variant) \
53 #define DEFINE_TEST_VARIANT5(suite, name, variant, a1, a2, a3, a4, a5) \ argument
54 ZTEST(suite, test_##name##_##variant) \
[all …]
/Zephyr-latest/tests/ztest/fail/
DREADME.rst9 In order to test the actual framework's failure cases, this test suite has to do something unique.
13 - ``ztest_test_fail()`` during either the ``after`` or ``teardown`` phase of the test suite
14 - ``ztest_test_skip()`` during either the ``after`` or ``teardown`` phase of the test suite
15 - ``ztest_test_pass()`` during either the ``after`` or ``teardown`` phase of the test suite
/Zephyr-latest/tests/drivers/gpio/gpio_nrf/
DREADME.txt3 The suite specified here tests NRF specific
6 The suite is perfomed with CONFIG_GPIO_NRFX_INTERRUPT=n
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/
DKconfig42 prompt "Device Advisor test suite"
45 Select the AWS Device Advisor test suite to run.
48 bool "No test suite running"
56 bool "Test suite for receiving QoS 1 messages"
71 - Use QoS 0 when passing DQP test suite
/Zephyr-latest/tests/drivers/can/host/
DREADME.rst9 This test suite uses `python-can`_ for testing Controller Area Network (CAN) communication between a
15 The test suite has the following prerequisites:
32 around the concept of a configuration "context. The configuration context for this test suite can be
39 * The configuration context can be overridden using the ``--can-context`` test suite argument
49 Running the test suite on :ref:`native_sim` relies on the `Linux SocketCAN`_ virtual CAN driver
53 test suite:
70 Once the virtual SocketCAN interface has been created, brought up, and configured the test suite can
77 After the test suite has completed, the virtual SocketCAN interface can be removed again:
86 Running the test suite on hardware requires a physical CAN adapter connected to the host PC. The CAN
112 Once the SocketCAN interface has been brought up and configured the test suite can be launched using
[all …]
/Zephyr-latest/tests/arch/x86/nmi/
DREADME.txt19 Running test suite nmi
25 Test suite nmi succeeded
/Zephyr-latest/tests/arch/arm/arm_thread_swap/
DREADME.txt1 Title: Test suite to verify the thread-swap (context-switch) and system-calls
72 Running test suite arm_thread_swap
77 Test suite arm_thread_swap succeeded
78 Running test suite arm_syscalls
85 Test suite arm_syscalls succeeded
/Zephyr-latest/scripts/west_commands/runners/
Drenode-robot.py60 for suite in self.testsuite:
61 cmd.append(suite)
/Zephyr-latest/tests/cmake/zephyr_get/
Dsysbuild.cmake4 # multiple instances of the same test suite with minor tweaks,
33 # Defer until all test suite copies have been executed.
/Zephyr-latest/tests/arch/arm/arm_irq_advanced_features/
DREADME.txt4 This test suite verifies the behavior of CONFIG_ZERO_LATENCY_IRQS and
48 Running test suite arm_irq_advanced_features
61 Test suite arm_irq_advanced_features succeeded
/Zephyr-latest/tests/arch/arm/arm_sw_vector_relay/
DREADME.txt36 Running test suite arm_sw_vector_relay
41 Test suite arm_sw_vector_relay succeeded
/Zephyr-latest/tests/kernel/sleep/
DREADME.txt34 Running test suite sleep
51 Test suite sleep succeeded
/Zephyr-latest/tests/lib/c_lib/common/
DREADME.txt7 or non-functional, and is NOT intended to be a comprehensive test suite
37 Running test suite test_libs
/Zephyr-latest/tests/arch/arm/arm_tz_wrap_func/src/
DREADME.txt41 Running test suite tz_wrap_func
46 Test suite tz_wrap_func succeeded
/Zephyr-latest/doc/develop/test/
Dztest.rst13 Creating a test suite
16 Using Ztest to create a test suite is as easy as calling the :c:macro:`ZTEST_SUITE`. The macro
19 * ``suite_name`` - The name of the suite. This name must be unique within a single binary.
22 :c:func:`ztest_run_all` and should return a boolean to decide if the suite should run.
24 will be called and run once per test suite run.
26 test in this suite.
28 test in this suite.
30 all the tests in the suite.
32 Below is an example of a test suite using a predicate:
46 Adding tests to a suite
[all …]

1234