libaio/tests/test_against_local.patch
2024-12-11 03:11:18 +00:00

19 lines
626 B
Diff

--- harness/Makefile 2019-06-28 02:50:39.028675707 -0400
+++ harness/Makefile.new 2019-06-28 02:55:12.037687654 -0400
@@ -9,10 +9,14 @@
CFLAGS+=-Wall -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