mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 02:57:45 +01:00
enh(build): progen.ps1 improvements
This commit is contained in:
parent
cd22900a37
commit
f0e222450c
13
progen.ps1
13
progen.ps1
@ -113,8 +113,13 @@ function InvokeProgenSamples
|
|||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
$sampleProgenPath = "$($poco_base)\$($componentDir)\samples\$($sampleName)\$($_)"
|
$sampleProgenPath = "$($poco_base)\$($componentDir)\samples\$($sampleName)\$($_)"
|
||||||
}
|
}
|
||||||
|
if (Test-Path -Path $sampleProgenPath) {
|
||||||
InvokeProcess $progenPath "/tool=vs$vs $sampleProgenPath"
|
InvokeProcess $progenPath "/tool=vs$vs $sampleProgenPath"
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "NOTICE: No .progen file for $sampleName"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function InvokeProgenComponents([string] $type)
|
function InvokeProgenComponents([string] $type)
|
||||||
@ -161,7 +166,9 @@ function InvokeProgenComponents([string] $type)
|
|||||||
InvokeProcess $progenPath "/tool=vs$vs $componentProgenPath"
|
InvokeProcess $progenPath "/tool=vs$vs $componentProgenPath"
|
||||||
}
|
}
|
||||||
ElseIf ($tests -and ($type -eq "test")) {
|
ElseIf ($tests -and ($type -eq "test")) {
|
||||||
|
if (Test-Path -Path "$poco_base\$componentDir\testsuite") {
|
||||||
$componentTestProgenPath = "$poco_base\$componentDir\testsuite\TestSuite.Progen"
|
$componentTestProgenPath = "$poco_base\$componentDir\testsuite\TestSuite.Progen"
|
||||||
|
if (Test-Path -Path $componentTestProgenPath) {
|
||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
Write-Host "| Running Progen for $componentDir\testsuite"
|
Write-Host "| Running Progen for $componentDir\testsuite"
|
||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
@ -174,6 +181,12 @@ function InvokeProgenComponents([string] $type)
|
|||||||
Write-Host "| Running Progen for $componentDir\DataTest"
|
Write-Host "| Running Progen for $componentDir\DataTest"
|
||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
InvokeProcess $progenPath "/tool=vs$vs $componentTestProgenPath"
|
InvokeProcess $progenPath "/tool=vs$vs $componentTestProgenPath"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Else {
|
||||||
|
Write-Host "NOTICE: Missing .progen file for $componentDir\testsuite"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ElseIf ($samples -and ($type -eq "sample")) {
|
ElseIf ($samples -and ($type -eq "sample")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user