Commit 30df7c886c98c21e1e1f99d4294a6dbbe19220c5
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,12 +48,18 @@ else | ||
| 48 | depflags= | 48 | depflags= |
| 49 | endif | 49 | endif |
| 50 | 50 | ||
| 51 | +ifeq ($(QTEST_COLOR),1) | ||
| 52 | + QTEST_ARGS := -stdout-tty=1 | ||
| 53 | +else | ||
| 54 | + QTEST_ARGS := | ||
| 55 | +endif | ||
| 56 | + | ||
| 51 | # Usage: $(call run_qtest,dir) | 57 | # Usage: $(call run_qtest,dir) |
| 52 | define run_qtest | 58 | define run_qtest |
| 53 | @echo running qtest-driver for $(1) | 59 | @echo running qtest-driver for $(1) |
| 54 | @(cd $(1)/$(OUTPUT_DIR); \ | 60 | @(cd $(1)/$(OUTPUT_DIR); \ |
| 55 | if TC_SRCS="$(foreach T,$(TC_SRCS_$(1)),../../$(T))" \ | 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 | -datadir ../qtest -covdir .. \ | 63 | -datadir ../qtest -covdir .. \ |
| 58 | -junit-suffix `basename $(1)`; then \ | 64 | -junit-suffix `basename $(1)`; then \ |
| 59 | true; \ | 65 | true; \ |