From d647a1917361aaf39d19a2c32df16e8490082a0e Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Wed, 12 Mar 2014 19:26:04 +0200 Subject: test: conditionally test compact depending on configured support I still have one machine with old enough Xapian to not have compaction support. Make the tests check for unsupported compact operation when compact is not available. --- test/Makefile.local | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Makefile.local') diff --git a/test/Makefile.local b/test/Makefile.local index ae9db809..2b18bdb9 100644 --- a/test/Makefile.local +++ b/test/Makefile.local @@ -35,9 +35,17 @@ $(dir)/symbol-test: $(dir)/symbol-test.o lib/$(LINKER_NAME) $(dir)/parse-time: $(dir)/parse-time.o parse-time-string/parse-time-string.o $(call quiet,CC) $^ -o $@ +$(dir)/have-compact: Makefile.config +ifeq ($(HAVE_XAPIAN_COMPACT),1) + ln -sf /bin/true $@ +else + ln -sf /bin/false $@ +endif + .PHONY: test check TEST_BINARIES=$(dir)/arg-test \ + $(dir)/have-compact \ $(dir)/hex-xcode \ $(dir)/random-corpus \ $(dir)/parse-time \ -- cgit v1.2.3