mirror of
https://github.com/clearlinux/bsdiff.git
synced 2026-04-28 10:53:45 +00:00
Allow for skipping valgrind use in tests
In case the system valgrind is not functioning properly, allow the test suite to run without using the tool by setting SKIP_VALGRIND=1 for `make check`. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
@@ -8,10 +8,15 @@ testnum=0
|
||||
|
||||
sudo rm -f *.diff *.out
|
||||
|
||||
VALGRIND="valgrind -q"
|
||||
if [ -n "$SKIP_VALGRIND" ]; then
|
||||
VALGRIND=""
|
||||
fi
|
||||
|
||||
libdir="$abs_builddir/.libs"
|
||||
ldpath="LD_LIBRARY_PATH=$libdir"
|
||||
BSDIFF="sudo $ldpath valgrind -q $libdir/bsdiff"
|
||||
BSPATCH="sudo $ldpath valgrind -q $libdir/bspatch"
|
||||
BSDIFF="sudo $ldpath $VALGRIND $libdir/bsdiff"
|
||||
BSPATCH="sudo $ldpath $VALGRIND $libdir/bspatch"
|
||||
|
||||
# If exit status is 0, the test succeeded. Else it failed.
|
||||
check_success() {
|
||||
|
||||
Reference in New Issue
Block a user