Skip to content

Commit

Permalink
test/check-size: show error if make fails
Browse files Browse the repository at this point in the history
This patch adds an error message when compilation fails when running the
check-size script.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
  • Loading branch information
rst0git committed Jun 8, 2023
1 parent fd809b8 commit 4f51af5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/check-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ MAX_DIFF=51200
# Build the checkpointctl binary. If the commit is not self-contained,
# the build will fail, in which case there is no point checking for a
# change in the size of the binary.
make
if ! make; then
echo "ERROR: Compilation failed at $(git rev-parse --short HEAD)"
echo "Make sure that the compilation is successful for each commit."
exit 1
fi

# Store the binary size
BIN_SIZE=$(stat -c%s "$BIN_NAME")
# Print the size along with the commit hash
Expand Down

0 comments on commit 4f51af5

Please sign in to comment.