add gvisor syscall test for code coverage
This commit is contained in:
		
							parent
							
								
									3e6323e2a0
								
							
						
					
					
						commit
						a0eac55b24
					
				
							
								
								
									
										9
									
								
								.github/workflows/code_coverage.yaml
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										9
									
								
								.github/workflows/code_coverage.yaml
									
									
									
									
										vendored
									
									
								
							| @ -90,6 +90,15 @@ jobs: | ||||
|             cd ltp_instance; | ||||
|             occlum run /opt/ltp/run-ltp.sh -f syscalls-occlum" | ||||
| 
 | ||||
|     - name : gvisor syscall test | ||||
|       run: docker exec code_coverage bash -c "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; | ||||
|             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 | ||||
|       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)" | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user