@@ -50,8 +50,7 @@ $cmake_params += "-DCMAKE_CXX_STANDARD=${cpp_standard}"
5050
5151$cmake_params += " -DCUKE_ENABLE_BOOST_TEST=OFF"
5252$cmake_params += " -DCUKE_ENABLE_GTEST=ON"
53- $cmake_params += " -DCUKE_ENABLE_QT_6=OFF"
54- $cmake_params += " -DCUKE_ENABLE_QT_5=ON"
53+ $cmake_params += " -DCUKE_ENABLE_QT_6=ON"
5554$cmake_params += " -DCUKE_ENABLE_EXAMPLES=ON"
5655$cmake_params += " -DCUKE_TESTS_UNIT=ON"
5756$cmake_params += " -DCUKE_CODE_COVERAGE=OFF"
@@ -72,51 +71,32 @@ Invoke-CMake "--build","build","--config","Release","--target","RUN_TESTS"
7271
7372$CalcTests = @ (" build\examples\Calc\Release\GTestCalculatorSteps.exe" ,
7473" build\examples\Calc\Release\BoostCalculatorSteps.exe" ,
75- " build\examples\Calc\Release\FuncArgsCalculatorSteps.exe" )
76-
77- If ((Get-Command " qmake.exe" - ErrorAction SilentlyContinue) -ne $null )
78- {
79- $CalcTests += " build\examples\Calc\Release\QtTestCalculatorSteps.exe"
80- }
74+ " build\examples\Calc\Release\FuncArgsCalculatorSteps.exe" ,
75+ " build\examples\Calc\Release\QtTestCalculatorSteps.exe" )
8176
8277For ($i = 0 ; $i -lt $CalcTests.Length ; $i ++ ) {
83- If (Test-Path - path $CalcTests [$i ] - PathType Leaf) {
84- Write-Host " Start Test $ ( $CalcTests [$i ]) " -f Green
85- Start-Process - NoNewWindow $CalcTests [$i ]
86- Start-Sleep - Seconds 1.0
87- Set-Location - Path ' examples/Calc'
88- Start-Process cucumber - NoNewWindow - Wait
89- set-Location - Path $PSScriptRoot
90- } Else {
91- Write-Host " Skipping $ ( $CalcTests [$i ]) : file not exisiting" -f Yellow
92- }
78+ Write-Host " Start Test $ ( $CalcTests [$i ]) " -f Green
79+ Start-Process - NoNewWindow $CalcTests [$i ]
80+ Start-Sleep - Seconds 1.0
81+ Set-Location - Path ' examples/Calc'
82+ Start-Process cucumber - NoNewWindow - Wait
83+ set-Location - Path $PSScriptRoot
9384}
9485#
9586# Execute QtCalc examples
9687#
9788
98- If ((Get-Command " qmake.exe" - ErrorAction SilentlyContinue) -eq $null )
99- {
100- Write-Host " Qt not found in PATH, skipping QtCalc Tests" -f Yellow
101- }
102- Else
103- {
104- $QtCalcTests = @ (" build\examples\CalcQt\Release\GTestCalculatorQtSteps.exe" ,
105- " build\examples\CalcQt\Release\QtTestCalculatorQtSteps.exe" ,
106- " build\examples\CalcQt\Release\BoostCalculatorQtSteps.exe" )
107-
108- For ($i = 0 ; $i -lt $QtCalcTests.Length ; $i ++ ) {
109- If (Test-Path - path $QtCalcTests [$i ] - PathType Leaf) {
110- Write-Host " Start Test $ ( $QtCalcTests [$i ]) " -f Green
111- Start-Process - NoNewWindow $QtCalcTests [$i ]
112- Start-Sleep - Seconds 1.0
113- Set-Location - Path ' examples/CalcQt'
114- Start-Process cucumber - NoNewWindow - Wait
115- set-Location - Path $PSScriptRoot
116- } Else {
117- Write-Host " Skipping $ ( $QtCalcTests [$i ]) : file not exisiting" -f Yellow
118- }
119- }
89+ $QtCalcTests = @ (" build\examples\CalcQt\Release\GTestCalculatorQtSteps.exe" ,
90+ " build\examples\CalcQt\Release\QtTestCalculatorQtSteps.exe" ,
91+ " build\examples\CalcQt\Release\BoostCalculatorQtSteps.exe" )
92+
93+ For ($i = 0 ; $i -lt $QtCalcTests.Length ; $i ++ ) {
94+ Write-Host " Start Test $ ( $QtCalcTests [$i ]) " -f Green
95+ Start-Process - NoNewWindow $QtCalcTests [$i ]
96+ Start-Sleep - Seconds 1.0
97+ Set-Location - Path ' examples/CalcQt'
98+ Start-Process cucumber - NoNewWindow - Wait
99+ set-Location - Path $PSScriptRoot
120100}
121101
122102Invoke-CMake " --build" , " build" , " --config" , " Release" , " --target" , " INSTALL"
0 commit comments