서버에서 바로 빌드하고 고칠 수 있게 저장소 줄바꿈을 LF로 맞췄습니다. CRLF로 들어가 있던 sh 빌드 스크립트도 이제 리눅스에서 그대로 돌아갑니다. 내용은 바뀌지 않았습니다.
11 lines
669 B
Bash
11 lines
669 B
Bash
#!/bin/bash
|
|
# setup: cp * /tmp/jf; cd /tmp/jf; gcc -O1 -o ref ref.c <studio>/ab/src/core/avr.c; cp <studio>/ab/ab.bin <studio>/ab/src/app/ab.elf /tmp/jf (KEEPELF=1 build)
|
|
# run.sh seed: compare host interpreter and the device JIT (Unicorn)
|
|
s=$1; d=/tmp/jf/w$s${2:+_$2}; mkdir -p $d; cd /tmp/jf
|
|
python3 gen.py $s $d/p.hex $2
|
|
./ref $d/p.hex.bin > $d/ref.txt
|
|
cd /home/claude/studio/ab/test
|
|
python3 mkimg.py /tmp/jf/ab.bin $d/p.hex $d/img.bin
|
|
OUT=$d DUMP="g_mem+256:96,g_mem+512:64" python3 devab.py /tmp/jf/ab.elf $d/img.bin 40 2>&1 | grep DUMP | awk '{print $3}' > $d/jit.txt
|
|
if python3 /tmp/jf/same.py $d; then echo "seed $s ok"; rm -rf $d; else echo "seed $s DIFF"; fi
|