-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Generate test name from test path
Simplifies registering tests in the build system and avoid errors. To realize this, the test macro doesn't allow including multiple test files any more, but this wasn't used anyway in the codebase. Closes #123
- Loading branch information
Showing
8 changed files
with
59 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
add_ce3d2_test(BoxTest | ||
${CMAKE_CURRENT_LIST_DIR}/BoxTest) | ||
add_ce3d2_test(LinearAffineFunctionTest | ||
${CMAKE_CURRENT_LIST_DIR}/LinearAffineFunctionTest) | ||
add_ce3d2_test(mathTest | ||
${CMAKE_CURRENT_LIST_DIR}/mathTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/BoxTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/LinearAffineFunctionTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/mathTest) | ||
|
||
add_subdirectory("matrices") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_ce3d2_test(matricesTest | ||
${CMAKE_CURRENT_LIST_DIR}/matricesTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/matricesTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
add_ce3d2_test(IndexPairTest ${CMAKE_CURRENT_LIST_DIR}/IndexPairTest) | ||
add_ce3d2_test(LineModelTest ${CMAKE_CURRENT_LIST_DIR}/LineModelTest) | ||
add_ce3d2_test(ModelTest ${CMAKE_CURRENT_LIST_DIR}/ModelTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/IndexPairTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/LineModelTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/ModelTest) | ||
|
||
add_subdirectory("loaders") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
add_ce3d2_test(AllTest ${CMAKE_CURRENT_LIST_DIR}/AllTest) | ||
add_ce3d2_test(FileFormatExceptionTest ${CMAKE_CURRENT_LIST_DIR}/FileFormatExceptionTest.cpp) | ||
add_ce3d2_test(InvalidFileExceptionTest ${CMAKE_CURRENT_LIST_DIR}/InvalidFileExceptionTest.cpp) | ||
add_ce3d2_test(WavefrontObjTest ${CMAKE_CURRENT_LIST_DIR}/WavefrontObjTest.cpp) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/AllTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/FileFormatExceptionTest.cpp) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/InvalidFileExceptionTest.cpp) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/WavefrontObjTest.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
add_ce3d2_test(TextRendererTest ${CMAKE_CURRENT_LIST_DIR}/TextRendererTest) | ||
add_ce3d2_test(TextSurfaceTest ${CMAKE_CURRENT_LIST_DIR}/TextSurfaceTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/TextRendererTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/TextSurfaceTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
add_ce3d2_test(stringsTest ${CMAKE_CURRENT_LIST_DIR}/stringsTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/stringsTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
add_ce3d2_test(ITransformableTest | ||
${CMAKE_CURRENT_LIST_DIR}/ITransformableTest) | ||
add_ce3d2_test(LinearTransformationTest | ||
${CMAKE_CURRENT_LIST_DIR}/LinearTransformationTest) | ||
add_ce3d2_test(MatrixTransformationTest | ||
${CMAKE_CURRENT_LIST_DIR}/MatrixTransformationTest) | ||
add_ce3d2_test(MirrorTest | ||
${CMAKE_CURRENT_LIST_DIR}/MirrorTest) | ||
add_ce3d2_test(OrthogonalProjectionTest | ||
${CMAKE_CURRENT_LIST_DIR}/OrthogonalProjectionTest) | ||
add_ce3d2_test(PermutationTest | ||
${CMAKE_CURRENT_LIST_DIR}/PermutationTest) | ||
add_ce3d2_test(PermutationVectorTest | ||
${CMAKE_CURRENT_LIST_DIR}/PermutationVectorTest) | ||
add_ce3d2_test(RotationTest | ||
${CMAKE_CURRENT_LIST_DIR}/RotationTest) | ||
add_ce3d2_test(ScaleTest | ||
${CMAKE_CURRENT_LIST_DIR}/ScaleTest) | ||
add_ce3d2_test(TransformationTest | ||
${CMAKE_CURRENT_LIST_DIR}/TransformationTest) | ||
add_ce3d2_test(TransformationChainTest | ||
${CMAKE_CURRENT_LIST_DIR}/TransformationChainTest) | ||
add_ce3d2_test(TranslationTest | ||
${CMAKE_CURRENT_LIST_DIR}/TranslationTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/ITransformableTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/LinearTransformationTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/MatrixTransformationTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/MirrorTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/OrthogonalProjectionTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/PermutationTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/PermutationVectorTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/RotationTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/ScaleTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/TransformationTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/TransformationChainTest) | ||
add_ce3d2_test(${CMAKE_CURRENT_LIST_DIR}/TranslationTest) |