diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-07-08 15:14:09 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-07-08 15:41:48 +0200 |
commit | 6e1f421a6d3a515a9720514bbcceb6789f96dd44 (patch) | |
tree | 5aac25559deacfbdc3d48c710fba03227f9b6cb3 | |
parent | fd37eeddd6b3901da806d536f44d43070e4fb660 (diff) | |
download | lvm2-6e1f421a6d3a515a9720514bbcceb6789f96dd44.tar.gz |
tests: follow symlinks
If the srcdir itself is a symlink the find would not return expected
value. So support also this config and use -L.
-rw-r--r-- | test/Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index bba33dba4..72eb4e603 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -36,9 +36,9 @@ include $(top_builddir)/make.tmpl T ?= . S ?= @ # never match anything by default VERBOSE ?= 0 -ALL := $(shell find $(srcdir) \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) | sort) +ALL := $(shell find -L $(srcdir) \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) | sort) comma = , -RUN := $(shell find $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | sort) +RUN := $(shell find -L $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | sort) RUN_BASE = $(subst $(srcdir)/,,$(RUN)) ifeq ("@BUILD_LVMETAD@", "yes") |