-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05ab716
commit f12ec8a
Showing
3 changed files
with
30 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,9 @@ jobs: | |
distro: humble | ||
|
||
- name: Build the workspace | ||
uses: ichiro-its/ros2-ws-action/[email protected] | ||
uses: ichiro-its/ros2-ws-action/[email protected] | ||
|
||
- name: Test the workspace | ||
run: | | ||
source install/setup.bash | ||
colcon test --return-code-on-test-failure |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <gtest/gtest.h> | ||
|
||
|
||
int a_complex_function(int x) { return 2*x; } | ||
|
||
|
||
|
||
TEST(cpp_publisher_subscriber, useless_test) { | ||
ASSERT_EQ(a_complex_function(2), 5); | ||
} | ||
|
||
int main(int argc, char** argv) { | ||
testing::InitGoogleTest(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
} |