Linux-Debug 5.9 KB

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