@echo off cd .\tests echo clean the directories (if they exist) if exist .\work del /f /s /q .\work if exist .\results del /f /s /q .\results echo make the directories (if they do not) if not exist .\work md .\work if not exist .\results md .\results echo unpack openaccess.accda if it does not exist in ..\ if not exist ..\OpenAccess.accda unzip ..\OpenAccess.zip echo prepare files unzip .\initial\project0.zip -d .\work unzip .\initial\db.zip -d .\work unzip .\initial\empty_project.zip -d .\work echo ** tests: step 1 ** echo run the test_export macro .\work\project0.accdb /X test_export echo control existence of zipped app python assert_exists.py .\work\project0.zip echo clean sources del .\work\source\modules\test_methods.bas del .\work\source\macros\test_export.bas del .\work\source\macros\test_import.bas echo copy source to results robocopycopy /e /NFL /NDL /NJH /nc /ns /np .\works\source .\results\source1 echo control the result python compare.py .\results\source1 .\reference\source echo ** tests: step 2 ** echo run import in empty_project.accdb .\work\empty_project.accdb /X test_import echo copy to results copy .\work\empty_project.accdb .\results\result1.accdb echo control existence of backup python assert_exists.py .\work\empty_project.accdb.old echo run import in project0.accdb .\work\project0.accdb /X test_import echo copy to results copy .\work\project0.accdb .\results\result2.accdb echo control existence of backup python assert_exists.py .\work\project0.accdb.old echo ** tests : step 3 ** echo make sources from result1.accdb .\results\result1.accdb /X test_export move .\results\source .\results\source2 echo control result python compare.py .\results\source2 .\reference\source echo make sources from result3.accdb .\results\result2.accdb /X test_export move .\results\source .\results\source3 echo control result python compare.py .\results\source3 .\reference\source echo ** end **