diff options
author | mhsn <mail@mhsn.net> | 2025-09-05 14:05:36 +0100 |
---|---|---|
committer | mhsn <mail@mhsn.net> | 2025-09-05 14:26:31 +0100 |
commit | fbe8b607b31f4bf914c1157872bc7a7337aea064 (patch) | |
tree | 8510fe364f5dbf2328f847cc8d82fe176891864c | |
parent | f633fc406e5b5208d5b87032044924fb08f46d81 (diff) | |
download | aoc-fbe8b607b31f4bf914c1157872bc7a7337aea064.tar.gz aoc-fbe8b607b31f4bf914c1157872bc7a7337aea064.zip |
clean up bench
-rwxr-xr-x | bench | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -17,13 +17,14 @@ data_path="$aoc_path/data/$input.txt" # check solution is correct for this input $script_path/check $year $day $lang $input >/dev/null -[ ! $? ] && echo "Incorrect solution" && exit 1 +[ ! $? ] && echo "incorrect solution" && exit 1 case $lang in "python") # Sync to create venv uv sync \ - --directory $aoc_path/python + --directory \ + $aoc_path/python # Bypass any `uv run` overhead and run .venv directly exec="$aoc_path/python/.venv/bin/python $aoc_path/python/main.py" ;; @@ -32,7 +33,8 @@ case $lang in cargo build \ --release \ --target-dir /tmp/aoc_rust \ - --manifest-path $aoc_path/rust/Cargo.toml + --manifest-path \ + $aoc_path/rust/Cargo.toml exec="/tmp/aoc_rust/release/aoc_$year-$day" ;; *) |