Skip to content

Commit ba6587f

Browse files
committed
Trying to run the MS-Windows tests with optimizations disabled, so that any alignment problems on Intel processors are triggered more often.
1 parent 92ba355 commit ba6587f

File tree

2 files changed

+34
-39
lines changed

2 files changed

+34
-39
lines changed

Source/test/TestCaller.DsrProj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ CompilerFlag "-std=c++14"
55
CompilerFlag "-march=native"
66

77
Debug = 1
8-
Optimization = 0
98
Supressed = 1
109
Graphics = 0
1110
Sound = 0
12-
# Turning off optimization will cause AVX2 to crash in GNU's g++!
13-
# Because there is no way to create a U32x8 vector without getting an unaligned __m256i temp
14-
# generated and moved by the broken compiler and they have refused to fix the bug since 2009.
15-
#Optimization = 0
1611
Import "../DFPSR/DFPSR.DsrHead"
1712

1813
# Compile and run each source file ending with Test.cpp in tests as its own project.

Source/test/test_windows.bat

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
@echo off
2-
3-
rem This script can be called from any path, as long as the first argument sais where this script is located.
4-
5-
echo Starting test on MS-Windows.
6-
7-
rem Get the test folder's path from the called path.
8-
set TEST_FOLDER=%~dp0
9-
echo TEST_FOLDER = %TEST_FOLDER%
10-
11-
set PROJECT_BUILD_SCRIPT=%TEST_FOLDER%..\tools\builder\buildProject.bat
12-
echo PROJECT_BUILD_SCRIPT = %PROJECT_BUILD_SCRIPT%
13-
14-
set PROJECT_FILE=%TEST_FOLDER%TestCaller.DsrProj
15-
echo PROJECT_FILE = %PROJECT_FILE%
16-
17-
rem Build TestCaller and all its tests.
18-
call "%PROJECT_BUILD_SCRIPT%" "%PROJECT_FILE%" Windows %@%
19-
if errorlevel 0 (
20-
echo Done building TestCaller.
21-
) else (
22-
echo Failed building TestCaller.
23-
exit /b 1
24-
)
25-
26-
rem Call TestCaller with a path to the folder containing tests.
27-
echo Starting tests.
28-
call "%TEST_FOLDER%\TestCaller.exe" --test "%TEST_FOLDER%\tests"
29-
if errorlevel 0 (
30-
echo Done running tests.
31-
) else (
32-
echo Failed running tests.
33-
exit /b 1
34-
)
1+
@echo off
2+
3+
rem This script can be called from any path, as long as the first argument sais where this script is located.
4+
5+
echo Starting test on MS-Windows.
6+
7+
rem Get the test folder's path from the called path.
8+
set TEST_FOLDER=%~dp0
9+
echo TEST_FOLDER = %TEST_FOLDER%
10+
11+
set PROJECT_BUILD_SCRIPT=%TEST_FOLDER%..\tools\builder\buildProject.bat
12+
echo PROJECT_BUILD_SCRIPT = %PROJECT_BUILD_SCRIPT%
13+
14+
set PROJECT_FILE=%TEST_FOLDER%TestCaller.DsrProj
15+
echo PROJECT_FILE = %PROJECT_FILE%
16+
17+
rem Build TestCaller and all its tests.
18+
call "%PROJECT_BUILD_SCRIPT%" "%PROJECT_FILE%" Windows Optimization=0 %@%
19+
if errorlevel 0 (
20+
echo Done building TestCaller.
21+
) else (
22+
echo Failed building TestCaller.
23+
exit /b 1
24+
)
25+
26+
rem Call TestCaller with a path to the folder containing tests.
27+
echo Starting tests.
28+
call "%TEST_FOLDER%\TestCaller.exe" --test "%TEST_FOLDER%\tests"
29+
if errorlevel 0 (
30+
echo Done running tests.
31+
) else (
32+
echo Failed running tests.
33+
exit /b 1
34+
)

0 commit comments

Comments
 (0)