mirror of
https://github.com/minetest/minetest.git
synced 2024-07-02 14:10:33 +02:00
Fix improper unit test paths
This commit is contained in:
parent
0eef3b07b8
commit
d4d9035ee5
@ -58,16 +58,16 @@ class ScopedMesh
|
||||
};
|
||||
|
||||
TEST_CASE("load empty gltf file") {
|
||||
ScopedMesh sm(XSTR(UNITTEST_ASSETS_DIRECTORY) "/empty.gltf");
|
||||
ScopedMesh sm(XSTR(UNITTEST_ASSETS_DIRECTORY) "empty.gltf");
|
||||
CHECK(sm.getMesh() == nullptr);
|
||||
}
|
||||
|
||||
TEST_CASE("minimal triangle") {
|
||||
auto path = GENERATE(
|
||||
XSTR(UNITTEST_ASSETS_DIRECTORY) "/minimal_triangle.gltf",
|
||||
XSTR(UNITTEST_ASSETS_DIRECTORY) "/triangle_with_vertex_stride.gltf",
|
||||
XSTR(UNITTEST_ASSETS_DIRECTORY) "minimal_triangle.gltf",
|
||||
XSTR(UNITTEST_ASSETS_DIRECTORY) "triangle_with_vertex_stride.gltf",
|
||||
// Test non-indexed geometry.
|
||||
XSTR(UNITTEST_ASSETS_DIRECTORY) "/triangle_without_indices.gltf");
|
||||
XSTR(UNITTEST_ASSETS_DIRECTORY) "triangle_without_indices.gltf");
|
||||
INFO(path);
|
||||
ScopedMesh sm(path);
|
||||
REQUIRE(sm.getMesh() != nullptr);
|
||||
@ -93,7 +93,7 @@ TEST_CASE("minimal triangle") {
|
||||
}
|
||||
|
||||
TEST_CASE("blender cube") {
|
||||
ScopedMesh sm(XSTR(UNITTEST_ASSETS_DIRECTORY) "/blender_cube.gltf");
|
||||
ScopedMesh sm(XSTR(UNITTEST_ASSETS_DIRECTORY) "blender_cube.gltf");
|
||||
REQUIRE(sm.getMesh() != nullptr);
|
||||
REQUIRE(sm.getMesh()->getMeshBufferCount() == 1);
|
||||
SECTION("vertex coordinates are correct") {
|
||||
|
Loading…
Reference in New Issue
Block a user