summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus T. Aehlig <aehlig@linta.de>2024-07-10 09:38:34 +0200
committerKlaus T. Aehlig <aehlig@linta.de>2024-07-10 09:38:34 +0200
commitcdb82d14f063d769a4937d81ace1c1ae51c751c2 (patch)
tree1631a07215fb3e528621d98f67c7555e69c936d5
parent82afbb15ac055b1410decdaff85a9ebab0709919 (diff)
downloadhello-nix-cdb82d14f063d769a4937d81ace1c1ae51c751c2.tar.gz
run-tests: forward arguments
-rw-r--r--README.md4
-rwxr-xr-xrun-tests2
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}"