瀏覽代碼

[Jenkins] Test 'make clean' also on Ubuntu 18.04

Simon Gaiser 4 年之前
父節點
當前提交
0eae1e2517
共有 4 個文件被更改,包括 95 次插入0 次删除
  1. 25 0
      Jenkinsfiles/Linux-18.04
  2. 25 0
      Jenkinsfiles/Linux-Debug-18.04
  3. 16 0
      Jenkinsfiles/Linux-SGX-18.04
  4. 29 0
      Jenkinsfiles/Linux-SGX-18.04-apps

+ 25 - 0
Jenkinsfiles/Linux-18.04

@@ -17,6 +17,7 @@ pipeline {
                 stage('Build') {
                     steps {
                         sh '''
+                            ./Scripts/clean-check-prepare
                             make -j 8 WERROR=1
                             make -j 8 WERROR=1 test
                            '''
@@ -105,6 +106,30 @@ pipeline {
                             sleep 1
                             LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
                             '''
+                        sh '''
+                           cd "$(./Scripts/clean-check-test-copy)"
+
+                           make distclean
+                           make -C LibOS/shim/test/regression clean
+
+                           make -C LibOS/shim/test/apps/ltp clean
+                           # LTP's make clean is broken, see https://github.com/linux-test-project/ltp/issues/559
+                           rm -rf /tmp/graphene-18.04.clean-check.clean/LibOS/shim/test/apps/ltp/src
+                           rm -rf LibOS/shim/test/apps/ltp/src
+
+                           make -C LibOS/shim/test/apps/python-simple clean
+                           make -C LibOS/shim/test/apps/python-scipy-insecure clean
+                           make -C LibOS/shim/test/apps/bash clean
+                           make -C LibOS/shim/test/apps/curl clean
+                           make -C LibOS/shim/test/apps/gcc clean
+                           make -C LibOS/shim/test/apps/lmbench distclean
+                           make -C LibOS/shim/test/apps/redis distclean
+                           make -C LibOS/shim/test/apps/lighttpd distclean
+                           make -C LibOS/shim/test/apps/nginx distclean
+                           make -C LibOS/shim/test/apps/apache distclean
+
+                           ./Scripts/clean-check
+                        '''
                     }
                     post {
                         always {

+ 25 - 0
Jenkinsfiles/Linux-Debug-18.04

@@ -17,6 +17,7 @@ pipeline {
                 stage('Build') {
                     steps {
                         sh '''
+                            ./Scripts/clean-check-prepare
                             make -j 8 DEBUG=1 WERROR=1
                             make -j 8 DEBUG=1 WERROR=1 test
                            '''
@@ -105,6 +106,30 @@ pipeline {
                             sleep 1
                             LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
                             '''
+                        sh '''
+                           cd "$(./Scripts/clean-check-test-copy)"
+
+                           make distclean
+                           make -C LibOS/shim/test/regression clean
+
+                           make -C LibOS/shim/test/apps/ltp clean
+                           # LTP's make clean is broken, see https://github.com/linux-test-project/ltp/issues/559
+                           rm -rf /tmp/graphene-debug-18.04.clean-check.clean/LibOS/shim/test/apps/ltp/src
+                           rm -rf LibOS/shim/test/apps/ltp/src
+
+                           make -C LibOS/shim/test/apps/python-simple clean
+                           make -C LibOS/shim/test/apps/python-scipy-insecure clean
+                           make -C LibOS/shim/test/apps/bash clean
+                           make -C LibOS/shim/test/apps/curl clean
+                           make -C LibOS/shim/test/apps/gcc clean
+                           make -C LibOS/shim/test/apps/lmbench distclean
+                           make -C LibOS/shim/test/apps/redis distclean
+                           make -C LibOS/shim/test/apps/lighttpd distclean
+                           make -C LibOS/shim/test/apps/nginx distclean
+                           make -C LibOS/shim/test/apps/apache distclean
+
+                           ./Scripts/clean-check
+                        '''
                     }
                     post {
                         always {

+ 16 - 0
Jenkinsfiles/Linux-SGX-18.04

@@ -19,6 +19,9 @@ pipeline {
                 }
                 stage('Build') {
                     steps {
+                        sh '''
+                           ./Scripts/clean-check-prepare
+                        '''
                         sh '''
                             cd Pal/src/host/Linux-SGX/signer/ && openssl genrsa -3 -out enclave-key.pem 3072
                         '''
@@ -79,6 +82,19 @@ pipeline {
                             make SGX=1 all sgx-tokens
                             make SGX=1 ltp-sgx.xml || :
                             '''
+                        sh '''
+                           cd "$(./Scripts/clean-check-test-copy)"
+
+                           rm Pal/src/host/Linux-SGX/signer/enclave-key.pem
+                           make SGX=1 distclean
+                           make -C LibOS/shim/test/regression SGX=1 clean
+                           make -C LibOS/shim/test/apps/ltp clean
+                           # LTP's make clean is broken, see https://github.com/linux-test-project/ltp/issues/559
+                           rm -rf /tmp/graphene-sgx-18.04.clean-check.clean/LibOS/shim/test/apps/ltp/src
+                           rm -rf LibOS/shim/test/apps/ltp/src
+
+                           ./Scripts/clean-check
+                        '''
                     }
                     post {
                         always {

+ 29 - 0
Jenkinsfiles/Linux-SGX-18.04-apps

@@ -19,6 +19,9 @@ pipeline {
                 }
                 stage('Build') {
                     steps {
+                        sh '''
+                           ./Scripts/clean-check-prepare
+                        '''
                         sh '''
                             cd Pal/src/host/Linux-SGX/signer/ && openssl genrsa -3 -out enclave-key.pem 3072
                         '''
@@ -112,6 +115,32 @@ pipeline {
                             sleep 30
                             LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
                             '''
+                        sh '''
+                           cd "$(./Scripts/clean-check-test-copy)"
+
+                           rm Pal/src/host/Linux-SGX/signer/enclave-key.pem
+                           make SGX=1 distclean
+
+                           make -C LibOS/shim/test/apps/python-simple SGX=1 clean
+                           make -C LibOS/shim/test/apps/python-scipy-insecure SGX=1 clean
+                           make -C LibOS/shim/test/apps/bash SGX=1 clean
+                           make -C LibOS/shim/test/apps/curl SGX=1 clean
+                           make -C LibOS/shim/test/apps/gcc SGX=1 clean
+                           make -C LibOS/shim/test/apps/lmbench SGX=1 distclean
+                           make -C LibOS/shim/test/apps/redis SGX=1 distclean
+                           make -C LibOS/shim/test/apps/lighttpd SGX=1 distclean
+                           make -C LibOS/shim/test/apps/nginx SGX=1 distclean
+                           make -C LibOS/shim/test/apps/apache SGX=1 distclean
+
+                           # Currently used release of LTP contains broken symlinks under
+                           # utils/ffsb-6.0-rc2/ (config.guess and config.sub); without explicit
+                           # rm of these symlinks, the clean-check utility fails. We should
+                           # update to newer release of LTP where this issue will be fixed.
+                           rm -rf /tmp/graphene-sgx-18.04-apps.clean-check.clean/LibOS/shim/test/apps/ltp/src
+                           rm -rf LibOS/shim/test/apps/ltp/src
+
+                           ./Scripts/clean-check
+                        '''
                     }
                 }
                 stage('Deploy') {