Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Adding LTP test suite to run with GSGX
Browse files Browse the repository at this point in the history
Signed-off-by: Jinen Gandhi <[email protected]>
  • Loading branch information
jinengandhi-intel committed Feb 23, 2021
1 parent 5af6834 commit 95d34af
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .ci/lib/stage-test-sgx.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
stage('test-sgx') {
timeout(time: 15, unit: 'MINUTES') {
try {
sh '''
cd LibOS/shim/test/ltp

# To run ltp tests with GSGX and work around the mmap issue,
# we need to change the mmap flag from MAP_SHARED to MAP_PRIVATE
# inside the LTP framework.
sed -i 's/MAP_SHARED/MAP_PRIVATE/g' src/lib/tst_test.c

make ${MAKEOPTS} all sgx-tokens
make SGX=1 ltp-sgx.xml
'''
} finally {
archiveArtifacts 'LibOS/shim/test/ltp/ltp-sgx.xml'
junit 'LibOS/shim/test/ltp/ltp-sgx.xml'
}
}
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/python-simple
Expand Down

0 comments on commit 95d34af

Please sign in to comment.