This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathArcGISProTestKickStart.bat
58 lines (54 loc) · 2.34 KB
/
ArcGISProTestKickStart.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
@ECHO OFF
rem ------------------------------------------------------------------------------
rem Copyright 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 ArcGISProTestKickStart.bat
rem ------------------------------------------------------------------------------
rem requirements:
rem * ArcGIS Desktop 10.X+ or ArcGIS Pro 1.X+
rem * Python 2.7 or Python 3.4
rem author: ArcGIS Solutions
rem company: Esri
rem ==================================================
rem description:
rem This file starts the test running for Desktop (Python 2.7+) and
rem ArcGIS Pro (Python 3.4+).
rem
rem ==================================================
rem history:
rem 5/9/2016: JH - initial creation
rem 6/1/2016: MF - Add RangeRingUtils.py copy for testing
rem 6/3/2016: MF - work on exit codes
rem 12/22/2016: MF - change back to single execution for Jenkins builds
rem 1/5/2017: MF - separate into Pro and Desktop test BAT
rem ==================================================
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 === Remove previous scratch workspaces
del /s /q /f scratch.gdb 1>nul
rmdir /s /q scratch.gdb
del /s /q /f %temp%\scratch.gdb 1>nul
rmdir /s /q %temp%\scratch.gdb
REM === Remove previous scratch workspaces
ECHO Testing with ArcGIS Pro ===============================
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%
IF %ERRORLEVEL% NEQ 0 (
ECHO 'One or more tests failed'
)
pause