mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-04 01:27:11 +02:00
enh(build): progen.ps1 improvements
This commit is contained in:
parent
cd22900a37
commit
f0e222450c
39
progen.ps1
39
progen.ps1
@ -113,7 +113,12 @@ function InvokeProgenSamples
|
|||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
$sampleProgenPath = "$($poco_base)\$($componentDir)\samples\$($sampleName)\$($_)"
|
$sampleProgenPath = "$($poco_base)\$($componentDir)\samples\$($sampleName)\$($_)"
|
||||||
}
|
}
|
||||||
InvokeProcess $progenPath "/tool=vs$vs $sampleProgenPath"
|
if (Test-Path -Path $sampleProgenPath) {
|
||||||
|
InvokeProcess $progenPath "/tool=vs$vs $sampleProgenPath"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "NOTICE: No .progen file for $sampleName"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,19 +166,27 @@ 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")) {
|
||||||
$componentTestProgenPath = "$poco_base\$componentDir\testsuite\TestSuite.Progen"
|
if (Test-Path -Path "$poco_base\$componentDir\testsuite") {
|
||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
$componentTestProgenPath = "$poco_base\$componentDir\testsuite\TestSuite.Progen"
|
||||||
Write-Host "| Running Progen for $componentDir\testsuite"
|
if (Test-Path -Path $componentTestProgenPath) {
|
||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
InvokeProcess $progenPath "/tool=vs$vs $componentTestProgenPath"
|
Write-Host "| Running Progen for $componentDir\testsuite"
|
||||||
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
|
InvokeProcess $progenPath "/tool=vs$vs $componentTestProgenPath"
|
||||||
|
|
||||||
if ($component -eq "Data") # special case for Data
|
if ($component -eq "Data") # special case for Data
|
||||||
{
|
{
|
||||||
$componentTestProgenPath = "$poco_base\$componentDir\DataTest\DataTest.progen"
|
$componentTestProgenPath = "$poco_base\$componentDir\DataTest\DataTest.progen"
|
||||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||||
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…
x
Reference in New Issue
Block a user