Linux-Debug 5.2 KB

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