-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
100 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,29 +14,15 @@ test: | |
${MAKE} wsinit | ||
${MAKE} new PKG=test_pkg [email protected] AUTHOR=example | ||
${MAKE} wsscrape_all | ||
#${MAKE} dep_to_repolist PKG=test_pkg | ||
${MAKE} dep_to_repolist PKG=test_pkg | ||
${MAKE} wsupdate | ||
${MAKE} log_output TARGET=wsstatus | ||
#${MAKE} dep_install PKG=test_pkg | ||
#${MAKE} test_pkg BUILD_PROFILE=test_profile | ||
${MAKE} dep_install PKG=test_pkg | ||
${MAKE} test_pkg BUILD_PROFILE=test_profile | ||
# --- | ||
# dependencies | ||
${MAKE} -f ${THIS_MAKEFILE} test_dependencies | ||
# --- | ||
# workspace cmake toolchain | ||
cp -R ccws/examples/.ccws "${WORKSPACE_SRC}/" | ||
echo 'message(FATAL_ERROR "toolchain inclusion")' > "${WORKSPACE_SRC}/.ccws/toolchain.cmake" | ||
# should fail | ||
! ${MAKE} examples_rclcpp_minimal_subscriber | ||
rm -Rf "${WORKSPACE_SRC}/.ccws" | ||
# --- | ||
# static checks | ||
${MAKE} bp_install_build BUILD_PROFILE=static_checks | ||
# --- | ||
# deb | ||
${MAKE} bp_install_build BUILD_PROFILE=deb | ||
${MAKE} examples_rclcpp_minimal_subscriber BUILD_PROFILE=deb BASE_BUILD_PROFILE=reldebug | ||
${MAKE} deb_lint PKG=examples_rclcpp_minimal_subscriber BUILD_PROFILE=deb BASE_BUILD_PROFILE=reldebug | ||
${MAKE} -f ${THIS_MAKEFILE} test_deb | ||
${MAKE} -f ${THIS_MAKEFILE} test_cmake_toolchain | ||
# --- | ||
# test various build profiles | ||
sudo apt install ros-${ROS_DISTRO}-ros2cli # used to test setup.bash | ||
|
@@ -45,6 +31,10 @@ test: | |
${MAKE} -f ${THIS_MAKEFILE} build_with_profile BUILD_PROFILE=scan_build | ||
${MAKE} -f ${THIS_MAKEFILE} build_with_profile BUILD_PROFILE=reldebug | ||
# --- | ||
# clangd | ||
${MAKE} bp_install_build BUILD_PROFILE=clangd | ||
${MAKE} BUILD_PROFILE=clangd BASE_BUILD_PROFILE=reldebug | ||
# --- | ||
# check valgrind exec profile | ||
${MAKE} ep_install EXEC_PROFILE=valgrind | ||
${MAKE} wstest EXEC_PROFILE=valgrind | ||
|
@@ -53,34 +43,69 @@ test: | |
${MAKE} ep_install EXEC_PROFILE=core_pattern | ||
${MAKE} wstest EXEC_PROFILE="core_pattern valgrind" | ||
# --- | ||
# clangd | ||
${MAKE} bp_install_build BUILD_PROFILE=clangd | ||
${MAKE} BUILD_PROFILE=clangd BASE_BUILD_PROFILE=reldebug | ||
# --- | ||
# documentation | ||
${MAKE} bp_install_build BUILD_PROFILE=doxygen | ||
${MAKE} PKG=examples_rclcpp_minimal_subscriber BUILD_PROFILE=doxygen | ||
${MAKE} BUILD_PROFILE=doxygen | ||
${MAKE} graph PKG=examples_rclcpp_minimal_subscriber | ||
${MAKE} graph | ||
${MAKE} cache_clean | ||
test -z "${WORKSPACE_SRC}" || (test -d "${WORKSPACE_SRC}" && ls "${WORKSPACE_SRC}") | ||
# --- | ||
${MAKE} wspurge | ||
${MAKE} wsinit | ||
${MAKE} add REPO="https://github.com/asherikov/ariles.git" VERSION="pkg_ws_2" | ||
${MAKE} wsupdate | ||
${MAKE} dep_install | ||
${MAKE} build_all | ||
# --- | ||
# cppcheck | ||
cp -R ccws/examples/.ccws "${WORKSPACE_SRC}" | ||
${MAKE} bp_install_build BUILD_PROFILE=cppcheck | ||
${MAKE} BUILD_PROFILE=cppcheck BASE_BUILD_PROFILE=reldebug | ||
rm -Rf "${WORKSPACE_SRC}/.ccws" | ||
# --- | ||
# static checks | ||
${MAKE} bp_install_build BUILD_PROFILE=static_checks | ||
${MAKE} BUILD_PROFILE=static_checks | ||
|
||
test_dependencies: | ||
${MAKE} bp_purge | ||
${MAKE} wspurge | ||
${MAKE} bp_install_build | ||
${MAKE} new PKG=test_dependencies | ||
cp -R ccws/tests/dependencies/package.xml "${WORKSPACE_SRC}/test_dependencies" | ||
${MAKE} dep_install PKG=test_dependencies | ||
${MAKE} wspurge | ||
${MAKE} add REPO="https://github.com/ros2/examples" VERSION="${ROS_DISTRO}" | ||
${MAKE} wsupdate | ||
${MAKE} dep_install PKG=examples_rclcpp_minimal_subscriber | ||
${MAKE} dep_to_repolist | ||
${MAKE} dep_install | ||
${MAKE} wsupdate | ||
# --- | ||
# drop downloaded ROS packages, we are going to install binaries | ||
${MAKE} wsclean | ||
mv "${WORKSPACE_SRC}/examples" ./ | ||
rm -Rf "${WORKSPACE_SRC}"/* | ||
mv examples "${WORKSPACE_SRC}" | ||
|
||
test_deb: | ||
${MAKE} bp_install_build BUILD_PROFILE=deb | ||
${MAKE} examples_rclcpp_minimal_subscriber BUILD_PROFILE=deb BASE_BUILD_PROFILE=reldebug | ||
${MAKE} deb_lint PKG=examples_rclcpp_minimal_subscriber BUILD_PROFILE=deb BASE_BUILD_PROFILE=reldebug | ||
sudo dpkg -i artifacts/*/*.deb | ||
dpkg --get-selections | grep minimal-subscriber | cut -f 1 | xargs sudo apt purge --yes | ||
|
||
test_cmake_toolchain: | ||
# workspace cmake toolchain | ||
cp -R ccws/examples/.ccws "${WORKSPACE_SRC}/" | ||
echo 'message(FATAL_ERROR "toolchain inclusion")' > "${WORKSPACE_SRC}/.ccws/toolchain.cmake" | ||
# should fail | ||
! ${MAKE} examples_rclcpp_minimal_subscriber | ||
rm -Rf "${WORKSPACE_SRC}/.ccws" | ||
|
||
build_with_profile: | ||
${MAKE} wsclean | ||
${MAKE} bp_install_build | ||
#${MAKE} build_all | ||
${MAKE} build_all | ||
${MAKE} examples_rclcpp_minimal_subscriber | ||
# workspace test | ||
${MAKE} wstest | ||
|