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

make sure we have enough huge pages reserved for CI tests

This commit is contained in:
Steffen Vogel 2016-10-30 20:58:27 -04:00
parent 6c23cd23d3
commit cbf74f931c
2 changed files with 6 additions and 3 deletions

View file

@ -79,8 +79,7 @@ unit:
dependencies:
- build
script:
- make tests
- build/release/testsuite
- make run-tests
image: $DOCKER_REGISTRY/$DOCKER_IMAGE
tags:
- docker

View file

@ -7,6 +7,10 @@ TEST_LDLIBS = $(LDLIBS) -lcriterion -lvillas -pthread
tests: $(BUILDDIR)/testsuite
run-tests: tests
echo 25 > /proc/sys/vm/nr_hugepages
$(BUILDDIR)/testsuite
# Compile
$(BUILDDIR)/tests/%.o: tests/%.c | $$(dir $$@)
$(CC) $(TEST_CFLAGS) -c $< -o $@
@ -25,4 +29,4 @@ install-tests:
clean-tests:
rm -rf $(BUILDDIR)/tests $(BUILDDIR)/testsuite
.PHONY: tests install-tests clean-tests
.PHONY: tests install-tests clean-tests run-tests