diff options
| author | Andre Weissflog <floooh@gmail.com> | 2022-05-23 17:07:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-23 17:07:09 +0200 |
| commit | 2b171e5a579e570e8cbae41dfb7355fe6be5ed69 (patch) | |
| tree | 63574514963d67c22dd82d8b40dc3f1325577c2c /tests/test_win.cmd | |
| parent | fea33d7892f59b619dab86ffa7c810273969fcba (diff) | |
Move tests over from sokol-samples (#666)
This is mainly so that CI works as expected for Github PRs.
Also fixes a couple of uncritical warnings in sokol_app.h, sokol_audio.h and sokol_imgui.h
Diffstat (limited to 'tests/test_win.cmd')
| -rw-r--r-- | tests/test_win.cmd | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/test_win.cmd b/tests/test_win.cmd new file mode 100644 index 00000000..d51adecd --- /dev/null +++ b/tests/test_win.cmd @@ -0,0 +1,34 @@ +if not exist ext/sokol-tools-bin/ ( + git clone --depth 1 https://github.com/floooh/sokol-tools-bin ext/sokol-tools-bin +) +if not exist ext/fips-cimgui/ ( + git clone --depth 1 --recursive https://github.com/fips-libs/fips-cimgui ext/fips-cimgui +) + +md build\win_gl_debug +cd build\win_gl_debug +cmake -DSOKOL_BACKEND=SOKOL_GLCORE33 ../.. || exit /b 10 +cmake --build . || exit /b 10 +cd ..\.. + +md build\win_gl_release +cd build\win_gl_release +cmake -DSOKOL_BACKEND=SOKOL_GLCORE33 ../.. || exit /b 10 +cmake --build . --config Release || exit /b 10 +cd ..\.. + +md build\win_d3d11_debug +cd build\win_d3d11_debug +cmake -DSOKOL_BACKEND=SOKOL_D3D11 ../.. || exit /b 10 +cmake --build . || exit /b 10 +cd ..\.. + +md build\win_d3d11_debug +cd build\win_d3d11_debug +cmake -DSOKOL_BACKEND=SOKOL_D3D11 ../.. || exit /b 10 +cmake --build . --config Release || exit /b 10 +cd ..\.. + +cd build\win_d3d11_debug\Debug +sokol-test.exe || exit /b 10 +cd ..\..\.. |