diff options
author | Jani Nikula <jani@nikula.org> | 2014-03-12 19:26:04 +0200 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-03-25 18:51:06 -0300 |
commit | d647a1917361aaf39d19a2c32df16e8490082a0e (patch) | |
tree | 09cd418ae406639f797eac8fd1ecf4cd50db105d /test/Makefile.local | |
parent | 57b4ef6f30d41cd14aa570b329841fc2082260ff (diff) |
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.
Diffstat (limited to 'test/Makefile.local')
-rw-r--r-- | test/Makefile.local | 8 |
1 files changed, 8 insertions, 0 deletions
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 \ |