-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_all.sh
executable file
·41 lines (37 loc) · 1.19 KB
/
test_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
{
./day01 ./example_input/day01;
./day02 ./example_input/day02;
./day03 ./example_input/day03;
./day04 ./example_input/day04;
./day05 ./example_input/day05;
./day06 ./example_input/day06;
./day07 ./example_input/day07;
./day08 ./example_input/day08;
./day09 ./example_input/day09;
./day10 ./example_input/day10;
./day11 ./example_input/day11;
./day12 ./example_input/day12;
./day13 ./example_input/day13;
./day14 ./example_input/day14;
./day15 ./example_input/day15;
} >> example_output
diff example_output expected_example_output && printf "PASS\n"; rm example_output
{
./day01 ./real_input/day01;
./day02 ./real_input/day02;
./day03 ./real_input/day03;
./day04 ./real_input/day04;
./day05 ./real_input/day05;
./day06 ./real_input/day06;
./day07 ./real_input/day07;
./day08 ./real_input/day08;
./day09 ./real_input/day09;
./day10 ./real_input/day10;
./day11 ./real_input/day11;
./day12 ./real_input/day12;
./day13 ./real_input/day13;
./day14 ./real_input/day14;
./day15 ./real_input/day15;
} >> real_output
diff real_output expected_real_output && printf "PASS\n"; rm real_output