diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-02-14 01:15:26 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-02-14 01:15:26 +0000 |
commit | c3729b4589746a8e23b251f27fe3e4b157664366 (patch) | |
tree | 013766a9ae8225f180ed233bf1238057b8ffee13 | |
parent | 903ed02c0978edc6c8cd52d66425a84390e26bdc (diff) | |
download | netpbm-mirror-c3729b4589746a8e23b251f27fe3e4b157664366.tar.gz netpbm-mirror-c3729b4589746a8e23b251f27fe3e4b157664366.tar.xz netpbm-mirror-c3729b4589746a8e23b251f27fe3e4b157664366.zip |
Fixes for test with separate build tree
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2682 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | GNUmakefile | 24 | ||||
-rw-r--r-- | doc/TESTS | 4 |
2 files changed, 18 insertions, 10 deletions
diff --git a/GNUmakefile b/GNUmakefile index ca2181b3..ddcc882b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -456,9 +456,8 @@ deb: .PHONY: check-install # Test files in source tree. -# This does not work when Netpbm is compiled in a separate build dir. -check-tree : SRCBINDIRS :=./analyzer \ +check-tree : BUILDBINDIRS :=./analyzer \ ./converter/other \ ./converter/other/cameratopam \ ./converter/other/fiasco \ @@ -470,7 +469,6 @@ check-tree : SRCBINDIRS :=./analyzer \ ./converter/pbm/pbmtoppa \ ./converter/pgm \ ./converter/ppm \ -./converter/ppm/hpcdtoppm \ ./converter/ppm/ppmtompeg \ ./converter/ppm \ ./editor \ @@ -478,7 +476,14 @@ check-tree : SRCBINDIRS :=./analyzer \ ./editor/specialty \ ./generator \ ./other \ -./other/pamx \ +./other/pamx + +check-tree : SRCBINDIRS :=./converter/ \ +./converter/other/ \ +./converter/ppm/hpcdtoppm/ \ +./editor \ +./generator \ +./other \ ./ # Create colon-separated PATH list from the above. @@ -486,10 +491,13 @@ check-tree : SRCBINDIRS :=./analyzer \ # Kludge to test whether realpath is available: ifeq ($(realpath $(CURDIR)/.),$(CURDIR)) - check-tree : RBINDIRS :=\ - $(foreach dir,$(SRCBINDIRS),$(realpath $(BUILDDIR)/$(dir))) + check-tree : RBINDIRS :=$(sort \ + $(foreach dir,$(BUILDBINDIRS),$(realpath $(BUILDDIR)/$(dir))) \ + $(foreach dir,$(SRCBINDIRS),$(realpath $(SRCDIR)/$(dir)))) else - check-tree : RBINDIRS :=$(foreach dir,$(SRCBINDIRS),$(BUILDDIR)/$(dir)) + check-tree : RBINDIRS :=$(sort \ + $(foreach dir,$(BUILDBINDIRS),$(BUILDDIR)/$(dir)) \ + $(foreach dir,$(SRCBINDIRS),$(SRCDIR)/$(dir))) endif # Kludge to express characters given special meanings by GNU Make. @@ -498,7 +506,7 @@ empty := space := $(empty) $(empty) colon :=: -check-tree : PBM_TEST_PATH := $(subst $(space),$(colon),$(RBINDIRS)) +check-tree : PBM_TEST_PATH := $(subst $(space),$(colon),$(strip $(RBINDIRS))) check-tree : PBM_LIBRARY_PATH ?= $(BUILDDIR)/lib check-tree : RGBDEF ?= $(SRCDIR)/lib/rgb.txt diff --git a/doc/TESTS b/doc/TESTS index 65f91d26..69520fbc 100644 --- a/doc/TESTS +++ b/doc/TESTS @@ -141,8 +141,8 @@ packaging. This feature is intended for developers. This test method is incompatible with merge build. -Currently this test method reports several errors when Netpbm is compiled in a -separate build directory. +This works when Netpbm is compiled in the source tree and also when +a separate build directory is used. |