diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-12-07 18:33:01 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-12-07 18:33:01 +0000 |
| commit | a0eb8460a9436e368dfb8af7dffdb4811789ca4d (patch) | |
| tree | f408e19a367ea12cb4b261cbb4dba50b22fdd265 | |
| parent | Fixed formatting (diff) | |
| download | DiligentCore-a0eb8460a9436e368dfb8af7dffdb4811789ca4d.tar.gz DiligentCore-a0eb8460a9436e368dfb8af7dffdb4811789ca4d.zip | |
appveyor: fixed test running command
| -rw-r--r-- | BuildTools/Scripts/appveyor/run_tests.bat | 28 | ||||
| -rw-r--r-- | appveyor.yml | 9 |
2 files changed, 29 insertions, 8 deletions
diff --git a/BuildTools/Scripts/appveyor/run_tests.bat b/BuildTools/Scripts/appveyor/run_tests.bat new file mode 100644 index 00000000..fd56f267 --- /dev/null +++ b/BuildTools/Scripts/appveyor/run_tests.bat @@ -0,0 +1,28 @@ +@echo off + +set RUN_API_CORE_TEST=false +set RUN_CORE_API_D3D11_TEST=false +set set RUN_D3D12_TEST=false + +if "%PLATFORM_NAME%"=="Windows" ( + set RUN_API_CORE_TEST=true + set RUN_CORE_API_D3D11_TEST=true + set RUN_CORE_API_D3D12_TEST=true +) + +if "%PLATFORM_NAME%"=="Windows8.1" ( + set RUN_API_CORE_TEST=true + set RUN_CORE_API_D3D11_TEST=true +) + +if "%RUN_API_CORE_TEST%"=="true" ( + "%1\UnitTests\DiligentCoreTest\%CONFIGURATION%\DiligentCoreTest.exe" +) + +if "%RUN_CORE_API_D3D11_TEST%"=="true" ( + "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d11_sw +) + +if "%RUN_CORE_API_D3D12_TEST%"=="true" ( + "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d12_sw +) diff --git a/appveyor.yml b/appveyor.yml index 21ab27e1..dcbe51d9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -75,14 +75,7 @@ build: parallel: true test_script: - - | - if "%PLATFORM_NAME%"=="Windows" OR "%PLATFORM_NAME%"=="Windows8.1" ( - C:\projects\DiligentCore\build\UnitTests\DiligentCoreTest\%CONFIGURATION%\DiligentCoreTest.exe - C:\projects\DiligentCore\build\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe --mode=d3d11_sw - if "%PLATFORM_NAME%"=="Windows" ( - C:\projects\DiligentCore\build\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe --mode=d3d12_sw - ) - ) + - c:\projects\DiligentCore\BuildTools\Scripts\appveyor\run_tests.bat "C:\projects\DiligentCore\build" after_test: - cd install |
