-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/trunk' into enroll_using_otp
- Loading branch information
Showing
5 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
file(GLOB_RECURSE files ${CMAKE_CURRENT_LIST_DIR}/test_*.c) | ||
foreach(file ${files}) | ||
# ${filename} - without `.c` | ||
get_filename_component(filename ${file} NAME) | ||
string(REPLACE ".c" "" filename ${filename}) | ||
# ${filename} - without `.c` | ||
get_filename_component(filename ${file} NAME) | ||
string(REPLACE ".c" "" filename ${filename}) | ||
|
||
add_executable(${filename} ${file}) | ||
target_link_libraries(${filename} PRIVATE atclient) | ||
add_test(NAME ${filename} COMMAND $<TARGET_FILE:${filename}>) | ||
endforeach() | ||
|
||
add_executable(${filename} ${file}) | ||
target_link_libraries(${filename} PRIVATE atclient) | ||
add_test(NAME ${filename} COMMAND $<TARGET_FILE:${filename}>) | ||
endforeach() |
2 changes: 1 addition & 1 deletion
2
packages/atclient/tests/test_cjson.c → packages/atcommons/tests/test_cjson.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <cJSON.h> | ||
#include <atcommons/json.h> | ||
#include <stddef.h> // IWYU pragma: keep | ||
#include <stdio.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters