diff options
author | Jeroen Bakker <jbakker> | 2021-11-24 10:01:48 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-11-24 10:02:50 +0300 |
commit | 16fc0da0e7d8286f17ba254213c6ba8c5a336f3a (patch) | |
tree | 93dcc2f6f817a78d8579f4072c3115a14a54c6d4 /source/blender/editors/animation/CMakeLists.txt | |
parent | 21f22759ea84c583bc2ce8234c51a75b224984a5 (diff) |
Animation: Add test cases for `ED_keyframes_keylist`.
This patch adds test cases to detect edge cases when finding
keylist columns.
The patch originated during development of D12052 to make sure
the new implementation matches the old implementation. It would
be good to add these test cases to master so this part is covered
in a next change might influence the expected edges.
The patch covers `ED_keylist_find_next`, `ED_keylist_find_prev`
and `ED_keylist_find_exact` methods.
Reviewed By: sybren
Differential Revision: https://developer.blender.org/D12302
Diffstat (limited to 'source/blender/editors/animation/CMakeLists.txt')
-rw-r--r-- | source/blender/editors/animation/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/animation/CMakeLists.txt b/source/blender/editors/animation/CMakeLists.txt index d9f52d90766..808593ef1c5 100644 --- a/source/blender/editors/animation/CMakeLists.txt +++ b/source/blender/editors/animation/CMakeLists.txt @@ -70,3 +70,15 @@ endif() blender_add_lib(bf_editor_animation "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") + +if(WITH_GTESTS) + set(TEST_SRC + keyframes_keylist_test.cc + ) + set(TEST_INC + ) + set(TEST_LIB + ) + include(GTestTesting) + blender_add_test_lib(bf_editor_animation_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB};${TEST_LIB}") +endif()
\ No newline at end of file |