From 922c87b3e8f6a3962761c7ee15b8027ac533936f Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Mon, 18 Jun 2018 20:59:44 +0100 Subject: [PATCH] Avoid rebuilding tests each time they're run. --- src/tests/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/Makefile b/src/tests/Makefile index f713af7..2e4395b 100644 --- a/src/tests/Makefile +++ b/src/tests/Makefile @@ -8,22 +8,22 @@ check: build-tests ./proctests ./loadtests -build-tests: tests proctests loadtests +build-tests: prepare-incdir tests proctests loadtests # Create an "includes" directory populated with a combination of real and mock headers: prepare-incdir: mkdir -p includes rm -rf includes/*.h - cd includes; ln -sf ../../includes/*.h . - cd includes; ln -sf ../test-includes/*.h . + cd includes; ln -f ../../includes/*.h . + cd includes; ln -f ../test-includes/*.h . -tests: prepare-incdir $(parent_objs) tests.o test-dinit.o test-bpsys.o test-run-child-proc.o +tests: $(parent_objs) tests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(CXX) $(SANITIZEOPTS) -o tests $(parent_objs) tests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(LDFLAGS) -proctests: prepare-incdir $(parent_objs) proctests.o test-dinit.o test-bpsys.o test-run-child-proc.o +proctests: $(parent_objs) proctests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(CXX) $(SANITIZEOPTS) -o proctests $(parent_objs) proctests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(LDFLAGS) -loadtests: prepare-incdir $(parent_objs) loadtests.o test-dinit.o test-bpsys.o test-run-child-proc.o +loadtests: $(parent_objs) loadtests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(CXX) $(SANITIZEOPTS) -o loadtests $(parent_objs) loadtests.o test-dinit.o test-bpsys.o test-run-child-proc.o $(LDFLAGS) $(objects): %.o: %.cc -- 2.25.1