-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins-run-tests.bat
48 lines (33 loc) · 1.55 KB
/
jenkins-run-tests.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
@echo off
echo "*** Running jenkins-run-tests.bat..."
REM ===========================================================================
REM Configure environment on Jenkins machine
REM ===========================================================================
call "%~dp0"jenkins-clone-data.bat
call "%~dp0"jenkins-custom.bat
set "JENKINS_3RDPARTIES=%~dp03rd-parties"
set "ASI_TEST_DUMPING=%~dp0cmake-build-dir"
set "ASI_TEST_DATA=%~dp0data"
set "ASI_TEST_SCRIPTS=%~dp0scripts"
rem set "ASI_TEST_DESCR=@ASI_TEST_DESCR@"
setlocal enabledelayedexpansion
set "ASI_TEST_DUMPING=!ASI_TEST_DATA:\=/!"
echo "ASI_TEST_DUMPING=!ASI_TEST_DUMPING!"
set "ASI_TEST_DATA=!ASI_TEST_DATA:\=/!"
echo "ASI_TEST_DATA=!ASI_TEST_DATA!"
set "ASI_TEST_SCRIPTS=!ASI_TEST_SCRIPTS:\=/!"
echo "ASI_TEST_SCRIPTS=!ASI_TEST_SCRIPTS!"
REM ===========================================================================
REM Run tests
REM ===========================================================================
cd cmake-install-dir/bin
asiTest.exe
REM ===========================================================================
REM Copy test results to the network drive
REM ===========================================================================
rem The following lines are commented out as there seems to be no sense in
rem copying test result to file server: all them are accessible via http
rem in Jenkins workspace, e.g. http://ssv:8080/.../...
rem echo Test results will be available at "%JENKINS_TEST_RESULT_DIR%"
rem cd %JENKINS_JOB_DIR%\test\results
rem xcopy /s . %JENKINS_TEST_RESULT_DIR% > NUL