From cdb82d14f063d769a4937d81ace1c1ae51c751c2 Mon Sep 17 00:00:00 2001 From: "Klaus T. Aehlig" Date: Wed, 10 Jul 2024 09:38:34 +0200 Subject: run-tests: forward arguments --- README.md | 4 +++- run-tests | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ae6676..ddb33f0 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,9 @@ the local build root. The just described way of working in a `nix-shell` using the alias is useful for interactive development. For CI-like usage, the script [run-tests](./run-tests) can be used that simply runs -`withRc-just-mr` in a `nix-shell`. +`withRc-just-mr` in a `nix-shell`. Arguments are forwarded to the +build command so that you can run, e.g., `./run-tests hello hello` +or `./run-tests -D '{"RUNS_PER_TEST": 3}'`. ## Shell commands diff --git a/run-tests b/run-tests index c3d4938..659e4a2 100755 --- a/run-tests +++ b/run-tests @@ -1 +1 @@ -nix-shell --run "withRc-just-mr --main test build" +nix-shell --run "withRc-just-mr --main test build ${*@Q}" -- cgit v1.2.3