@@ -30,6 +30,8 @@ trap 'err $LINENO' ERR
30
30
31
31
unset RUCKSACK_MODE
32
32
33
+ BUILD_FLAGS=--error-on-warnings
34
+
33
35
crystal run test/test.cr > $to 2> $te
34
36
.
35
37
RUCKSACK_MODE=0 crystal run test/test.cr > $to 2> $te
@@ -41,7 +43,7 @@ RUCKSACK_MODE=0 crystal run test/test.cr >$to 2>$te
41
43
42
44
# ## crystal build w/o rucksack attached
43
45
44
- crystal build test/test.cr -o ${tb}
46
+ crystal build $BUILD_FLAGS test/test.cr -o ${tb}
45
47
.
46
48
RUCKSACK_MODE=0 $tb > $to 2> $te
47
49
.
@@ -63,7 +65,7 @@ RUCKSACK_MODE=2 $tb >$to 2>$te
63
65
# ## crystal build with phony padding
64
66
65
67
# ### case A: extra nulls before Knautschzone
66
- crystal build test/test.cr -o ${tb}
68
+ crystal build $BUILD_FLAGS test/test.cr -o ${tb}
67
69
head -c 17042 /dev/zero >> ${tb}
68
70
cat .rucksack >> $tb
69
71
RUCKSACK_MODE=0 $tb > $to 2> $te
@@ -75,7 +77,7 @@ RUCKSACK_MODE=2 $tb >$to 2>$te
75
77
76
78
# ### case B: duplicate padding
77
79
78
- crystal build test/test.cr -o ${tb}
80
+ crystal build $BUILD_FLAGS test/test.cr -o ${tb}
79
81
head -c 16397 /dev/zero >> ${tb}
80
82
cat .rucksack >> $tb
81
83
RUCKSACK_MODE=0 $tb > $to 2> $te
@@ -87,7 +89,7 @@ RUCKSACK_MODE=2 $tb >$to 2>$te
87
89
88
90
# ### case C: extra nulls and truncated header
89
91
90
- crystal build test/test.cr -o ${tb}
92
+ crystal build $BUILD_FLAGS test/test.cr -o ${tb}
91
93
head -c 16397 /dev/zero >> ${tb}
92
94
echo = >> ${tb}
93
95
cat .rucksack >> $tb
@@ -100,7 +102,7 @@ RUCKSACK_MODE=2 $tb >$to 2>$te
100
102
101
103
# ### case D: extra nulls and longer truncated header
102
104
103
- crystal build test/test.cr -o ${tb}
105
+ crystal build $BUILD_FLAGS test/test.cr -o ${tb}
104
106
head -c 16397 /dev/zero >> ${tb}
105
107
echo ==RUCK >> ${tb}
106
108
cat .rucksack >> $tb
0 commit comments