Added LD_PRELOAD library to monitor msync calls in testing

This commit is contained in:
Patrick J Cherry
2018-02-07 21:45:20 +00:00
parent 55548cc969
commit 79181b3153
4 changed files with 86 additions and 8 deletions

View File

@@ -85,7 +85,8 @@ check: $(OBJS) $(CHECK_BINS)
r=true ; for bin in $(CHECK_BINS); do $$bin || r=false; done ; $$r
acceptance: build
cd tests/acceptance && RUBYOPT='-I.' ruby nbd_scenarios -v
$(MAKE) -C tests/acceptance/ld_preloads all
cd tests/acceptance && LD_PRELOADS=$$(echo ld_preloads/*.o) RUBYOPT='-I.' ruby nbd_scenarios -v
test: check acceptance
@@ -108,6 +109,7 @@ install:
clean:
rm -rf build/*
$(RM) $(LD_PRELOAD_OBJ)
.PHONY: clean objs check_objs all server proxy check_bins check doc build test acceptance