Linux-Debug 4.7 KB

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