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 SGX
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 26, 2021
1 parent 5af6834 commit fd7fc65
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 13 deletions.
19 changes: 19 additions & 0 deletions .ci/lib/stage-test-sgx.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
stage('test-sgx') {
timeout(time: 45, unit: 'MINUTES') {
try {
sh '''
cd LibOS/shim/test/ltp

# To run LTP tests with SGX and work around the mmap issue, which
# is basically that LTP uses shared memory that isn't
# supported on SGX, as a workaround we changed 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 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
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "LibOS/shim/test/ltp/src"]
path = LibOS/shim/test/ltp/src
url = https://github.com/linux-test-project/ltp.git
ignore = dirty
12 changes: 0 additions & 12 deletions LibOS/shim/test/ltp/ltp-bug-1075.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ skip = yes
[add_key04]
skip = yes

[chmod03]
skip = yes

[chmod04]
skip = yes

[chmod05]
skip = yes

Expand Down Expand Up @@ -76,12 +70,6 @@ skip = yes
[dirtyc0w]
skip = yes

[epoll_wait01]
skip = yes

[epoll_wait03]
skip = yes

[execl01]
skip = yes

Expand Down
18 changes: 18 additions & 0 deletions LibOS/shim/test/ltp/ltp-sgx.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ skip = yes
[brk01]
timeout = 60

[chmod03]
skip = yes

[chmod04]
skip = yes

[epoll_wait01]
skip = yes

[epoll_wait03]
skip = yes

[fork06]
skip = yes

Expand Down Expand Up @@ -96,6 +108,9 @@ skip = yes
[kill09]
timeout = 80

[kill11]
skip = yes

[madvise01]
skip = yes

Expand Down Expand Up @@ -324,6 +339,9 @@ skip = yes
[sethostname03]
skip = yes

[setrlimit01]
skip = yes

[setrlimit02]
skip = yes

Expand Down
4 changes: 3 additions & 1 deletion LibOS/shim/test/ltp/ltp.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,9 @@ skip = yes
[mkdir05A]
skip = yes

[mkdir09]
skip = yes

[mkdirat02]
skip = yes

Expand Down Expand Up @@ -2024,7 +2027,6 @@ skip = yes
[sendfile06_64]
skip = yes


[sendfile07]
skip = yes

Expand Down

0 comments on commit fd7fc65

Please sign in to comment.