diff options
author | Klaus T. Aehlig <aehlig@linta.de> | 2024-07-10 09:38:34 +0200 |
---|---|---|
committer | Klaus T. Aehlig <aehlig@linta.de> | 2024-07-10 09:38:34 +0200 |
commit | cdb82d14f063d769a4937d81ace1c1ae51c751c2 (patch) | |
tree | 1631a07215fb3e528621d98f67c7555e69c936d5 | |
parent | 82afbb15ac055b1410decdaff85a9ebab0709919 (diff) | |
download | hello-nix-cdb82d14f063d769a4937d81ace1c1ae51c751c2.tar.gz |
run-tests: forward arguments
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | run-tests | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -1 +1 @@ -nix-shell --run "withRc-just-mr --main test build" +nix-shell --run "withRc-just-mr --main test build ${*@Q}" |