Linux 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. cd LibOS
  11. make -j 8 glibc-build/Build.success GLIBC_VERSION=2.19
  12. rm -r glibc-build
  13. make -j 8 glibc-build/Build.success GLIBC_VERSION=2.23
  14. rm -r glibc-build
  15. cd ..
  16. make -j 8 WERROR=1
  17. make -j 8 WERROR=1 test
  18. make -C Pal/ipc/linux KERNELDIR=/lib/modules/4.4.0-161-generic/build
  19. make -C Pal/src -j 8 PAL_HOST=Skeleton WERROR=1
  20. '''
  21. }
  22. }
  23. stage('Test') {
  24. steps {
  25. sh '''
  26. cd Pal/regression
  27. make regression
  28. '''
  29. sh '''
  30. cd LibOS/shim/test/regression
  31. make regression
  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
  41. make regression
  42. '''
  43. }
  44. sh '''
  45. cd LibOS/shim/test/apps/bash
  46. make regression
  47. '''
  48. timeout(time: 5, unit: 'MINUTES') {
  49. sh '''
  50. cd LibOS/shim/test/apps/gcc
  51. make regression
  52. '''
  53. }
  54. timeout(time: 15, unit: 'MINUTES') {
  55. sh '''
  56. cd LibOS/shim/test/apps/lmbench
  57. make regression N_RUNS=1 ENOUGH=100
  58. '''
  59. }
  60. sh '''
  61. cd LibOS/shim/test/apps/lighttpd
  62. make
  63. make start-graphene-server &
  64. sleep 1
  65. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8003
  66. '''
  67. sh '''
  68. cd LibOS/shim/test/apps/apache
  69. make
  70. make start-graphene-server &
  71. sleep 1
  72. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  73. '''
  74. sh '''
  75. cd "$(./Scripts/clean-check-test-copy)"
  76. make clean
  77. rm -r LibOS/glibc-2.19 LibOS/glibc-2.23
  78. rm LibOS/glibc-*.tar.gz
  79. make -C Pal/ipc/linux KERNELDIR=/lib/modules/4.4.0-161-generic/build clean
  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.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 clean
  86. make -C LibOS/shim/test/apps/bash clean
  87. make -C LibOS/shim/test/apps/gcc clean
  88. make -C LibOS/shim/test/apps/lmbench clean
  89. make -C LibOS/shim/test/apps/lighttpd distclean
  90. make -C LibOS/shim/test/apps/apache distclean
  91. make -C Pal/src PAL_HOST=Skeleton clean
  92. ./Scripts/clean-check
  93. '''
  94. }
  95. post {
  96. always {
  97. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  98. junit 'Pal/regression/pal-regression.xml'
  99. junit 'LibOS/shim/test/regression/libos-regression.xml'
  100. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  101. }
  102. }
  103. }
  104. stage('Deploy') {
  105. steps {
  106. sh 'echo Deploying code'
  107. }
  108. }
  109. }
  110. post {
  111. success {
  112. echo 'Deployment successful'
  113. }
  114. failure {
  115. echo 'Failure while on the pipeline'
  116. }
  117. unstable {
  118. echo 'Pipeline marked as "unstable"'
  119. }
  120. }
  121. }