diff options
author | Jeff Moyer <jmoyer@redhat.com> | 2019-07-29 10:07:23 -0400 |
---|---|---|
committer | Jeff Moyer <jmoyer@redhat.com> | 2019-07-29 10:07:23 -0400 |
commit | 6507d3f7a2b1985a33d06f280b9388aa34054889 (patch) | |
tree | 77dd62f03f133c74d1839104e0a1030f5a8fa3a4 | |
parent | d025927efa75a0d1b46ca3a5ef331caa2f46ee0e (diff) | |
download | libaio-6507d3f7a2b1985a33d06f280b9388aa34054889.tar.gz |
harness: allow running tests against the installed library
A user can now specify "LIBAIO=/path/to/libaio.so" in order to run
the test harness against the installed library.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
-rw-r--r-- | harness/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/harness/Makefile b/harness/Makefile index f477737..87b33f6 100644 --- a/harness/Makefile +++ b/harness/Makefile @@ -9,10 +9,14 @@ HARNESS_SRCS:=main.c CFLAGS+=-Wall -Werror -I../src -g -O2 -DPAGE_SIZE=$(shell getconf PAGESIZE) #-lpthread -lrt +# Change this on the build line to run tests against the installed libraries: +# make LIBAIO=-laio partcheck +LIBAIO?=../src/libaio.a + all: $(PROGS) $(PROGS): %.p: %.t $(HARNESS_SRCS) - $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c ../src/libaio.a -lpthread + $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c $(LIBAIO) -lpthread clean: rm -f $(PROGS) *.o runtests.out rofile wofile rwfile |