From dda65e9b3bde3141d36fc995b165bb58074249e6 Mon Sep 17 00:00:00 2001 From: Aniket Borkar Date: Wed, 8 Dec 2021 10:39:20 +0530 Subject: [PATCH] Excluding 'large_mmap' for DCAP in LibOS with musl In this commit, the testcase 'large_mmap' is skipped for DCAP in LibOS suite compiled with musl. --- ci/stage-test.jenkinsfile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/ci/stage-test.jenkinsfile b/ci/stage-test.jenkinsfile index c3758ad0..98be9712 100644 --- a/ci/stage-test.jenkinsfile +++ b/ci/stage-test.jenkinsfile @@ -57,11 +57,27 @@ stage('test') { sh ''' export GRAMINE_MUSL=1 cd LibOS/shim/test/regression - # For some unknown reason it fails without this clean on sgx-18.04 pipeline gramine-test clean - RA_CLIENT_SPID=${ra_client_spid} gramine-test -n tests_musl.toml build -v - python3 -m pytest -v --junit-xml libos-regression-musl.xml + if test -n "$SGX" + then + RA_CLIENT_SPID=${ra_client_spid} gramine-test --sgx -n tests_musl.toml build -v + else + RA_CLIENT_SPID=${ra_client_spid} gramine-test -n tests_musl.toml build -v + fi ''' + if (env.node_label == "graphene_dcap") { + sh ''' + export GRAMINE_MUSL=1 + cd LibOS/shim/test/regression + python3 -m pytest -v -k "not large_mmap" --junit-xml libos-regression-musl.xml + ''' + } else { + sh ''' + export GRAMINE_MUSL=1 + cd LibOS/shim/test/regression + python3 -m pytest -v -k "not attestation" --junit-xml libos-regression-musl.xml + ''' + } } catch (Exception e){ env.build_ok = false sh 'echo "LibOS Test with musl Failed"'