Skip to content

Commit 633e258

Browse files
committedMar 17, 2025·
TestSuite: added helper build scripts.
+ deletes previous exe before build to avoid running an old build (could test error code...).
1 parent 1f7eb3b commit 633e258

7 files changed

+65
-0
lines changed
 

‎build_scripts/run_tests_vs.bat

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set BUILD_OPTIONS=/nologo /verbosity:minimal
99
set LOCAL_DIR=%~dp0
1010
set IMGUI_TEST_SUITE_DIR=%LOCAL_DIR%..\imgui_test_suite
1111

12+
del %IMGUI_TEST_SUITE_DIR%\%CONFIGURATION%\imgui_test_suite.exe
1213
call utils\hMSBuild.bat %BUILD_OPTIONS% /p:PlatformToolset=%TOOLSET% /t:imgui_test_suite /p:Platform=%PLATFORM% /p:Configuration=%CONFIGURATION% %IMGUI_TEST_SUITE_DIR%\..\imgui_test_engine.sln
1314
echo imgui_test_suite.exe %TEST_RUN_OPTIONS%
1415
%IMGUI_TEST_SUITE_DIR%\%CONFIGURATION%\imgui_test_suite.exe %TEST_RUN_OPTIONS%
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
3+
set LOCAL_DIR=%~dp0
4+
set FILE_OPENER_PATH=%LOCAL_DIR%..\imgui_test_suite\tools\win32_open_with_sublime.cmd tests
5+
6+
set TOOLSET=v142
7+
set PLATFORM=Win32
8+
set CONFIGURATION=Debug
9+
set TEST_RUN_OPTIONS= -gui -v -fileopener %FILE_OPENER_PATH% tests
10+
11+
call run_tests_vs.bat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
3+
set TOOLSET=v142
4+
set PLATFORM=Win32
5+
set CONFIGURATION=Release
6+
set TEST_RUN_OPTIONS=-nogui -nopause -v2
7+
8+
call run_tests_vs.bat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
3+
set TOOLSET=v142
4+
set PLATFORM=Win32
5+
set CONFIGURATION=Release
6+
7+
@REM Run viewport tests first
8+
set TEST_RUN_OPTIONS=-nogui -nopause -v2 -viewport-mock viewport_
9+
call run_tests_vs.bat
10+
11+
@REM Run all tests
12+
set TEST_RUN_OPTIONS=-nogui -nopause -v2 -viewport-mock
13+
call run_tests_vs.bat
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
3+
set LOCAL_DIR=%~dp0
4+
set FILE_OPENER_PATH=%LOCAL_DIR%..\imgui_test_suite\tools\win32_open_with_sublime.cmd tests
5+
6+
set TOOLSET=v143
7+
set PLATFORM=Win32
8+
set CONFIGURATION=Debug
9+
set TEST_RUN_OPTIONS= -gui -v -fileopener %FILE_OPENER_PATH% tests
10+
11+
call run_tests_vs.bat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
3+
set TOOLSET=v143
4+
set PLATFORM=Win32
5+
set CONFIGURATION=Release
6+
set TEST_RUN_OPTIONS=-nogui -nopause -v2
7+
8+
call run_tests_vs.bat
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
3+
set TOOLSET=v143
4+
set PLATFORM=Win32
5+
set CONFIGURATION=Release
6+
7+
@REM Run viewport tests first
8+
set TEST_RUN_OPTIONS=-nogui -nopause -v2 -viewport-mock viewport_
9+
call run_tests_vs.bat
10+
11+
@REM Run all tests
12+
set TEST_RUN_OPTIONS=-nogui -nopause -v2 -viewport-mock
13+
call run_tests_vs.bat

0 commit comments

Comments
 (0)
Please sign in to comment.