This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
/
stage-test-all-nosgx.jenkinsfile
161 lines (156 loc) · 4.35 KB
/
stage-test-all-nosgx.jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
stage('test') {
sh '''
cd Pal/regression
make ${MAKEOPTS} all
make regression
'''
sh '''
cd LibOS/shim/test/regression
make ${MAKEOPTS} all
make regression
'''
sh '''
cd LibOS/shim/test/fs
make ${MAKEOPTS} all
make test
'''
sh '''
cd LibOS/shim/test/ltp
make ${MAKEOPTS} all
make ltp.xml
'''
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/python-simple
make ${MAKEOPTS} all
make check
'''
}
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/python-scipy-insecure
make ${MAKEOPTS} all
make check
'''
}
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/bash
make ${MAKEOPTS} all
make ${MAKEOPTS} regression
'''
}
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/curl
make -j8 all
make check
'''
}
/* Disabled until we fix Graphene loader
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/gcc
make -j8 all
make check
'''
}
*/
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/memcached
make -j8 all
make start-graphene-server &
sleep 1
# 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"
'''
}
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/redis
if .ci/isdistro xenial
then
USE_SELECT=1
export USE_SELECT
fi
make -j8 all
make start-graphene-server &
sleep 1
./src/src/redis-benchmark
'''
}
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/lighttpd
make -j8 all
make start-graphene-server &
sleep 1
LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8003
'''
}
timeout(time: 10, unit: 'MINUTES') {
sh '''
cd Examples/nginx
make -j8 all
make start-graphene-server &
sleep 1
LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8002
'''
}
timeout(time: 20, unit: 'MINUTES') {
sh '''
cd Examples/apache
make -j8 all
make start-graphene-server &
sleep 1
LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh https://127.0.0.1:8443
'''
}
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/blender
make ${MAKEOPTS} all
make check
'''
}
/* Disabled until we fix Graphene loader (uses execve('/bin/sh'))
timeout(time: 5, unit: 'MINUTES') {
sh '''
cd Examples/r
make ${MAKEOPTS} all
make check
'''
}
*/
sh '''
./Scripts/gitignore-test
'''
sh '''
cd "$(./Scripts/clean-check-test-copy)"
make distclean
rm -rf LibOS/glibc-2.*
make -C LibOS/shim/test/regression clean
make -C LibOS/shim/test/ltp clean
# LTP's make clean is broken, see https://github.com/linux-test-project/ltp/issues/559
rm -rf /tmp/graphene*.clean-check.clean/LibOS/shim/test/ltp/src
rm -rf LibOS/shim/test/ltp/src
make -C Examples/python-simple clean
make -C Examples/python-scipy-insecure clean
make -C Examples/bash clean
make -C Examples/curl clean
#make -C Examples/gcc distclean
make -C Examples/memcached distclean
make -C Examples/redis distclean
make -C Examples/lighttpd distclean
make -C Examples/nginx distclean
make -C Examples/apache distclean
make -C Examples/blender distclean
#make -C Examples/r distclean
make -C Pal/src PAL_HOST=Skeleton clean
./Scripts/clean-check
'''
}