build: do verbose test upon failure

This commit is contained in:
Dirk-Jan C. Binnema 2022-02-26 10:08:48 +02:00
parent 5417928c1e
commit 5c43a93027
2 changed files with 4 additions and 1 deletions

View File

@ -36,4 +36,4 @@ jobs:
run: make
- name: test
run: make test
run: make test-verbose-if-fail

View File

@ -38,6 +38,9 @@ check: test
test: all
@cd $(BUILDDIR); $(MESON) test
test-verbose-if-fail: all
@cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose
test-valgrind: $(BUILDDIR)
@cd $(BUILDDIR); $(MESON) test --wrap='valgrind --leak-check=full --error-exitcode=1'