From cbf74f931c355cbc0a59d8f4d9400ca4d3550294 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 30 Oct 2016 20:58:27 -0400 Subject: [PATCH] make sure we have enough huge pages reserved for CI tests --- .gitlab-ci.yml | 3 +-- tests/Makefile.inc | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8530cdc7a..e9a1324ab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -79,8 +79,7 @@ unit: dependencies: - build script: - - make tests - - build/release/testsuite + - make run-tests image: $DOCKER_REGISTRY/$DOCKER_IMAGE tags: - docker diff --git a/tests/Makefile.inc b/tests/Makefile.inc index facbef13f..9bac51525 100644 --- a/tests/Makefile.inc +++ b/tests/Makefile.inc @@ -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 \ No newline at end of file +.PHONY: tests install-tests clean-tests run-tests \ No newline at end of file