Merge "Add main branch reference for project infra"
[infra/cicd.git] / jjb / geode-native-win / apache-geode-native-win-tests / win-old-integration-test.ps1
1 # ============LICENSE_START=======================================================
2 #  Copyright (C) 2018-2020 Nordix Foundation.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18
19 $env:GEODE_HOME = "${ENV:GEODE_SERVER_PATH}\apache-geode-${ENV:GEODE_SERVER_VERSION}"
20
21 Write-Host "`n*** Generate Visual Studio 2019 geode-natvie project ***`n"
22 cmake -B geode-native-build -G "Visual Studio 16 2019" -T"host=x64,version=${ENV:MSVC_TOOLSET_VERSION}" geode-native
23
24 Write-Host "`n**** Build Old Integration tests ****`n"
25 cmake --build geode-native-build --target javaobject -- /m
26 cmake --build geode-native-build --target unit_test_callbacks -- /m
27 cmake --build geode-native-build --target cppcache-integration-tests -- /m
28
29 Write-Host "`n**** Execute Old Integration tests ****`n"
30 Push-Location geode-native-build\cppcache\integration-test\
31 ctest --timeout 1000 -L STABLE -C Debug -j1 --output-on-failure --schedule-random --repeat until-pass:3