Treat a parameter properly.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 23 Sep 2016 21:19:20 +0000 (06:19 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 23 Sep 2016 21:19:20 +0000 (06:19 +0900)
winbuild/regress.ps1

index 2af979135f92fea0345c234c8d991ac4f3d30c70..71db508d22fe4b7e46f0c3b6a3926cde81301f2e 100644 (file)
@@ -1,6 +1,6 @@
 <#
 .SYNOPSIS
-    Build all dlls of psqlodbc project using MSbuild.
+    Run regressin test on Windows.
 .DESCRIPTION
     Build test programs and run them.
 .PARAMETER Target
@@ -162,7 +162,7 @@ function vcxfile_make($testsf, $vcxfile, $usingExe)
    return $testexes
 }
 
-function RunTest($scriptPath, $Platform)
+function RunTest($scriptPath, $Platform, $testexes)
 {
    # Run regression tests
    if ($Platform -eq "x64") {
@@ -186,7 +186,7 @@ function RunTest($scriptPath, $Platform)
        if ($LASTEXITCODE -ne 0) {
            throw "`treset_db error"
        }
-       .\runsuite $TESTEXES --inputdir=$origdir
+       .\runsuite $testexes --inputdir=$origdir
    } catch [Exception] {
        throw $error[0]
    } finally {