Improve binary coverage script
Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2530
This commit is contained in:
parent
73134ab6b7
commit
47d6196b32
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
|
||||
## README
|
||||
# In order to use this script to make a coverage profile of any memgraph binary
|
||||
@ -66,10 +66,6 @@ if [ -L "$target_path" ]; then
|
||||
target_path="$( readlink "$target_path" )"
|
||||
fi
|
||||
LLVM_PROFILE_FILE="$coverage_raw_file" $target_path $@
|
||||
code=$?
|
||||
if [ $code -ne 0 ]; then
|
||||
printf "\033[1;31mThe binary exited with a non-zero exit code ($code)!\033[0m\n"
|
||||
fi
|
||||
|
||||
# Find all source files
|
||||
src_files=$( find "$PROJECT_DIR/src" \( -name '*.cpp' -o -name '*.hpp' \) -print | sort | tr '\n' ' ' )
|
||||
|
Loading…
Reference in New Issue
Block a user