Linux-Debug 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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/apache
  77. make
  78. make start-graphene-server &
  79. sleep 1
  80. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  81. '''
  82. sh '''
  83. cd "$(./Scripts/clean-check-test-copy)"
  84. make clean
  85. rm LibOS/glibc-*.tar.gz
  86. make -C LibOS/shim/test/regression clean
  87. make -C LibOS/shim/test/apps/ltp clean
  88. # LTP's make clean is broken, see https://github.com/linux-test-project/ltp/issues/559
  89. rm -rf /tmp/graphene-debug.clean-check.clean/LibOS/shim/test/apps/ltp/src
  90. rm -rf LibOS/shim/test/apps/ltp/src
  91. make -C LibOS/shim/test/apps/python-simple clean
  92. make -C LibOS/shim/test/apps/python-scipy-insecure clean
  93. make -C LibOS/shim/test/apps/bash clean
  94. make -C LibOS/shim/test/apps/curl clean
  95. make -C LibOS/shim/test/apps/gcc clean
  96. make -C LibOS/shim/test/apps/lmbench clean
  97. make -C LibOS/shim/test/apps/lighttpd distclean
  98. make -C LibOS/shim/test/apps/apache distclean
  99. make -C Pal/src PAL_HOST=Skeleton clean
  100. ./Scripts/clean-check
  101. '''
  102. }
  103. post {
  104. always {
  105. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  106. junit 'Pal/regression/pal-regression.xml'
  107. junit 'LibOS/shim/test/regression/libos-regression.xml'
  108. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  109. }
  110. }
  111. }
  112. stage('Deploy') {
  113. steps {
  114. sh 'echo Deploying code'
  115. }
  116. }
  117. }
  118. post {
  119. success {
  120. echo 'Deployment successful'
  121. }
  122. failure {
  123. echo 'Failure while on the pipeline'
  124. }
  125. unstable {
  126. echo 'Pipeline marked as "unstable"'
  127. }
  128. }
  129. }