Skip to content

Commit

Permalink
updated test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Feb 11, 2024
1 parent 5fc948a commit df7a857
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions test/compile_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -e

trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR

# build the package
catkin build -DMRS_ENABLE_TESTING=1 # it has to be fully built normally before building with --catkin-make-args tests
catkin build -DMRS_ENABLE_TESTING=1 --catkin-make-args tests
4 changes: 2 additions & 2 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR

# build the packages
catkin build # it has to be fully built normally before building with --catkin-make-args tests
catkin build -DMRS_ENABLE_TESTING=1 # it has to be fully built normally before building with --catkin-make-args tests
catkin build -DMRS_ENABLE_TESTING=1 --catkin-make-args tests

catkin test -i -p 1 -s
catkin test -i -p 1 -s -c

0 comments on commit df7a857

Please sign in to comment.