Linux-Debug 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-16.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Build') {
  7. steps {
  8. sh '''
  9. ./Scripts/clean-check-prepare
  10. make -j 8 DEBUG=1 WERROR=1
  11. make -j 8 DEBUG=1 WERROR=1 test
  12. '''
  13. sh '''
  14. cd Pal/src
  15. make -j 8 PAL_HOST=Skeleton DEBUG=1 WERROR=1
  16. '''
  17. }
  18. }
  19. stage('Test') {
  20. steps {
  21. sh '''
  22. cd Pal/regression
  23. make regression
  24. '''
  25. sh '''
  26. cd LibOS/shim/test/regression
  27. make regression
  28. '''
  29. sh '''
  30. cd LibOS/shim/test/fs
  31. make test
  32. '''
  33. sh '''
  34. cd LibOS/shim/test/apps/ltp
  35. make
  36. make ltp.xml
  37. '''
  38. timeout(time: 5, unit: 'MINUTES') {
  39. sh '''
  40. cd LibOS/shim/test/apps/python-simple
  41. make check
  42. '''
  43. }
  44. timeout(time: 5, unit: 'MINUTES') {
  45. sh '''
  46. cd LibOS/shim/test/apps/python-scipy-insecure
  47. make check
  48. '''
  49. }
  50. sh '''
  51. cd LibOS/shim/test/apps/bash
  52. make regression
  53. '''
  54. timeout(time: 5, unit: 'MINUTES') {
  55. sh '''
  56. cd LibOS/shim/test/apps/curl
  57. make check
  58. '''
  59. }
  60. timeout(time: 5, unit: 'MINUTES') {
  61. sh '''
  62. cd LibOS/shim/test/apps/gcc
  63. make check
  64. '''
  65. }
  66. timeout(time: 20, unit: 'MINUTES') {
  67. sh '''
  68. cd LibOS/shim/test/apps/lmbench
  69. make test N_RUNS=1 ENOUGH=100
  70. '''
  71. }
  72. sh '''
  73. cd LibOS/shim/test/apps/lighttpd
  74. make
  75. make start-graphene-server &
  76. sleep 1
  77. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8003
  78. '''
  79. sh '''
  80. cd LibOS/shim/test/apps/nginx
  81. make
  82. make start-graphene-server &
  83. sleep 1
  84. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8002
  85. '''
  86. sh '''
  87. cd LibOS/shim/test/apps/apache
  88. make
  89. make start-graphene-server &
  90. sleep 1
  91. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  92. '''
  93. sh '''
  94. cd "$(./Scripts/clean-check-test-copy)"
  95. make clean
  96. rm LibOS/glibc-*.tar.gz
  97. make -C LibOS/shim/test/regression clean
  98. make -C LibOS/shim/test/apps/ltp clean
  99. # LTP's make clean is broken, see https://github.com/linux-test-project/ltp/issues/559
  100. rm -rf /tmp/graphene-debug.clean-check.clean/LibOS/shim/test/apps/ltp/src
  101. rm -rf LibOS/shim/test/apps/ltp/src
  102. make -C LibOS/shim/test/apps/python-simple clean
  103. make -C LibOS/shim/test/apps/python-scipy-insecure clean
  104. make -C LibOS/shim/test/apps/bash clean
  105. make -C LibOS/shim/test/apps/curl clean
  106. make -C LibOS/shim/test/apps/gcc clean
  107. make -C LibOS/shim/test/apps/lmbench distclean
  108. make -C LibOS/shim/test/apps/lighttpd distclean
  109. make -C LibOS/shim/test/apps/nginx distclean
  110. make -C LibOS/shim/test/apps/apache distclean
  111. make -C Pal/src PAL_HOST=Skeleton clean
  112. ./Scripts/clean-check
  113. '''
  114. }
  115. post {
  116. always {
  117. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  118. junit 'Pal/regression/pal-regression.xml'
  119. junit 'LibOS/shim/test/regression/libos-regression.xml'
  120. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  121. }
  122. }
  123. }
  124. stage('Deploy') {
  125. steps {
  126. sh 'echo Deploying code'
  127. }
  128. }
  129. }
  130. post {
  131. success {
  132. echo 'Deployment successful'
  133. }
  134. failure {
  135. echo 'Failure while on the pipeline'
  136. }
  137. unstable {
  138. echo 'Pipeline marked as "unstable"'
  139. }
  140. }
  141. }