build: do verbose test upon failure
This commit is contained in:
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
@ -36,4 +36,4 @@ jobs:
|
|||||||
run: make
|
run: make
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: make test
|
run: make test-verbose-if-fail
|
||||||
|
|||||||
@ -38,6 +38,9 @@ check: test
|
|||||||
test: all
|
test: all
|
||||||
@cd $(BUILDDIR); $(MESON) test
|
@cd $(BUILDDIR); $(MESON) test
|
||||||
|
|
||||||
|
test-verbose-if-fail: all
|
||||||
|
@cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose
|
||||||
|
|
||||||
test-valgrind: $(BUILDDIR)
|
test-valgrind: $(BUILDDIR)
|
||||||
@cd $(BUILDDIR); $(MESON) test --wrap='valgrind --leak-check=full --error-exitcode=1'
|
@cd $(BUILDDIR); $(MESON) test --wrap='valgrind --leak-check=full --error-exitcode=1'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user