Skip to content

Commit

Permalink
Excluding "GCC" and "Memcached" example for "x86_64-redhat-linux"
Browse files Browse the repository at this point in the history
In this commit, the above mentioned examples are excluded from
pipeline for "x86_64-redhat-linux" machines.
  • Loading branch information
aniket-intelx authored and jinengandhi-intel committed Aug 30, 2021
1 parent 99486a9 commit 7a15658
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 54 deletions.
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 @@ -78,36 +78,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

0 comments on commit 7a15658

Please sign in to comment.