File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,14 @@ cat INPUT | rustc day-01/solutions/day01.rs ✅
9595### Test one or more days
9696```
9797// Run tests inside docker container
98- make docker.example // Expect example tests to succeed
99- make docker.day01 // Expect to succeed, testing only day-01 solutions
100- make docker.all // Expect some days to succeed, some to fail
101-
102- // Run tests on host
103- make test.example // Expect example tests to succeed
104- make test.day01 // Expect to succeed, testing only day-01 solutions
105- make test.all // Expect some days to succeed, some to fail
98+ make docker.example
99+ make docker.day01
100+ make docker.all
101+
102+ // Run tests directly on your system
103+ make test.example
104+ make test.day01
105+ make test.all
106106```
107107
108108## Demo
Original file line number Diff line number Diff line change @@ -12,10 +12,8 @@ SOLUTION_NAME="zig_solution"
1212TEMP_SOURCE=" /tmp/$SOLUTION_NAME .zig"
1313TEMP_BIN=" /tmp/$SOLUTION_NAME "
1414
15-
16-
1715# Output directory can be controlled with zig build scripts, but seemingly has no compiler flag for it
18- # Should probably refactor this later as it is somewhat cumbersome ...
16+ # Should probably refactor this later as it is somewhat cumbersome ...
1917cp $SOLUTION $TEMP_SOURCE
2018cd " /tmp/"
2119zig build-exe $TEMP_SOURCE --name $SOLUTION_NAME
@@ -28,4 +26,4 @@ end=$(($(date +%s%N)/1000000))
2826TIME=" $( expr $end - $start ) "
2927
3028D=$( dirname $( realpath $0 ) )
31- $D /../scripts/print-test.sh " zig run " " $TIME " " $SOLUTION "
29+ $D /../scripts/print-test.sh " zig" " $TIME " " $SOLUTION "
You can’t perform that action at this time.
0 commit comments