Skip to content

Commit c2e272b

Browse files
committed
tests: Ready to use cmake compile tests/hello
Signed-off-by: Rong Tao <rtoax@foxmail.com>
1 parent 1ec5924 commit c2e272b

5 files changed

Lines changed: 9 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ if (CONFIG_BUILD_BASH_COMPLETIONS)
331331
add_subdirectory(scripts)
332332
endif(CONFIG_BUILD_BASH_COMPLETIONS)
333333

334+
if(CONFIG_BUILD_TESTING)
335+
add_subdirectory(tests)
336+
endif()
337+
334338
# uninstall targets
335339
if(NOT TARGET uninstall)
336340
configure_file(

docs/en/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to
1414
#### Breaking Changes
1515
- Add `ULPATCH_LICENSE()` and `ULPATCH_FILE_VERSION=5`.
1616
#### Added
17+
- Ready to use cmake compile tests/hello.
1718
- Add git as depends.
1819
- task: add auxv.c
1920
#### Changed

docs/zh/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#### 重大变更
1414
- 添加 `ULPATCH_LICENSE()` 并且 `ULPATCH_FILE_VERSION=5`.
1515
#### 添加
16+
- 准备将 tests/hello 使用 cmake 编译。
1617
- 将 git 作为依赖。
1718
- task: 添加 auxv.c。
1819
#### 更改

tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
add_subdirectory(hello)

tests/hello/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later

0 commit comments

Comments
 (0)