mirror of https://github.com/citusdata/citus.git
Fix isolation tests on OSX (#3706)
* Don't print out comments in make output * Remove empty lines with sedpull/3701/head
parent
32156dbf5c
commit
459a4829ae
|
@ -64,14 +64,15 @@ create-symbolic-link:
|
|||
# it runs the spec files from build/specs and checks the expected output from build/expected.
|
||||
# /specs is renamed as /spec because postgres first look at the specs file under current directory,
|
||||
# so this is renamed to avoid that since we are running the isolation tests from build/specs now.
|
||||
$(generated_isolation_files): $(citus_abs_srcdir)/build/specs/%: $(citus_abs_srcdir)/spec/%
|
||||
$(generated_isolation_files): $(citus_abs_srcdir)/build/specs/%: $(citus_abs_srcdir)/spec/% Makefile
|
||||
@mkdir -p $(citus_abs_srcdir)/$(ISOLATION_DEPDIR) $(citus_abs_srcdir)/$(ISOLATION_BUILDDIR)
|
||||
# -MF is used to store dependency files(.Po) in another directory for separation
|
||||
# -MT is used to change the target of the rule emitted by dependency generation.
|
||||
# -P is used to inhibit generation of linemarkers in the output from the preprocessor.
|
||||
# -undef is used to not predefine any system-specific or GCC-specific macros.
|
||||
# `man cpp` for further information
|
||||
cd $(citus_abs_srcdir) && cpp -undef -w -P -MMD -MP -MF$(ISOLATION_DEPDIR)/$(*F).Po -MT$@ $< > $@
|
||||
@# -MF is used to store dependency files(.Po) in another directory for separation
|
||||
@# -MT is used to change the target of the rule emitted by dependency generation.
|
||||
@# -P is used to inhibit generation of linemarkers in the output from the preprocessor.
|
||||
@# -undef is used to not predefine any system-specific or GCC-specific macros.
|
||||
@# `man cpp` for further information
|
||||
@# sed is used to strip the final // comments, because OSX cpp is weird
|
||||
cd $(citus_abs_srcdir) && cpp -undef -w -P -MMD -MP -MF$(ISOLATION_DEPDIR)/$(*F).Po -MT$@ $< | sed '/^\/\//d' | sed '/^$$/d' > $@
|
||||
|
||||
|
||||
Isolation_Po_files := $(wildcard $(ISOLATION_DEPDIR)/*.Po)
|
||||
|
|
Loading…
Reference in New Issue