1
0
mirror of https://github.com/arkuznetsov/1CFilesConverter.git synced 2024-11-28 08:49:00 +02:00

test: Тесты разбиты на отдельные тестовые файлы.

This commit is contained in:
Artem Kuznetsov 2023-07-21 21:15:47 +03:00
parent 7c04912a24
commit 57ac8f6e49
39 changed files with 449 additions and 187 deletions

View File

@ -1,4 +1,4 @@
@ECHO OFF
@ECHO ON
rem Convert (load) all 1C data processors & reports in folder from 1C:Designer XML format to binary format (*.epf, *.erf)
rem %1 - path to folder contains 1C data processors & reports in 1C:Designer XML format

View File

@ -1,4 +1,4 @@
@ECHO OFF
@ECHO ON
rem Convert (load) 1C data processor or report from 1C:Designer XML format to binary format (*.epf, *.erf)
rem %1 - path to main file of 1C data processor or report in 1C:Designer XML format (*.xml)

View File

@ -0,0 +1,11 @@
@ECHO OFF
set TEST_NAME="Prepare test infobase..."
set TEST_OUT_PATH=%TEST_IB%
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2ib.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,11 @@
@ECHO OFF
set TEST_NAME="Prepare configuration with 1C:Designer XML format..."
set TEST_OUT_PATH=%TEST_XML_CF%
set TEST_CHECK_PATH=%TEST_OUT_PATH%\Configuration.xml
echo ===
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2xml.cmd "%TEST_IB%" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,11 @@
@ECHO OFF
set TEST_NAME="Prepare configuration with 1C:EDT format..."
set TEST_OUT_PATH=%TEST_EDT_CF%
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\Configuration\Configuration.mdo
echo ===
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_CF%" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,11 @@
@ECHO OFF
set TEST_NAME="Prepare data processors ^& reports with 1C:Designer XML format..."
set TEST_OUT_PATH=%TEST_XML_DP%
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml
echo ===
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-bin-dir2xml.cmd "%TEST_BINARY%" "%TEST_OUT_PATH%" "%TEST_IB%"

View File

@ -0,0 +1,11 @@
@ECHO OFF
set TEST_NAME="Prepare data processors ^& reports with 1C:EDT format..."
set TEST_OUT_PATH=%TEST_EDT_DP%
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\
echo ===
echo Prepare %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%"

92
tests/test.cmd Normal file
View File

@ -0,0 +1,92 @@
rem @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
chcp 65001
set SCRIPTS_PATH=%~dp0..\scripts
set BEFORE_TEST_PATH=%~dp0before
set TEST_PATH=%~dp0tests
set FIXTURES_PATH=%~dp0fixtures
set OUT_PATH=%~dp0..\out
set V8_VERSION=8.3.20.2290
set V8_TEMP=%OUT_PATH%\tmp
echo Clear output files...
if exist "%OUT_PATH%" (
rd /S /Q "%OUT_PATH%"
)
md "%OUT_PATH%"
md "%V8_TEMP%"
echo Prepare test data...
md "%OUT_PATH%"\data\ib
md "%OUT_PATH%"\data\edt\cf
md "%OUT_PATH%"\data\edt\ext
md "%OUT_PATH%"\data\xml\cf
md "%OUT_PATH%"\data\xml\ext
set TEST_BINARY=%FIXTURES_PATH%\bin
set TEST_IB="%OUT_PATH%"\data\ib
set TEST_XML_CF="%OUT_PATH%"\data\xml\cf
set TEST_XML_DP="%OUT_PATH%"\data\xml\ext
set TEST_EDT_CF="%OUT_PATH%"\data\edt\cf
set TEST_EDT_DP="%OUT_PATH%"\data\edt\ext
set /a TEST_COUNT=0
set /a TEST_SUCCESS=0
set /a TEST_FAILED=0
set TEST_FAILED_LIST=
echo ======
echo Prepare test data...
echo ======
FOR /f %%f IN ('dir /b /a-d "%~dp0before\*.cmd"') DO (
set /a TEST_COUNT=!TEST_COUNT!+1
call %BEFORE_TEST_PATH%\%%~f
if exist "!TEST_CHECK_PATH!" (
set /a TEST_SUCCESS=!TEST_SUCCESS!+1
) else (
echo ===
echo Prepare step FAILED ^(%%~nf^): Path "!TEST_CHECK_PATH!" not found
echo ===
set TEST_FAILED_LIST=!TEST_FAILED_LIST! %%~nf
set /a TEST_FAILED=!TEST_FAILED!+1
)
echo.
)
echo ======
echo Run tests...
echo ======
FOR /f %%f IN ('dir /b /a-d "%~dp0tests\*.cmd"') DO (
set /a TEST_COUNT=!TEST_COUNT!+1
call %TEST_PATH%\%%~f
if exist "!TEST_CHECK_PATH!" (
set /a TEST_SUCCESS=!TEST_SUCCESS!+1
) else (
echo ===
echo Test FAILED ^(%%~nf^): Path "!TEST_CHECK_PATH!" not found
echo ===
set TEST_FAILED_LIST=!TEST_FAILED_LIST! %%~nf
set /a TEST_FAILED=!TEST_FAILED!+1
)
echo.
)
echo ======
echo Test results:
echo ======
echo.
echo Tests total: %TEST_COUNT%
echo Tests SUCCESS: %TEST_SUCCESS%
echo Tests FAILED: %TEST_FAILED%:
FOR %%j IN (!TEST_FAILED_LIST!) DO (
echo %%j
)
rd /S /Q "%IB_PATH%"

View File

@ -1,185 +0,0 @@
rem @ECHO OFF
chcp 65001
set SCRIPTS_PATH=%~dp0..\scripts
set FIXTURES_PATH=%~dp0fixtures
set OUT_PATH=%~dp0..\out
echo Clear output files...
if exist "%OUT_PATH%" (
rd /S /Q "%OUT_PATH%"
)
md "%OUT_PATH%"
echo Prepare test data...
md "%OUT_PATH"\data\ib
md "%OUT_PATH"\data\edt\cf
md "%OUT_PATH"\data\edt\ext
md "%OUT_PATH"\data\xml\cf
md "%OUT_PATH"\data\xml\ext
set TEST_BINARY=%FIXTURES_PATH%\bin
set TEST_IB="%OUT_PATH%"\data\ib
set TEST_XML_CF="%OUT_PATH%"\data\xml\cf
set TEST_XML_DP="%OUT_PATH%"\data\xml\ext
set TEST_EDT_CF="%OUT_PATH%"\data\edt\cf
set TEST_EDT_DP="%OUT_PATH%"\data\edt\ext
echo ===
echo Prepare test infobase...
call %SCRIPTS_PATH%\cf2ib.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_IB%"
echo ===
echo Prepare configuration with 1C:Designer XML format...
call %SCRIPTS_PATH%\ib2xml.cmd "%TEST_IB%" "%TEST_XML_CF%"
echo ===
echo Prepare configuration with 1C:EDT format...
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_CF%" "%TEST_EDT_CF%"
echo ===
echo Prepare data processors ^& reports with 1C:Designer XML format...
call %SCRIPTS_PATH%\dp-bin-dir2xml.cmd "%TEST_BINARY%" "%TEST_XML_DP%" "%TEST_IB%"
echo ===
echo Prepare data processors ^& reports with 1C:EDT format...
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_DP%" "%TEST_EDT_DP%"
echo Tests: Convert CF
echo Test: CF -^> XML (ibcmd)
call %SCRIPTS_PATH%\cf2xml.cmd "%CONF_BINARY%" "%OUT_PATH%\111_cf2xml_i" ibcmd
echo Test: CF -^> XML (designer)
call %SCRIPTS_PATH%\cf2xml.cmd "%CONF_BINARY%" "%OUT_PATH%\112_cf2xml_d" designer
echo ===
echo Test: CF -^> infobase (ibcmd)
call %SCRIPTS_PATH%\cf2ib.cmd "%CONF_BINARY%" "%OUT_PATH%\113_cf2ib_i" ibcmd
echo Test: CF -^> infobase (designer)
call %SCRIPTS_PATH%\cf2ib.cmd "%CONF_BINARY%" "%OUT_PATH%\114_cf2ib_d" designer
echo ===
echo Test: CF -^> EDT (ibcmd)
call %SCRIPTS_PATH%\cf2edt.cmd "%CONF_BINARY%" "%OUT_PATH%\115_cf2edt_i" ibcmd
echo Test: CF -^> EDT (designer)
call %SCRIPTS_PATH%\cf2edt.cmd "%CONF_BINARY%" "%OUT_PATH%\116_cf2edt_d" designer
echo ===
echo Test: XML -^> CF (ibcmd)
call %SCRIPTS_PATH%\xml2cf.cmd "%TEST_XML_CF%" "%OUT_PATH%\121_xml2cf_i\1cv8.cf" ibcmd
echo Test: XML -^> CF (designer)
call %SCRIPTS_PATH%\xml2cf.cmd "%TEST_XML_CF%" "%OUT_PATH%\122_xml2cf_d\1cv8.cf" designer
echo ===
echo Test: XML -^> infobase (ibcmd)
call %SCRIPTS_PATH%\xml2ib.cmd "%TEST_XML_CF%" "%OUT_PATH%\123_xml2ib_i" ibcmd
echo Test: XML -^> infobase (designer)
call %SCRIPTS_PATH%\xml2ib.cmd "%TEST_XML_CF%" "%OUT_PATH%\124_xml2ib_d" designer
echo ===
echo Test: XML -^> EDT
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_CF%" "%OUT_PATH%\125_xml2edt"
echo ===
echo Test: infobase -^> CF (ibcmd)
call %SCRIPTS_PATH%\ib2cf.cmd "%TEST_IB%" "%OUT_PATH%\131_xml2cf_i\1cv8.cf" ibcmd
echo Test: infobase -^> CF (designer)
call %SCRIPTS_PATH%\ib2cf.cmd "%TEST_IB%" "%OUT_PATH%\132_xml2cf_d\1cv8.cf" designer
echo ===
echo Test: infobase -^> XML (ibcmd)
call %SCRIPTS_PATH%\ib2xml.cmd "%TEST_IB%" "%OUT_PATH%\133_xml2xml_i" ibcmd
echo Test: infobase -^> XML (designer)
call %SCRIPTS_PATH%\ib2xml.cmd "%TEST_IB%" "%OUT_PATH%\134_xml2xml_d" designer
echo ===
echo Test: infobase -^> EDT (ibcmd)
call %SCRIPTS_PATH%\ib2edt.cmd "%TEST_IB%" "%OUT_PATH%\135_xml2edt_i" ibcmd
echo Test: infobase -^> EDT (designer)
call %SCRIPTS_PATH%\ib2edt.cmd "%TEST_IB%" "%OUT_PATH%\136_xml2edt_d" designer
echo ===
echo Test: EDT -^> CF (ibcmd)
call %SCRIPTS_PATH%\edt2cf.cmd "%TEST_EDT_CF%" "%OUT_PATH%\141_edt2cf_i\1cv8.cf" ibcmd
echo Test: EDT -^> CF (designer)
call %SCRIPTS_PATH%\edt2cf.cmd "%TEST_EDT_CF%" "%OUT_PATH%\142_edt2cf_d\1cv8.cf" designer
echo ===
echo Test: EDT -^> IB (ibcmd)
call %SCRIPTS_PATH%\edt2ib.cmd "%TEST_EDT_CF%" "%OUT_PATH%\143_edt2ib_i" ibcmd
echo Test: EDT -^> IB (designer)
call %SCRIPTS_PATH%\edt2ib.cmd "%TEST_EDT_CF%" "%OUT_PATH%\144_edt2ib_d" designer
echo ===
echo Test: EDT -^> XML
call %SCRIPTS_PATH%\edt2xml.cmd "%TEST_EDT_CF%" "%OUT_PATH%\145_edt2xml" ibcmd
echo ===
echo Tests: Convert Data Processors & Reports
echo Test: DP (binary) -^> XML
call %SCRIPTS_PATH%\dp-bin2xml.cmd "%FIXTURES_PATH%\bin\ВнешняяОбработка1.epf" "%OUT_PATH%\211_dp-bin2xml" ibcmd
echo ===
echo Test: DP (binary) -^> EDT
call %SCRIPTS_PATH%\dp-bin2edt.cmd "%FIXTURES_PATH%\bin\ВнешнийОтчет1.erf" "%OUT_PATH%\212_dp-bin2edt"
echo ===
echo Test: DP (binary folder) -^> XML
call %SCRIPTS_PATH%\dp-bin-dir2xml.cmd "%FIXTURES_PATH%\bin" "%OUT_PATH%\221_dp-bin-dir2xml"
echo ===
echo Test: DP (binary folder) -^> EDT
call %SCRIPTS_PATH%\dp-bin-dir2edt.cmd "%FIXTURES_PATH%\bin" "%OUT_PATH%\222_dp-bin-dir2edt"
echo ===
echo Test: DP (XML) -^> binary
call %SCRIPTS_PATH%\dp-xml2epf.cmd "%TEST_XML_DP%\ВнешняяОбработка2.xml" "%OUT_PATH%\231_dp-xml2epf"
echo ===
echo Test: DP (XML folder) -^> binary
call %SCRIPTS_PATH%\dp-xml-dir2epf.cmd "%TEST_XML_DP%" "%OUT_PATH%\232_dp-xml2epf"
echo ===
echo Tests: EDT Validate
echo Tests: Validate CF
call %SCRIPTS_PATH%\edt-validate.cmd "%TEST_EDT_CF%" "%OUT_PATH%\311_edt-validate-cf\report.txt" ibcmd
echo ===
echo Tests: Validate data processors ^& reports
call %SCRIPTS_PATH%\edt-validate.cmd "%TEST_EDT_DP%" "%OUT_PATH%\321_edt-validate-dp\report.txt" ibcmd
echo ===

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> XML (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\Configuration.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2xml.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> XML (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\Configuration.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2xml.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> infobase (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2ib.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> infobase (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2ib.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> EDT (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\Configuration\Configuration.mdo
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2edt.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> EDT (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\Configuration\Configuration.mdo
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\cf2edt.cmd "%TEST_BINARY%\1cv8.cf" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="XML -> CF (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\1cv8.cf
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2cf.cmd "%TEST_XML_CF%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="Test: XML -> CF (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\1cv8.cf
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2cf.cmd "%TEST_XML_CF%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="Test: XML -> infobase (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2ib.cmd "%TEST_XML_CF%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="Test: XML -> infobase (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2ib.cmd "%TEST_XML_CF%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="CF -> XML (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\Configuration\Configuration.mdo
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\xml2edt.cmd "%TEST_XML_CF%" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="infobase -> CF (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\1cv8.cf
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2cf.cmd "%TEST_IB%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="infobase -> CF (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\1cv8.cf
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2cf.cmd "%TEST_IB%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="infobase -> XML (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\Configuration.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2xml.cmd "%TEST_IB%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="infobase -> XML (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\Configuration.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2xml.cmd "%TEST_IB%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="infobase -> EDT (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\Configuration\Configuration.mdo
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2edt.cmd "%TEST_IB%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="infobase -> EDT (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\Configuration\Configuration.mdo
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\ib2edt.cmd "%TEST_IB%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="Test: EDT -> CF (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\1cv8.cf
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt2cf.cmd "%TEST_EDT_CF%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="EDT -> CF (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\1cv8.cf
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt2cf.cmd "%TEST_EDT_CF%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="EDT -> IB (ibcmd)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt2ib.cmd "%TEST_EDT_CF%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="EDT -> IB (designer)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\1cv8.1cd
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt2ib.cmd "%TEST_EDT_CF%" "%TEST_OUT_PATH%" designer

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="EDT -> XML"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\Configuration.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt2xml.cmd "%TEST_EDT_CF%" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="DP (binary) -> XML"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-bin2xml.cmd "%FIXTURES_PATH%\bin\ВнешняяОбработка1.epf" "%TEST_OUT_PATH%" ibcmd

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="DP (binary) -> EDT"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalReports\ВнешнийОтчет1\
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-bin2edt.cmd "%FIXTURES_PATH%\bin\ВнешнийОтчет1.erf" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="DP (binary folder) -> XML"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешнийОтчет1.xml
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-bin-dir2xml.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="DP (binary folder) -> EDT"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\src\ExternalDataProcessors\ВнешняяОбработка2\
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-bin-dir2edt.cmd "%FIXTURES_PATH%\bin" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO ON
set TEST_NAME="DP (XML) -> binary"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка2.epf
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-xml2epf.cmd "%TEST_XML_DP%\ВнешняяОбработка2.xml" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO ON
set TEST_NAME="DP (XML folder) -> binary"
set TEST_OUT_PATH=%OUT_PATH%\%~n0
set TEST_CHECK_PATH=%TEST_OUT_PATH%\ВнешняяОбработка1.epf
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\dp-xml-dir2epf.cmd "%TEST_XML_DP%" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="Validate configuration (EDT)"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\report.txt
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt-validate.cmd "%TEST_EDT_CF%" "%TEST_OUT_PATH%"

View File

@ -0,0 +1,10 @@
@ECHO OFF
set TEST_NAME="Validate data processors & reports"
set TEST_OUT_PATH=%OUT_PATH%\%~n0\report.txt
set TEST_CHECK_PATH=%TEST_OUT_PATH%
echo ===
echo Test %TEST_COUNT%. ^(%~n0^) %TEST_NAME%
echo ===
call %SCRIPTS_PATH%\edt-validate.cmd "%TEST_EDT_DP%" "%TEST_OUT_PATH%"