Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ set(W3D_SOURCES
add_executable(w3d_tests
w3d/test_chunk_reader.cpp
w3d/test_mesh_parser.cpp
w3d/test_hierarchy_parser.cpp
w3d/test_animation_parser.cpp
w3d/test_hlod_parser.cpp
w3d/test_loader.cpp
${W3D_SOURCES}
)
Expand Down Expand Up @@ -86,64 +83,3 @@ else()
endif()

add_test(NAME mesh_converter_tests COMMAND mesh_converter_tests)

# Skeleton pose tests (requires GLM, no Vulkan)
add_executable(skeleton_tests
render/test_skeleton_pose.cpp
render/test_animation_player.cpp
${CMAKE_SOURCE_DIR}/src/render/skeleton.cpp
${CMAKE_SOURCE_DIR}/src/render/animation_player.cpp
)

target_link_libraries(skeleton_tests PRIVATE gtest gtest_main glm::glm)

target_include_directories(skeleton_tests PRIVATE
${CMAKE_SOURCE_DIR}/src
)

if(MSVC)
target_compile_options(skeleton_tests PRIVATE /W4 /permissive-)
else()
target_compile_options(skeleton_tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
endif()

add_test(NAME skeleton_tests COMMAND skeleton_tests)

# Bounding box tests (requires GLM, no Vulkan)
add_executable(bounding_box_tests
render/test_bounding_box.cpp
)

target_link_libraries(bounding_box_tests PRIVATE gtest gtest_main glm::glm)

target_include_directories(bounding_box_tests PRIVATE
${CMAKE_SOURCE_DIR}/src
)

if(MSVC)
target_compile_options(bounding_box_tests PRIVATE /W4 /permissive-)
else()
target_compile_options(bounding_box_tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
endif()

add_test(NAME bounding_box_tests COMMAND bounding_box_tests)

# Raycast tests (requires GLM, no Vulkan)
add_executable(raycast_tests
render/raycast_test.cpp
${CMAKE_SOURCE_DIR}/src/render/raycast.cpp
)

target_link_libraries(raycast_tests PRIVATE gtest gtest_main glm::glm)

target_include_directories(raycast_tests PRIVATE
${CMAKE_SOURCE_DIR}/src
)

if(MSVC)
target_compile_options(raycast_tests PRIVATE /W4 /permissive-)
else()
target_compile_options(raycast_tests PRIVATE -Wall -Wextra -Wpedantic -Werror)
endif()

add_test(NAME raycast_tests COMMAND raycast_tests)
2 changes: 0 additions & 2 deletions tests/render/raycast_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ TEST(RaycastTest, ScreenToWorldRay) {
glm::vec3(0.0f, 1.0f, 0.0f) // Up vector
);
glm::mat4 proj = glm::perspective(glm::radians(45.0f), 800.0f / 600.0f, 0.1f, 100.0f);
proj[1][1] *= -1.0f; // Vulkan Y-flip

// Center of screen should produce ray along -Z axis
glm::vec2 screenCenter(400.0f, 300.0f);
Expand All @@ -218,7 +217,6 @@ TEST(RaycastTest, ScreenToWorldRayCorner) {
glm::mat4 view = glm::lookAt(glm::vec3(0.0f, 0.0f, 5.0f), glm::vec3(0.0f, 0.0f, 0.0f),
glm::vec3(0.0f, 1.0f, 0.0f));
glm::mat4 proj = glm::perspective(glm::radians(45.0f), 800.0f / 600.0f, 0.1f, 100.0f);
proj[1][1] *= -1.0f; // Vulkan Y-flip

// Top-left corner
glm::vec2 screenTopLeft(0.0f, 0.0f);
Expand Down
Loading