MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / auto_test

Function auto_test

bsp/phytium/libraries/drivers_example/auto_test.c:69–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69int auto_test() {
70
71#if defined BSP_USING_CAN
72 register_test("can_loopback_sample", can_loopback_sample);
73#endif
74#if defined BSP_USING_SPI
75 register_test("spi_sample", fspim_test_sample);
76#endif
77#if defined BSP_USING_GPIO
78 register_test("gpio_sample", gpio_toggle_sample);
79#endif
80#if defined BSP_USING_I2C
81#if defined (PD2408_TEST_A_BOARD) || defined (PD2408_TEST_B_BOARD)
82 register_test("i2c_msg_sample", i2c_msg_sample);
83#else
84 register_test("i2c_sample", i2c_sample);
85#endif
86#endif
87#if defined BSP_USING_QSPI
88#if !defined(TARGET_PD2408)
89 register_test("qspi_sample", qspi_sample);
90#endif
91#endif
92
93 // 运行测试
94 run_all_tests();
95
96 return 0;
97}

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

register_testFunction · 0.85
run_all_testsFunction · 0.85

Tested by

no test coverage detected