[commit: ghc] wip/jenkins: Handle testsuite on Windows (5e6c4ba)

git at git.haskell.org git at git.haskell.org
Fri Jul 28 16:44:03 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/5e6c4ba7b64d5950851f7b7f09fc8d392cadd040/ghc

>---------------------------------------------------------------

commit 5e6c4ba7b64d5950851f7b7f09fc8d392cadd040
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Jun 17 22:53:30 2017 -0400

    Handle testsuite on Windows


>---------------------------------------------------------------

5e6c4ba7b64d5950851f7b7f09fc8d392cadd040
 Jenkinsfile | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 179421e..b754745 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -265,16 +265,21 @@ def withGhcBinDist(String targetTriple, Closure f) {
 def testGhc(params) {
   String targetTriple = params?.targetTriple
   // See Note [Spaces in TEST_HC]
-  String instDir="bindisttest/install   dir"
   String testGhc="${instDir}/bin/ghc"
   String makeCmd = params?.makeCmd ?: 'make'
+  String instDir="${pwd()}/bindisttest/install   dir"
 
   withGhcBinDist(targetTriple) {
     stage('Configure') {
       echo 'echo $PATH'
       sh "which ghc"
-      sh "./configure --prefix=\"`pwd`/${instDir}\""
-      sh "${makeCmd} install"
+      if (isUnix()) {
+          sh "./configure --prefix=\"${instDir}\""
+          sh "${makeCmd} install"
+      } else {
+          sh "mkdir -p \"${instDir}\""
+          sh "cp -R * ${instDir}"
+      }
     }
 
     stage('Install testsuite dependencies') {



More information about the ghc-commits mailing list