Add syscall test framwork from gvisor

This commit is contained in:
LI Qing
2023-05-29 13:29:53 +08:00
committed by Tate, Hongliang Tian
parent 8e199f46ef
commit e2f3932cb8
18 changed files with 256 additions and 43 deletions

View File

@ -0,0 +1,17 @@
#! /bin/bash
set -e
if type bazel > /dev/null; then
echo "Bazel has been installed already"
exit 0
fi
apt update && apt install curl gnupg -y
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
mv bazel.gpg /etc/apt/trusted.gpg.d/
echo 'deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8' | tee /etc/apt/sources.list.d/bazel.list
apt update && apt install bazel=5.4.0 -y
echo "Bazel is installed successfully"