Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/20/19 23:50:24 (5 years ago)
Author:
hmaislin
Message:

#2929: Added missing levmar dependency libs for amd64 and fixed MultiTest bugs

Location:
branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3

    • Property svn:global-ignores set to
      tmplogs
  • branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/MultiTest.ps1

    r16614 r16617  
    11[cmdletbinding()]
    22param(
    3     [int] $WaitToStep = 200,
     3    [int] $WaitToStep = 500,
    44    [int] $PeelCnt = 3,
    55    [int] $EvalCnt = 3,
    66    [ValidateSet("method1","method2", "method3")][string] $InitMethod = "method1",
    77    [ValidateSet("method1","method2", "method3")][string] $GrowMethod = "method1",
    8     [int] $MaxJobs = 30,
    9     [switch] $Clear
     8    [int] $MaxJobs = 10,
     9    [switch] $NoClear,
     10    [switch] $UseExisting
    1011)
    1112
    1213$BenchmarksPath = Resolve-Path -Relative "go-code\go-pge\data\benchmark"
    13 
    14 $Clean = $false
    15 if($Clear) {
    16     $Clean = $true
    17 }
    1814
    1915$BenchFiles = Get-ChildItem -Path $BenchmarksPath -File
     
    2622    }
    2723    $ActiveJobs[$BenchName] = Start-Job -ScriptBlock {
    28         param($PSPath, $WaitToStep, $BenchName, $PeelCnt, $EvalCnt, $InitMethod, $GrowMethod, $Clear)
     24        param($PSPath, $WaitToStep, $BenchName, $PeelCnt, $EvalCnt, $InitMethod, $GrowMethod, $NoClear, $UseExisting)
    2925        Set-Location -Path $PSPath
    30         ./TestResults -WaitToStep $WaitToStep -BenchName $BenchName -PeelCnt $PeelCnt -EvalCnt $EvalCnt -InitMethod $InitMethod -GrowMethod $GrowMethod *>&1
    31     } -ArgumentList $(Resolve-Path $PSScriptRoot), $WaitToStep, $BenchName, $PeelCnt, $EvalCnt, $InitMethod, $GrowMethod, $Clean
     26        ./TestResults -WaitToStep $WaitToStep -BenchName $BenchName -PeelCnt $PeelCnt -EvalCnt $EvalCnt -InitMethod $InitMethod -GrowMethod $GrowMethod -NoClear:$NoClear -UseExisting:$UseExisting *>&1
     27        Write-Output "Gen-Return: $LASTEXITCODE"
     28    } -ArgumentList $(Resolve-Path $PSScriptRoot), $WaitToStep, $BenchName, $PeelCnt, $EvalCnt, $InitMethod, $GrowMethod, $NoClear.IsPresent, $UseExisting.IsPresent
    3229    Write-Host "Started job for $BenchName"
    3330}
     
    3734    $Job = $ActiveJobs[$BenchName]
    3835    $Res = $Job | Receive-Job
     36    $ReturnLine = $Res | Select-String -SimpleMatch "Gen-Return: "
     37    if($ReturnLine -match "Gen-Return: (\d+)") {
     38        if($Matches[0] -ne 0) {
     39            Write-Error "$($BenchName): An error occurred! Return-Code $($Matches[0])"
     40            continue
     41        }
     42    }
    3943    $Succeeded = ($Res | Select-String -Pattern "^[0-9]+\sOK").Count
    4044    $Failed = ($Res | Select-String -Pattern "^[0-9]+\sfailed!").Count
    4145    if($($Succeeded + $Failed) -ne $WaitToStep ) {
    42         Write-Error "Something went wrong!? Please check manuelly"
     46        $Missing = $WaitToStep - ($Succeeded + $Failed)
     47        Write-Error "$($BenchName): $Missing steps missing, or something went wrong!? Please check manuelly"
    4348    }
    4449    if($Succeeded -eq $WaitToStep) {
    45         Write-Host "$($BenchName): $Succeeded / $WaitToStep tests succeeded"
     50        Write-Host "$($BenchName): $Succeeded / $WaitToStep `ttests succeeded"
    4651    } else {
    47         Write-Warning "$($BenchName): $Failed / $WaitToStep tests failed!"
     52        Write-Warning "$($BenchName): $Failed / $WaitToStep `ttests failed!"
    4853    }
    4954}
Note: See TracChangeset for help on using the changeset viewer.