Commit 30df7c886c98c21e1e1f99d4294a6dbbe19220c5

Authored by Jay Berkenbilt
1 parent 1bcd8c16

Make QTEST_COLOR=1 force qtest to print in color

Showing 1 changed file with 7 additions and 1 deletions
make/rules.mk
... ... @@ -48,12 +48,18 @@ else
48 48 depflags=
49 49 endif
50 50  
  51 +ifeq ($(QTEST_COLOR),1)
  52 + QTEST_ARGS := -stdout-tty=1
  53 +else
  54 + QTEST_ARGS :=
  55 +endif
  56 +
51 57 # Usage: $(call run_qtest,dir)
52 58 define run_qtest
53 59 @echo running qtest-driver for $(1)
54 60 @(cd $(1)/$(OUTPUT_DIR); \
55 61 if TC_SRCS="$(foreach T,$(TC_SRCS_$(1)),../../$(T))" \
56   - $(QTEST) -bindirs .:..:../../qpdf/$(OUTPUT_DIR) \
  62 + $(QTEST) $(QTEST_ARGS) -bindirs .:..:../../qpdf/$(OUTPUT_DIR) \
57 63 -datadir ../qtest -covdir .. \
58 64 -junit-suffix `basename $(1)`; then \
59 65 true; \
... ...