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 10, 2024
1 parent d7244ed commit 5fc948a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/all_tests.sh → test/clean_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,3 @@ for FILE in $OLD_FILES; do
echo "$0: removing old coverage file '$FILE'"
rm $FILE
done

cd $ORIGINAL_PATH

# build the package
catkin build # it has to be fully built normally before building with --catkin-make-args tests
catkin build --catkin-make-args tests

catkin test -i -p 1 -s
File renamed without changes.
12 changes: 12 additions & 0 deletions test/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/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 packages
catkin build # 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

0 comments on commit 5fc948a

Please sign in to comment.