Skip to content

Commit 6f781b9

Browse files
committed
make test: set the ulimit required for the test
Previously the fd limit was bumped in scripts/common.sh, run by the CI. This meant that `make test` as run by a developer would fail. This patch moves the `ulimit` into the Makefile so developers can easily run the stress tests. Signed-off-by: David Scott <[email protected]>
1 parent be714e6 commit 6f781b9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ vpnkit.exe:
4242
.PHONY: test
4343
test:
4444
jbuilder build --dev src/hostnet_test/main.exe
45-
./_build/default/src/hostnet_test/main.exe
45+
# One test requires 1026 file descriptors
46+
ulimit -n 1500 && ./_build/default/src/hostnet_test/main.exe
4647

4748
.PHONY: OSS-LICENSES
4849
OSS-LICENSES:

scripts/common.sh

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ opam install $(ls -1 ${OPAM_REPO}/packages/upstream) -y
3737
OPAMVERBOSE=1 opam install --deps-only -t vpnkit -y
3838

3939
OPAMVERBOSE=1 make
40-
# One test requires 1026 file descriptors
41-
ulimit -n 1500
4240
OPAMVERBOSE=1 make test
4341
OPAMVERBOSE=1 make artefacts
4442
OPAMVERBOSE=1 make OSS-LICENSES

0 commit comments

Comments
 (0)