Skip to content

Commit cf3fda3

Browse files
committed
Add test targets to ALL.
1 parent b498f18 commit cf3fda3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else()
1212
set(UIBASE_PATH "${MO2_INSTALL_PATH}/bin")
1313
endif()
1414

15-
add_custom_target(python-tests)
15+
add_custom_target(python-tests ALL)
1616

1717
add_test(NAME pytest
1818
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/pylibs/bin/pytest.exe ${CMAKE_CURRENT_SOURCE_DIR} -s

tests/runner/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ cmake_minimum_required(VERSION 3.22)
55

66
# first we configure the tests as with other tests
77
add_executable(runner-tests EXCLUDE_FROM_ALL)
8-
98
mo2_configure_tests(runner-tests WARNINGS OFF)
109

1110
set_target_properties(runner-tests PROPERTIES FOLDER tests/runner)

tests/runner/test_lifetime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ TEST(Lifetime, Plugins)
1818

1919
// we found one plugin
2020
ASSERT_EQ(objects.size(), 1);
21+
ASSERT_EQ(objects[0].size(), 1);
2122

2223
// check that deleting the object actually destroys it
2324
bool destroyed = false;
@@ -38,6 +39,7 @@ TEST(Lifetime, Plugins)
3839

3940
// we found one plugin
4041
ASSERT_EQ(objects.size(), 1);
42+
ASSERT_EQ(objects[0].size(), 1);
4143
objects[0][0]->setParent(dummy_parent);
4244

4345
// check that deleting the object actually destroys it

0 commit comments

Comments
 (0)