Add Windows test script.

This commit is contained in:
Michael R Sweet 2024-06-28 19:00:51 -04:00
parent 986c5f0438
commit d4f8dd46b5
2 changed files with 18 additions and 0 deletions

View File

@ -60,3 +60,5 @@ jobs:
run: nuget restore pdfio.sln run: nuget restore pdfio.sln
- name: Build PDFio - name: Build PDFio
run: msbuild pdfio.sln run: msbuild pdfio.sln
- name: Test PDFio
run: .\runtests.bat x64\Debug

16
runtests.bat Normal file
View File

@ -0,0 +1,16 @@
:: Script to run unit test program
::
:: Usage:
::
:: .\runtests.bat x64\{Debug|Release}
::
:: Copy dependent DLLs to the named build directory
echo Copying DLLs
copy packages\zlib_native.redist.1.2.11\build\native\bin\x64\Debug\*.dll %1
copy packages\zlib_native.redist.1.2.11\build\native\bin\x64\Release\*.dll %1
:: Run unit test program
echo Running %1\testpdfio.exe
cd %1
testpdfio.exe