This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathTestKickPro.bat
62 lines (55 loc) · 2.5 KB
/
TestKickPro.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@ECHO OFF
rem ------------------------------------------------------------------------------
rem Copyright 2015-2017 Esri
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem ------------------------------------------------------------------------------
rem TestKickPro.bat
rem ------------------------------------------------------------------------------
rem requirements:
rem * ArcGIS Pro 1.3+
rem * Python Python 3.4+
rem author: ArcGIS Solutions
rem company: Esri
rem ==================================================
rem description:
rem This file starts the test running for ArcGIS Pro (Python 3.4+).
rem
rem ==================================================
rem history:
rem 10/06/2015 - MF - placeholder
rem 10/30/2015 - MF - tests running
rem 12/01/2015 - JH - added parameter for default log file name
rem 07/05/2016 - MF - updates to changes for Pro 1.3+
rem 02/24/2017 - MF - more updates for Pro 1.4.1/ArcMap 10.5
rem 07/20/2017 - MF - split BAT into PRO and MAP versions
rem ==================================================
REM === TEST SETUP ===================================
REM === TEST SETUP ===================================
REM === LOG SETUP ====================================
REM usage: set LOG=<defaultLogFileName.log>
REM name is optional; if not specified, name will be specified for you
set LOG=
REM === LOG SETUP ====================================
REM === RUN PRO TESTS ================================
ECHO Python 3.4 Tests ================================
REM The location of python.exe will depend upon your installation
REM of ArcGIS Pro. Modify the following line as necessary:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" TestRunner.py %LOG%
REM check if ArcGIS Pro/Python 3.4 tests failed
IF %ERRORLEVEL% NEQ 0 (
ECHO 'One or more tests failed'
)
REM === RUN PRO TESTS ================================
REM === CLEANUP ======================================
REM === CLEANUP ======================================
EXIT /B %ERRORLEVEL%