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

Renaming "Examples", remove and add Examples and skip mkdir09 TC #32

Merged
merged 1 commit into from
Sep 16, 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
4 changes: 2 additions & 2 deletions ci/linux-direct-centos8.2-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node(node_label) {
dir ("gramine") {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
sh 'cp -f $WORKSPACE/test_workloads.py . '
env.WORKSPACE = env.WORKSPACE + "/gramine"

Expand All @@ -33,7 +33,7 @@ node(node_label) {
load '../ci/config-docker.jenkinsfile'

if (env.gcc_dump_machine == "x86_64-redhat-linux") {
sh 'sed -i -e \'/dist\\|apport/c\\\' $WORKSPACE/Examples/python/python.manifest.template'
sh 'sed -i -e \'/dist\\|apport/c\\\' $WORKSPACE/CI-Examples/python/python.manifest.template'
}

load '.ci/lib/config.jenkinsfile'
Expand Down
2 changes: 1 addition & 1 deletion ci/linux-direct-ubuntu18.04-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node(node_label) {
dir ("gramine") {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
sh 'cp -f $WORKSPACE/test_workloads.py . '
env.WORKSPACE = env.WORKSPACE + "/gramine"

Expand Down
2 changes: 1 addition & 1 deletion ci/linux-direct-ubuntu20.04-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node(node_label) {
dir ("gramine") {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
sh 'cp -f $WORKSPACE/test_workloads.py . '
env.WORKSPACE = env.WORKSPACE + "/gramine"

Expand Down
4 changes: 2 additions & 2 deletions ci/linux-sgx-centos8.2-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node (node_label) {
dir ("gramine") {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
sh 'cp -f $WORKSPACE/test_workloads.py . '
env.WORKSPACE = env.WORKSPACE + "/gramine"
env.SGX = '1'
Expand All @@ -34,7 +34,7 @@ node (node_label) {
load '../ci/config-docker.jenkinsfile'

if (env.gcc_dump_machine == "x86_64-redhat-linux") {
sh 'sed -i -e \'/dist\\|apport/c\\\' $WORKSPACE/Examples/python/python.manifest.template'
sh 'sed -i -e \'/dist\\|apport/c\\\' $WORKSPACE/CI-Examples/python/python.manifest.template'
}

load '.ci/lib/config.jenkinsfile'
Expand Down
4 changes: 2 additions & 2 deletions ci/linux-sgx-ubuntu18.04-gcc-release-apps.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ node (node_label) {
}

dir ("gramine") {
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
env.WORKSPACE = env.WORKSPACE + "/gramine"
env.SGX = '1'

load '../ci/config-docker.jenkinsfile'
sh 'cp -rf ~/jenkins/sandstone-50-bin $WORKSPACE/Examples'
sh 'cp -rf ~/jenkins/sandstone-50-bin $WORKSPACE/CI-Examples'

docker.build(
"local:${env.BUILD_TAG}",
Expand Down
2 changes: 1 addition & 1 deletion ci/linux-sgx-ubuntu18.04-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node (node_label) {
dir ("gramine") {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
sh 'cp -f $WORKSPACE/test_workloads.py . '
env.WORKSPACE = env.WORKSPACE + "/gramine"
env.SGX = '1'
Expand Down
4 changes: 2 additions & 2 deletions ci/linux-sgx-ubuntu18.04-stress-ng.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ node (node_label) {
}

dir ("gramine") {
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
env.WORKSPACE = env.WORKSPACE + "/gramine"
env.SGX = '1'

load '../ci/config-docker.jenkinsfile'
//sh 'cp -rf ~/jenkins/sandstone-50-bin $WORKSPACE/Examples'
//sh 'cp -rf ~/jenkins/sandstone-50-bin $WORKSPACE/CI-Examples'

docker.build(
"local:${env.BUILD_TAG}",
Expand Down
4 changes: 2 additions & 2 deletions ci/linux-sgx-ubuntu20.04-gcc-release-apps.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ node (node_label) {
}

dir ("gramine") {
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
env.WORKSPACE = env.WORKSPACE + "/gramine"
env.SGX = '1'

load '../ci/config-docker.jenkinsfile'
sh 'cp -rf ~/jenkins/sandstone-50-bin $WORKSPACE/Examples'
sh 'cp -rf ~/jenkins/sandstone-50-bin $WORKSPACE/CI-Examples'

docker.build(
"local:${env.BUILD_TAG}",
Expand Down
2 changes: 1 addition & 1 deletion ci/linux-sgx-ubuntu20.04-gcc-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ node(node_label) {
dir ("gramine") {
sh 'cp -rf $WORKSPACE/ltp_src LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/ltp_config/* LibOS/shim/test/ltp/'
sh 'cp -rf $WORKSPACE/stress-ng Examples/'
sh 'cp -rf $WORKSPACE/stress-ng CI-Examples/'
sh 'cp -f $WORKSPACE/test_workloads.py . '
env.WORKSPACE = env.WORKSPACE + "/gramine"
env.SGX = '1'
Expand Down
63 changes: 11 additions & 52 deletions ci/stage-test-direct.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stage('test-direct') {
try{
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/python
cd CI-Examples/python
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make check
'''
Expand All @@ -39,7 +39,7 @@ stage('test-direct') {
try{
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/bash
cd CI-Examples/bash
sed -i '/@rm OUTPUT/d' Makefile
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} regression
Expand All @@ -50,38 +50,12 @@ stage('test-direct') {
sh 'echo "Bash Example Test Failed"'
}

try {
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/curl
sed -i '/@rm OUTPUT/d' Makefile
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} check
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "Curl Example Test Failed"'
}
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){
env.build_ok = false
sh 'echo "GCC Example Test Failed"'
}

try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/memcached
cd CI-Examples/memcached
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make start-graphene-server &
../../Scripts/wait_for_server 5 127.0.0.1 11211
Expand All @@ -100,7 +74,7 @@ stage('test-direct') {
try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/redis
cd CI-Examples/redis
if .ci/isdistro xenial
then
USE_SELECT=1
Expand All @@ -120,7 +94,7 @@ stage('test-direct') {
try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/lighttpd
cd CI-Examples/lighttpd
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} start-graphene-server &
../../Scripts/wait_for_server 5 127.0.0.1 8003
Expand All @@ -135,7 +109,7 @@ stage('test-direct') {
try {
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/nginx
cd CI-Examples/nginx
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make ${MAKEOPTS} start-graphene-server &
../../Scripts/wait_for_server 5 127.0.0.1 8002
Expand All @@ -147,24 +121,10 @@ stage('test-direct') {
sh 'echo "NGINX Example Test Failed"'
}

/*
timeout(time: 20, unit: 'MINUTES') {
sh '''
cd Examples/apache
make ${MAKEOPTS} all
make ${MAKEOPTS} start-graphene-server &
../../Scripts/wait_for_server 5 127.0.0.1 8001
LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh 127.0.0.1:8001
../../Scripts/wait_for_server 5 127.0.0.1 8443
LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh https://127.0.0.1:8443
'''
}
*/

try {
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/blender
cd CI-Examples/blender
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make check
'''
Expand All @@ -174,18 +134,17 @@ stage('test-direct') {
sh 'echo "Blender Example Test Failed"'
}

try {
try{
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/r
sed -i '/@$(RM) OUTPUT/d' Makefile
cd CI-Examples/sqlite
make ${MAKEOPTS} ${ARCH_LIB_OPT} all
make check
make ${MAKEOPTS} regression
'''
}
} catch (Exception e){
env.build_ok = false
sh 'echo "R Example Test Failed"'
sh 'echo "SQLite Example Test Failed"'
}

try {
Expand Down
2 changes: 1 addition & 1 deletion ci/stage-test-sandstone.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
stage('test') {
timeout(time: 90, unit: 'MINUTES') {
sh '''
cd Examples/sandstone-50-bin
cd CI-Examples/sandstone-50-bin
if test -n "$SGX"
then
make SGX=1
Expand Down
Loading