Add gvisor test suite to demo CI
This commit is contained in:
parent
126562a3f7
commit
b177eb2068
26
.github/workflows/demo_test.yml
vendored
26
.github/workflows/demo_test.yml
vendored
@ -617,3 +617,29 @@ jobs:
|
||||
- name: Run sysbench threads benchmark
|
||||
run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/sysbench/occlum_instance;
|
||||
occlum run /bin/sysbench threads --threads=200 --thread-yields=100 --thread-locks=4 --time=30 run"
|
||||
|
||||
|
||||
Gvisor_syscalls_test:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Create container
|
||||
run: |
|
||||
docker pull occlumbackup/occlum:latest-ubuntu18.04-gvisor_test
|
||||
gvisor_test=$(docker run -itd -v $GITHUB_WORKSPACE:/root/occlum occlumbackup/occlum:latest-ubuntu18.04-gvisor_test);
|
||||
echo "gvisor_test=$gvisor_test" >> $GITHUB_ENV
|
||||
|
||||
- name: Build dependencies
|
||||
run: docker exec $gvisor_test bash -c "cd /root/occlum; make submodule"
|
||||
|
||||
- name: Make install in debug mode
|
||||
run: docker exec $gvisor_test bash -c "source /opt/intel/sgxsdk/environment; cd /root/occlum; make install"
|
||||
|
||||
- name: Clone gvisor code
|
||||
run: docker exec $gvisor_test bash -c "git clone https://github.com/occlum/gvisor.git"
|
||||
|
||||
- name: Run gvisor syscall test
|
||||
run: docker exec $gvisor_test bash -c "cd /root/gvisor/occlum && SGX_MODE=SIM ./run_occlum_passed_tests.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user