From 0c1c0621e65c440b40c38f1dbbf91c7355d1e23f Mon Sep 17 00:00:00 2001 From: "Hui, Chunyang" Date: Wed, 31 Jan 2024 11:17:30 +0000 Subject: [PATCH] Fix feature configuration for make test --- .github/workflows/hw_mode_test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/hw_mode_test.yml b/.github/workflows/hw_mode_test.yml index 3cd50634..427a4a1f 100644 --- a/.github/workflows/hw_mode_test.yml +++ b/.github/workflows/hw_mode_test.yml @@ -54,6 +54,15 @@ jobs: container-name: ${{ github.job }} build-envs: 'OCCLUM_RELEASE_BUILD=1' + # Udpate the test json file + # When there comes new features, the configuration should be enabled accordingly + - name: Configure Occlum features + run: | + if [[ "${{ matrix.self_runner[2] }}" == "EDMM" ]]; then + docker exec ${{ env.CONTAINER_NAME }} bash -c "jq '.feature.enable_posix_shm = true | .feature.enable_edmm = true' /root/occlum/test/Occlum.json > /tmp.json && mv /tmp.json /root/occlum/test/Occlum.json" + fi; + shell: bash + - name: Integration test run: docker exec ${{ env.CONTAINER_NAME }} bash -c "cd /root/occlum; OCCLUM_LOG_LEVEL=trace make test"