0001-harness-allow-running-tests-against-the-installed-li.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 6507d3f7a2b1985a33d06f280b9388aa34054889 Mon Sep 17 00:00:00 2001
  2. From: Jeff Moyer <jmoyer@redhat.com>
  3. Date: Mon, 29 Jul 2019 10:07:23 -0400
  4. Subject: [PATCH libaio 01/28] harness: allow running tests against the
  5. installed library
  6. A user can now specify "LIBAIO=/path/to/libaio.so" in order to run
  7. the test harness against the installed library.
  8. Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
  9. ---
  10. harness/Makefile | 6 +++++-
  11. 1 file changed, 5 insertions(+), 1 deletion(-)
  12. diff --git a/harness/Makefile b/harness/Makefile
  13. index f477737..87b33f6 100644
  14. --- a/harness/Makefile
  15. +++ b/harness/Makefile
  16. @@ -9,10 +9,14 @@ HARNESS_SRCS:=main.c
  17. CFLAGS+=-Wall -Werror -I../src -g -O2 -DPAGE_SIZE=$(shell getconf PAGESIZE)
  18. #-lpthread -lrt
  19. +# Change this on the build line to run tests against the installed libraries:
  20. +# make LIBAIO=-laio partcheck
  21. +LIBAIO?=../src/libaio.a
  22. +
  23. all: $(PROGS)
  24. $(PROGS): %.p: %.t $(HARNESS_SRCS)
  25. - $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c ../src/libaio.a -lpthread
  26. + $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c $(LIBAIO) -lpthread
  27. clean:
  28. rm -f $(PROGS) *.o runtests.out rofile wofile rwfile
  29. --
  30. 2.26.0.292.g33ef6b2f38