-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathautotest.bat
68 lines (48 loc) · 1.02 KB
/
autotest.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
63
64
65
66
67
@echo off
set targetdir=d:\bitcoin
set curdir=%cd%
set sever=%cd%\soypayd.exe
set autotestexe=%cd%\src\test\soypay_test.exe
set autosevertestexe=%cd%\src\ptest\soypay_ptest.exe
set movefiles= %curdir%\src\test\data\*.bin
:menu
cls
echo.
echo Do YOU NEED TO OVER WRITE soypay.conf
echo =================================
echo 1.YES
echo 2.NO
echo 3.EXIT
echo =================================
:cl
echo.
set /p choice= Enter to Next
if /i "%choice%"=="1" goto s0
if /i "%choice%"=="2" goto s1
if /i "%choice%"=="3" goto s2
exit /b 0
:s0
copy %curdir%\src\test\data\Dacrs.conf %targetdir%\Dacrs.conf
:s1
call :ClrEnvironment
:s2
exit /b 0
:RunTestSuite
start %autotestexe% %1
GOTO :EOF
:CloseServer
taskkill /f /im soypayd.exe
GOTO :EOF
:StartServer
echo Clr environment
start %sever% -datadir=%targetdir%
ping 127.0.0.1 -n 3 >nul
GOTO :EOF
:ClrEnvironment
echo Clr environment
rd /s/q %targetdir%\regtest & md %targetdir%\regtest
copy %movefiles% %targetdir%\data\
echo Clr environment OK
GOTO :EOF
echo %cd%
pause