From b74fd2b467ecc1452471cd59e1ce15ad237a3fe3 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 7 Dec 2024 12:28:43 +0100 Subject: [PATCH 1/2] tests: fix test runner short coverage option It does not take an argument. --- test-runner/runtests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-runner/runtests b/test-runner/runtests index c3c0b6896..a40fd0d7a 100755 --- a/test-runner/runtests +++ b/test-runner/runtests @@ -1,7 +1,7 @@ #!/usr/bin/env bash # shellcheck disable=SC2317 -declare -r RUNTESTS_GETOPT_SHORT='c:f:gj:lo:qt:vw:x' +declare -r RUNTESTS_GETOPT_SHORT='cf:gj:lo:qt:vw:x' declare -r RUNTESTS_GETOPT_LONG='coverage,filter:,gdb,jobs:,list,output:,quiet,tags:,verbose,wrapper:,exitfirst,busted::,meson::' declare -r RUNTESTS_HELP=" OPTIONS: From e801a7be27a182fe12eadd0c653e9308f600bce8 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 7 Dec 2024 12:28:44 +0100 Subject: [PATCH 2/2] tests: use lazy setup/teardown as the default Faster when using `-f` to only run a subset of the tests. --- test-runner/runtests | 1 + 1 file changed, 1 insertion(+) diff --git a/test-runner/runtests b/test-runner/runtests index a40fd0d7a..b8cc5deff 100755 --- a/test-runner/runtests +++ b/test-runner/runtests @@ -119,6 +119,7 @@ busted_args=( --config-file=spec/config.lua --exclude-tags=notest --helper=ffi/loadlib.lua + --lazy ) debug=0 meson_args=()