authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-05 18:26:47-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-12-05 18:26:47-07:00
logb0b1cc356694cc3ff6a81c82b6c6f04942c1a4af
treedda913e235c4bc31d8b6519050b660b7ab99db97
parent68f8cbbf3794fe04aac7b8f28f9f4ef9f5faf789

delete another rogue file

I didn't see this one until pushing the previous commit

1 files changed, 0 insertions(+), 20 deletions(-)

test.sh deleted-20
...@@ -1,20 +0,0 @@
1#!/bin/bash
2if [[ $1 == --enable-fixed-behavior ]]; then
3 declare -A offsets
4 git g -n stage2_c test/behavior | while read -r match; do
5 printf '\e[36mTrying to enable... %s\e[m\n' "$match"
6 file=`cut -d: -f1 <<<"$match"`
7 offset=${offsets[$file]:=0}
8 let line=`cut -d: -f2 <<<"$match"`-$offset
9 contents=`cut -d: -f3- <<<"$match"`
10 sed --in-place "${line}d" "$file"
11 if zigd test -Itest test/behavior.zig -fno-stage1 -fno-LLVM -ofmt=c; then
12 printf '\e[32mTest was enabled! :)\e[m\n'
13 let offsets[$file]+=1
14 else
15 printf '\e[31mTest kept disabled. :(\e[m\n'
16 sed --in-place "${line}i\\
17$contents" "$file"
18 fi
19 done
20fi