1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

tests: ignore warnings globally

This commit is contained in:
Steffen Vogel 2018-05-13 14:23:48 +02:00
parent a2478b0d69
commit c2d76829f7
3 changed files with 4 additions and 3 deletions

View file

@ -3,6 +3,7 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
PREFIX: /usr/
RSYNC_OPTS: --recursive --ignore-missing-args --chown ${DEPLOY_USER}:${DEPLOY_USER}
CRITERION_OPTS: --ignore-warnings
DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
DOCKER_IMAGE_DEV: villas/node-dev
@ -106,7 +107,7 @@ test:unit:
dependencies:
- build:source
script:
- make run-unit-tests CRITERON_OPTS=--ignore-warnings
- make run-unit-tests
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG_DEV}
tags:
- docker

View file

@ -44,7 +44,7 @@ $(BUILDDIR)/coverage/index.html: $(addsuffix .gcdas,$(COVERAGE_TESTS)) | $$(dir
@echo "Delete previous coverage information"
rm -f $(GCDAS)
@echo "Run $< for collecting coverage information (.gcda)"
$^
$^ $(CRITERION_OPTS)
clean-coverage:
rm -rf $(BUILDDIR)/coverage $(BUILDDIR)/coverage.txt $(BUILDDIR)/coverage.xml

View file

@ -30,7 +30,7 @@ TEST_LDLIBS = $(LDLIBS) -lcriterion -lvillas -pthread -ljansson
unit-tests: $(BUILDDIR)/unit-tests
run-unit-tests: tests
$(BUILDDIR)/unit-tests $(CRITERON_OPTS)
$(BUILDDIR)/unit-tests $(CRITERION_OPTS)
# Compile
$(BUILDDIR)/tests/unit/%.o: tests/unit/%.c $(BUILDDIR)/include/villas/config.h | $$(dir $$@)