@@ -50,8 +50,7 @@ $cmake_params += "-DCMAKE_CXX_STANDARD=${cpp_standard}"
50
50
51
51
$cmake_params += " -DCUKE_ENABLE_BOOST_TEST=OFF"
52
52
$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"
55
54
$cmake_params += " -DCUKE_ENABLE_EXAMPLES=ON"
56
55
$cmake_params += " -DCUKE_TESTS_UNIT=ON"
57
56
$cmake_params += " -DCUKE_CODE_COVERAGE=OFF"
@@ -72,51 +71,32 @@ Invoke-CMake "--build","build","--config","Release","--target","RUN_TESTS"
72
71
73
72
$CalcTests = @ (" build\examples\Calc\Release\GTestCalculatorSteps.exe" ,
74
73
" 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" )
81
76
82
77
For ($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
93
84
}
94
85
#
95
86
# Execute QtCalc examples
96
87
#
97
88
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
120
100
}
121
101
122
102
Invoke-CMake " --build" , " build" , " --config" , " Release" , " --target" , " INSTALL"
0 commit comments