提交 ffa5911b 编写于 作者: V Valery Khashkovsky 提交者: Adam Lee

Be able to `make check` at the top directory

https://github.com/greenplum-db/gpdb/issues/8558

Upstream's pg_regress supports starting a temporary instance and running
tests against it with `--temp-instance`, but Greenplum's could not.

This commit is working around it from the make file.
Signed-off-by: NAdam Lee <adlee@vmware.com>
上级 e8521fbc
......@@ -117,10 +117,24 @@ create-demo-cluster:
destroy-demo-cluster:
$(MAKE) -C gpAux/gpdemo destroy-demo-cluster
check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress
check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers
check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress
check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers
$(MAKE) -C src/test/regress $@
check:
if [ ! -f $(prefix)/greenplum_path.sh ]; then \
$(MAKE) -C $(top_builddir) install; \
fi
. $(prefix)/greenplum_path.sh; \
if pg_isready 1>/dev/null; then \
$(MAKE) -C $(top_builddir) installcheck; \
else \
if [ ! -f $(top_builddir)/gpAux/gpdemo/gpdemo-env.sh ]; then \
. $(prefix)/greenplum_path.sh && $(MAKE) -C $(top_builddir) create-demo-cluster; \
fi; \
. $(prefix)/greenplum_path.sh && . $(top_builddir)/gpAux/gpdemo/gpdemo-env.sh && $(MAKE) -C $(top_builddir) installcheck; \
fi
$(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin gpcontrib,check)
$(call recurse,checkprep, src/test src/pl src/interfaces/ecpg contrib src/bin gpcontrib)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册