| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- @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
- xcopy .\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 ** end **
|