Update gvisor test with prepare_bazel.sh
This commit is contained in:
parent
a9c0b1c4aa
commit
28fb6fd767
11
.github/workflows/code_coverage.yaml
vendored
11
.github/workflows/code_coverage.yaml
vendored
@ -94,14 +94,9 @@ jobs:
|
|||||||
cd ltp_instance;
|
cd ltp_instance;
|
||||||
occlum run /opt/ltp/run-ltp.sh -f syscalls-occlum"
|
occlum run /opt/ltp/run-ltp.sh -f syscalls-occlum"
|
||||||
|
|
||||||
- name : gvisor syscall test
|
- name : Gvisor syscall test
|
||||||
run: docker exec code_coverage bash -c "apt update && apt install curl gnupg -y;
|
run: docker exec code_coverage bash -c "git clone -b occlum-release-20200921.0 https://github.com/occlum/gvisor.git;
|
||||||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg;
|
cd gvisor/occlum && ./prepare_bazel.sh && ./build_and_install_syscall_tests.sh && SGX_MODE=SIM ./run_occlum_passed_tests.sh"
|
||||||
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 -y;
|
|
||||||
git clone -b occlum-release-20200921.0 https://github.com/occlum/gvisor.git;
|
|
||||||
cd gvisor/occlum && ./build_and_install_syscall_tests.sh && SGX_MODE=SIM ./run_occlum_passed_tests.sh"
|
|
||||||
|
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
run: docker exec code_coverage bash -c "cd /root/occlum/build/internal/src/libos/cargo-target/debug/deps; export CODECOV_TOKEN="${{ secrets.COV_TOKEN }}"; bash <(curl -s https://codecov.io/bash)"
|
run: docker exec code_coverage bash -c "cd /root/occlum/build/internal/src/libos/cargo-target/debug/deps; export CODECOV_TOKEN="${{ secrets.COV_TOKEN }}"; bash <(curl -s https://codecov.io/bash)"
|
||||||
|
@ -2,18 +2,11 @@ ARG OCCLUM_VERSION
|
|||||||
FROM occlum/occlum:$OCCLUM_VERSION-ubuntu20.04 as base
|
FROM occlum/occlum:$OCCLUM_VERSION-ubuntu20.04 as base
|
||||||
LABEL maintainer="He Sun <bochang.sh@antgroup.com>"
|
LABEL maintainer="He Sun <bochang.sh@antgroup.com>"
|
||||||
|
|
||||||
# Install bazel
|
|
||||||
WORKDIR /root
|
|
||||||
RUN 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 -y
|
|
||||||
|
|
||||||
# Install gvisor syscall test binaries
|
# Install gvisor syscall test binaries
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN git clone -b occlum-release-20200921.0 https://github.com/occlum/gvisor.git && \
|
RUN git clone -b occlum-release-20200921.0 https://github.com/occlum/gvisor.git && \
|
||||||
cd gvisor/occlum && \
|
cd gvisor/occlum && \
|
||||||
|
./prepare_bazel.sh && \
|
||||||
./build_and_install_syscall_tests.sh && \
|
./build_and_install_syscall_tests.sh && \
|
||||||
cd /root && \
|
cd /root && \
|
||||||
mv gvisor/occlum gvisor_occlum && \
|
mv gvisor/occlum gvisor_occlum && \
|
||||||
|
Loading…
Reference in New Issue
Block a user