bsc/tests/run-evm-tests.sh

16 lines
310 B
Bash
Raw Permalink Normal View History

2024-01-10 16:58:27 +08:00
#!/usr/bin/env bash
cd ..
git apply tests/0001-diff-go-ethereum.patch
cd tests
go test -run . -v >test.log
PASS=`cat test.log |grep "PASS:" |wc -l`
cat test.log|grep FAIL > fail.log
FAIL=`cat fail.log |grep "FAIL:" |wc -l`
echo "PASS",$PASS,"FAIL",$FAIL
if [ $FAIL -ne 0 ]
then
cat fail.log
2024-07-31 15:50:43 +08:00
exit 1
2024-01-10 16:58:27 +08:00
fi