Linux-Debug 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-16.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Build') {
  7. steps {
  8. sh '''
  9. make -j 8 DEBUG=1 WERROR=1
  10. make -j 8 DEBUG=1 WERROR=1 test
  11. '''
  12. }
  13. }
  14. stage('Test') {
  15. steps {
  16. sh '''
  17. cd Pal/regression
  18. make regression
  19. '''
  20. sh '''
  21. cd LibOS/shim/test/regression
  22. make regression
  23. '''
  24. sh '''
  25. cd LibOS/shim/test/apps/ltp
  26. git submodule update --init src
  27. make
  28. ./syscalls.sh
  29. '''
  30. timeout(time: 5, unit: 'MINUTES') {
  31. sh '''
  32. cd LibOS/shim/test/apps/python
  33. make regression
  34. '''
  35. }
  36. sh '''
  37. cd LibOS/shim/test/apps/bash
  38. make regression
  39. '''
  40. timeout(time: 5, unit: 'MINUTES') {
  41. sh '''
  42. cd LibOS/shim/test/apps/gcc
  43. make regression
  44. '''
  45. }
  46. timeout(time: 20, unit: 'MINUTES') {
  47. sh '''
  48. cd LibOS/shim/test/apps/lmbench
  49. make regression N_RUNS=1 ENOUGH=100
  50. '''
  51. }
  52. sh '''
  53. cd LibOS/shim/test/apps/lighttpd
  54. make
  55. make start-graphene-server &
  56. sleep 1
  57. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8000
  58. '''
  59. sh '''
  60. cd LibOS/shim/test/apps/apache
  61. make
  62. make start-graphene-server &
  63. sleep 1
  64. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8001
  65. '''
  66. }
  67. post {
  68. always {
  69. junit 'Pal/regression/pal-regression.xml'
  70. junit 'LibOS/shim/test/regression/libos-regression.xml'
  71. }
  72. }
  73. }
  74. stage('Deploy') {
  75. steps {
  76. sh 'echo Deploying code'
  77. }
  78. }
  79. }
  80. post {
  81. success {
  82. echo 'Deployment successful'
  83. }
  84. failure {
  85. echo 'Failure while on the pipeline'
  86. }
  87. unstable {
  88. echo 'Pipeline marked as "unstable"'
  89. }
  90. }
  91. }