File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Original file line number Diff line number Diff line change 5
5
if GetDepend ('RT_USING_CI_ACTION' ) or GetDepend ('RTDUINO_UTEST_CORE' ):
6
6
src += Glob ('TC_*.c' )
7
7
src += Glob ('TC_*.cpp' )
8
+ if not GetDepend ('RTDUINO_UTEST_HIL' ):
9
+ SrcRemove (src , Glob ('TC_HIL_*.c' ))
10
+ SrcRemove (src , Glob ('TC_HIL_*.cpp' ))
8
11
9
12
group = DefineGroup ('utestcases' , src , depend = ['' ])
10
13
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2021-2025, RTduino Development Team
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ *
6
+ * https://github.com/RTduino/RTduino
7
+ * https://gitee.com/rtduino/RTduino
8
+ *
9
+ * Change Logs:
10
+ * Date Author Notes
11
+ * 2025-01-04 Meco Man first version
12
+ */
13
+ #include < RTduino.h>
14
+ #include < utest.h>
15
+
16
+ static void TC_digital (void )
17
+ {
18
+ digitalWrite (D3, LOW);
19
+ uassert_true (digitalRead (D3) == LOW);
20
+ digitalWrite (D3, HIGH);
21
+ uassert_true (digitalRead (D3) == HIGH);
22
+ }
23
+
24
+ /* Utest function to run all test cases */
25
+ static void utest_do_tc (void )
26
+ {
27
+ UTEST_UNIT_RUN (TC_digital);
28
+ }
29
+
30
+ UTEST_TC_EXPORT (utest_do_tc, " RTduino.core.HIL.IO" , RT_NULL, RT_NULL, 1000 );
You can’t perform that action at this time.
0 commit comments