From a376d20c300635a49f77d56446bdfaebab3e2115 Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 9 Aug 2024 16:57:59 +0200 Subject: [PATCH 1/2] Fix tests on windows --- apps/components_tests/misc/testmathutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/components_tests/misc/testmathutil.cpp b/apps/components_tests/misc/testmathutil.cpp index e8a296156a..c4b545c2f4 100644 --- a/apps/components_tests/misc/testmathutil.cpp +++ b/apps/components_tests/misc/testmathutil.cpp @@ -44,7 +44,7 @@ namespace Misc TEST_P(MiscToEulerAnglesXZQuatTest, shouldReturnValueCloseTo) { const osg::Vec3f result = toEulerAnglesXZ(GetParam().first); - EXPECT_THAT(result, Vec3fEq(GetParam().second, std::numeric_limits::epsilon())) + EXPECT_THAT(result, Vec3fEq(GetParam().second, 1e-6)) << "toEulerAnglesXZ(" << GetParam().first << ") = " << result; } From d4990f57075c7f61c3b2791ce9dc9f24e25ae532 Mon Sep 17 00:00:00 2001 From: elsid Date: Thu, 8 Aug 2024 22:41:16 +0200 Subject: [PATCH 2/2] Run unit tests and benchmarks in windows CI job on github --- .github/workflows/openmw.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openmw.yml b/.github/workflows/openmw.yml index 9d65b262d1..f19f60bd96 100644 --- a/.github/workflows/openmw.yml +++ b/.github/workflows/openmw.yml @@ -166,11 +166,9 @@ jobs: -D OPENMW_LTO_BUILD=ON - name: Build OpenMW - working-directory: ${{ github.workspace }} run: cmake --build ${{ github.workspace }}/build - name: Install OpenMW - working-directory: ${{ github.workspace }} run: cmake --install ${{ github.workspace }}/build --prefix ${{ github.workspace }}/install - name: Copy missing DLLs @@ -231,3 +229,25 @@ jobs: with: name: openmw-${{ matrix.image }}-${{ github.sha }} path: ${{ github.workspace }}/install/* + + - name: Add install directory to PATH + shell: bash + run: echo '${{ github.workspace }}/install' >> ${GITHUB_PATH} + + - name: Run components tests + run: build/components-tests.exe + + - name: Run OpenMW tests + run: build/openmw-tests.exe + + - name: Run OpenMW-CS tests + run: build/openmw-cs-tests.exe + + - name: Run detournavigator navmeshtilescache benchmark + run: build/openmw_detournavigator_navmeshtilescache_benchmark.exe + + - name: Run settings access benchmark + run: build/openmw_settings_access_benchmark.exe + + - name: Run esm refid benchmark + run: build/openmw_esm_refid_benchmark.exe