From cc83b0f7f721e3849c998dbb96cbf08eab1b528c Mon Sep 17 00:00:00 2001 From: Shaowei Song <1498430017@qq.com> Date: Tue, 22 Mar 2022 21:35:06 +0800 Subject: [PATCH] [ci] Add Linux_LTP_test to Demo Test --- .github/workflows/demo_test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/demo_test.yml b/.github/workflows/demo_test.yml index 53974e8f..2eca023a 100644 --- a/.github/workflows/demo_test.yml +++ b/.github/workflows/demo_test.yml @@ -706,3 +706,25 @@ jobs: - name: Test Get run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/python/flask; curl --cacert flask.crt -X GET https://localhost:4996/customer/1" + + Linux_LTP_test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - uses: ./.github/workflows/composite_action/sim + with: + container-name: ${{ github.job }} + build-envs: 'OCCLUM_RELEASE_BUILD=1' + + - name: Download and build Linux LTP + run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/linux-ltp && ./dl_and_build_ltp.sh" + + - name: Prepare occlum instance for LTP demo + run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/linux-ltp && SGX_MODE=SIM ./prepare_ltp.sh" + + - name: Run the LTP demo + run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/linux-ltp/ltp_instance; + occlum run /opt/ltp/run-ltp.sh -f syscalls-occlum" \ No newline at end of file