Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding "GCC" and "Memcached" example for "x86_64-redhat-linux" #22

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 29 additions & 27 deletions ci/stage-test-direct.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,36 +69,38 @@ stage('test-direct') {
build_ok = false
sh 'echo "Curl Example Test Failed"'
}

try {
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/gcc
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} check
'''
if(env.gcc_dump_machine != "x86_64-redhat-linux")
{
try {
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/gcc
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} check
'''
}
} catch (Exception e){
build_ok = false
sh 'echo "GCC Example Test Failed"'
}
} catch (Exception e){
build_ok = false
sh 'echo "GCC Example Test Failed"'
}

try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/memcached
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make start-graphene-server &
../../Scripts/wait_for_server 5 127.0.0.1 11211
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
src/scripts/memcached-tool 127.0.0.1 | wc -l | grep -w "2"
'''
try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/memcached
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make start-graphene-server &
../../Scripts/wait_for_server 5 127.0.0.1 11211
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
src/scripts/memcached-tool 127.0.0.1 | wc -l | grep -w "2"
'''
}
} catch (Exception e){
build_ok = false
sh 'echo "Memcached Example Test Failed"'
}
} catch (Exception e){
build_ok = false
sh 'echo "Memcached Example Test Failed"'
}

try {
Expand Down
56 changes: 29 additions & 27 deletions ci/stage-test-sgx.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,36 +76,38 @@ stage('test-sgx') {
env.build_ok = false
sh 'echo "Curl Example Test Failed"'
}

try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/gcc
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} SGX=1 check
'''
if(env.gcc_dump_machine != "x86_64-redhat-linux")
{
try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/gcc
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} SGX=1 check
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "GCC Example Test Failed"'
}
} catch (Exception e){
env.build_ok = false
sh 'echo "GCC Example Test Failed"'
}

try {
timeout(time: 15, unit: 'MINUTES') {
sh '''
cd Examples/memcached
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make SGX=1 start-graphene-server &
../../Scripts/wait_for_server 60 127.0.0.1 11211
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
src/scripts/memcached-tool 127.0.0.1 | wc -l | grep -w "2"
'''
try {
timeout(time: 15, unit: 'MINUTES') {
sh '''
cd Examples/memcached
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make SGX=1 start-graphene-server &
../../Scripts/wait_for_server 60 127.0.0.1 11211
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
src/scripts/memcached-tool 127.0.0.1 | wc -l | grep -w "2"
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Memcached Example Test Failed"'
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Memcached Example Test Failed"'
}

try {
Expand Down