From aec4e931e4194e7d1b7a9c047e70f13433fa8458 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 6 Apr 2024 09:27:02 -0300 Subject: Canonicalize builds: remove "fuzz" references --- Makefile | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6ebcbc7..33cbe67 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ LDLIBS = -lsiphash .SUFFIXES: -.SUFFIXES: .in .c .o .a .bin .msg .cat .bin-check +.SUFFIXES: .in .c .o .a .bin .bin-check .msg .cat .in: sed \ @@ -50,15 +50,11 @@ sources.o = $(sources.c:.c=.o) tests.o = $(tests.c:.c=.o) tests.a = $(tests.c:.c=.a) tests.bin = $(tests.c:.c=.bin) -fuzz.o = $(fuzz.c:.c=.o) -fuzz.a = $(fuzz.c:.c=.a) -fuzz.bin = $(fuzz.c:.c=.bin) archives = \ lib$(NAME).a \ $(tests.a) \ $(NAME).a \ - $(fuzz.a) \ sources = \ $(sources.c) \ @@ -84,9 +80,6 @@ derived-assets = \ $(NAME).bin \ side-assets = \ - $(fuzz.o) \ - $(fuzz.a) \ - $(fuzz.bin) \ tests/logerr.c.txt \ tests/catalog.c.txt \ @@ -99,11 +92,9 @@ all: $(derived-assets) lib$(NAME).a: $(sources.o) $(NAME).a: $(sources.o) src/main.o -$(fuzz.bin): lib$(NAME).a src/config.h: Makefile deps.mk $(sources.o) $(tests.o) src/main.o: Makefile deps.mk src/config.h -tests/slurp.o: Makefile deps.mk src/config.h -tests/slurp.o: tests/slurp.h +tests/slurp.o: tests/slurp.h Makefile deps.mk src/config.h $(archives): @@ -124,19 +115,13 @@ $(tests.bin-check): check-unit: $(tests.bin-check) +check-integration: + + ## Run all tests. Each test suite is isolated, so that a parallel ## build can run tests at the same time. The required artifacts ## are created if missing. -check: check-unit - - - -fuzz.bin-check = $(fuzz.c:.c=.bin-check) -$(fuzz.bin-check): - $(EXEC)$*.bin tests/fuzz/corpus/ $(FUZZFLAGS) - -## Run fuzzing targets indefinitely. -fuzz: $(fuzz.bin-check) +check: check-unit check-integration -- cgit v1.2.3