1#!/bin/bash 2TAG=$1 3 4git clone https://github.com/golang/go.git $TAG 5 6cd $TAG/src 7git checkout -b build/$TAG $TAG 8 9./all.bash 10 11cd .. 12export GOROOT=$PWD 13export PATH=$GOROOT/bin:$PATH 14go version 15 16cd .. 17GOMAXPROCS=4 go test -v -race . 18GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/ast 19GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/internal/encoder 20GOMAXPROCS=4 go test -v -race github.com/bytedance/sonic/internal/decoder