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:
parent
6c23cd23d3
commit
cbf74f931c
2 changed files with 6 additions and 3 deletions
|
@ -79,8 +79,7 @@ unit:
|
|||
dependencies:
|
||||
- build
|
||||
script:
|
||||
- make tests
|
||||
- build/release/testsuite
|
||||
- make run-tests
|
||||
image: $DOCKER_REGISTRY/$DOCKER_IMAGE
|
||||
tags:
|
||||
- docker
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue