Open jwrober opened 9 months ago
Example output using Visual Studio (Windows Clang)
Test project C:/Users/James/Source/Repos/freeciv21/build-vs
Start 1: test_utility_paths
1/3 Test #1: test_utility_paths ............... Passed 0.54 sec
Start 2: test_rulesets
2/3 Test #2: test_rulesets ....................***Failed 54.18 sec
Start 3: test_server_cli
3/3 Test #3: test_server_cli ..................***Failed 27.34 sec
33% tests passed, 2 tests failed out of 3
Total Test time (real) = 82.35 sec
The following tests FAILED:
2 - test_rulesets (Failed)
3 - test_server_cli (Failed)
Errors while running CTest
Output from these tests are in: C:/Users/James/Source/Repos/freeciv21/build-vs/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Start testing: Jan 01 19:41 Central Standard Time
----------------------------------------------------------
1/3 Testing: test_utility_paths
1/3 Test: test_utility_paths
Command: "C:/Users/James/Source/Repos/freeciv21/build-vs/Debug/test_utility_paths.exe"
Directory: C:/Users/James/Source/Repos/freeciv21/build-vs/utility/tests
"test_utility_paths" start time: Jan 01 19:41 Central Standard Time
Output:
----------------------------------------------------------
<end of output>
Test time = 0.54 sec
----------------------------------------------------------
Test Passed.
"test_utility_paths" end time: Jan 01 19:41 Central Standard Time
"test_utility_paths" time elapsed: 00:00:00
----------------------------------------------------------
2/3 Testing: test_rulesets
2/3 Test: test_rulesets
Command: "C:/Users/James/Source/Repos/freeciv21/build-vs/Debug/test_rulesets.exe"
Directory: C:/Users/James/Source/Repos/freeciv21
"test_rulesets" start time: Jan 01 19:41 Central Standard Time
Output:
----------------------------------------------------------
<end of output>
Test time = 54.18 sec
----------------------------------------------------------
Test Failed.
"test_rulesets" end time: Jan 01 19:42 Central Standard Time
"test_rulesets" time elapsed: 00:00:54
----------------------------------------------------------
3/3 Testing: test_server_cli
3/3 Test: test_server_cli
Command: "C:/Users/James/Source/Repos/freeciv21/build-vs/Debug/test_server_cli.exe"
Directory: C:/Users/James/Source/Repos/freeciv21
"test_server_cli" start time: Jan 01 19:42 Central Standard Time
Output:
----------------------------------------------------------
<end of output>
Test time = 27.34 sec
----------------------------------------------------------
Test Failed.
"test_server_cli" end time: Jan 01 19:42 Central Standard Time
"test_server_cli" time elapsed: 00:00:27
----------------------------------------------------------
End testing: Jan 01 19:42 Central Standard Time
Describe the bug Unit Tests fail on Windows Msys2
To Reproduce Steps to reproduce the behavior:
cmake --build build -target test
Expected behavior We should be able to run tests on windows.
Some logs...
The server can be invoked from the Msys2 terminal
However the tests fail