forked from gramineproject/graphene
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate unit tests to jenkins (gramineproject#122)
* Migrate running unit tests for Linux host to Jenkins. Add a unit test for the Linux host, Debug build * Ignore files generated as part of unit testsing. * A quick and dirty fix for port collisions during CI tests. Come back and do a better job if we continue having problems * For some reason, the PAL Process regression tests fail using the default manifest under a debug build. Go ahead and explicate a template for the Process test.
- Loading branch information
Showing
10 changed files
with
113 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ pipeline { | |
stage('Build') { | ||
steps { | ||
sh ''' | ||
make | ||
make clean && make | ||
''' | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
stage('Build') { | ||
steps { | ||
sh ''' | ||
make clean && make DEBUG=1 | ||
''' | ||
} | ||
} | ||
stage('Test') { | ||
steps { | ||
sh ''' | ||
cd LibOS/shim/test/apps/gcc | ||
make regression | ||
''' | ||
sh ''' | ||
cd LibOS/shim/test/apps/lmbench | ||
make regression | ||
''' | ||
sh ''' | ||
cd LibOS/shim/test/apps/python | ||
make regression | ||
''' | ||
sh ''' | ||
cd LibOS/shim/test/apps/lighttpd | ||
make | ||
make start-graphene-server & | ||
./benchmark-http.sh 127.0.0.1:8000 | ||
''' | ||
sh ''' | ||
cd LibOS/shim/test/apps/apache | ||
make | ||
make start-graphene-server & | ||
./benchmark-http.sh 127.0.0.1:8000 | ||
''' | ||
sh ''' | ||
cd Pal/regression | ||
make regression | ||
''' | ||
sh ''' | ||
cd LibOS/shim/test/regression | ||
make regression | ||
''' | ||
sh ''' | ||
cd LibOS/shim/test/apps/ltp | ||
make | ||
./syscalls.sh | ||
''' | ||
} | ||
} | ||
stage('Deploy') { | ||
steps { | ||
sh 'echo Deploying code' | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
echo 'Deployment successful' | ||
} | ||
failure { | ||
echo 'Failure while on the pipeline' | ||
} | ||
unstable { | ||
echo 'Pipeline marked as "unstable"' | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bzip2 | ||
gzip | ||
hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
ab.* | ||
result-* | ||
OUTPUT | ||
build | ||
html | ||
lighttpd-* | ||
lighttpd.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lmbench-2.5/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.pyc | ||
benchmarks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
## We really need to pick a unique ephemeral port; start by just picking pid+1024 | ||
PORT=$(($$ + 1024)) | ||
|
||
echo "\n\nRun a HTTP server in the background on port " + $PORT | ||
python scripts/dummy-web-server.py $PORT & echo $! > server.PID | ||
sleep 1 | ||
echo "\n\nRun test-http.py:" | ||
./python.manifest scripts/test-http.py 127.0.0.1 $PORT > OUTPUT1 | ||
wget -q http://127.0.0.1:$PORT/ -O OUTPUT2 | ||
diff -q OUTPUT1 OUTPUT2 | ||
kill `cat server.PID` | ||
rm -f OUTPUT1 OUTPUT2 server.PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# the executable to run | ||
# loader.exec = file:./HelloWorld | ||
|
||
# debug type: inline|file | ||
loader.debug_type = inline | ||
|
||
# debug as file | ||
# loader.debug_file = <path> | ||
|
||
fs.mount.root.uri = file: | ||
|
||
# allow to bind on port 8000 | ||
net.allow_bind.1 = 127.0.0.1:8000 | ||
# allow to connect to port 8000 | ||
net.allow_peer.1 = 127.0.0.1:8000 |