搞了一上午终于弄好了一个对拍,估计以后调试会方便很多。
#!/bin/bash
while true; do
./makedate>tmp.in
./XXXXX<tmp.in>tmp.out
./XXXXX<tmp.in>tmp2.out
if diff tmp.out tmp2.out; then
printf AC
else
echo WA
exit
fi
sleep
done
2022-01-18 19:33:20
搞了一上午终于弄好了一个对拍,估计以后调试会方便很多。
#!/bin/bash
while true; do
./makedate>tmp.in
./XXXXX<tmp.in>tmp.out
./XXXXX<tmp.in>tmp2.out
if diff tmp.out tmp2.out; then
printf AC
else
echo WA
exit
fi
sleep
done