diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2021-11-17 13:16:21 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2021-11-23 14:36:57 +0000 |
commit | 148ea287a0a7b9de96dc299db56254c65aec3385 (patch) | |
tree | a12c359a44e852038d42426677c8182eae6fe51a /autotests | |
parent | 829cc003ee4f21e91d806a2e2a353ae709ab999f (diff) | |
download | kconfig-148ea287a0a7b9de96dc299db56254c65aec3385.tar.gz kconfig-148ea287a0a7b9de96dc299db56254c65aec3385.tar.bz2 |
Add a proper test for the enumms within groups
Diffstat (limited to 'autotests')
-rw-r--r-- | autotests/kconfig_compiler/CMakeLists.txt | 2 | ||||
-rw-r--r-- | autotests/kconfig_compiler/enum_group_main.cpp | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/autotests/kconfig_compiler/CMakeLists.txt b/autotests/kconfig_compiler/CMakeLists.txt index 6ca8d923..74d09e96 100644 --- a/autotests/kconfig_compiler/CMakeLists.txt +++ b/autotests/kconfig_compiler/CMakeLists.txt @@ -307,7 +307,7 @@ target_link_libraries(test_fileextensions KF5::ConfigGui) ####### next target ########## ## If this to compiles, we are sure that the generation is correct. -set(test_enums_and_properties_SRCS empty_main.cpp) +set(test_enums_and_properties_SRCS enum_group_main.cpp) gen_kcfg_test_source(test_enums_and_properties test_enums_and_properties_SRCS GENERATE_MOC) add_library(test_enums_and_properties ${test_enums_and_properties_SRCS}) target_link_libraries(test_enums_and_properties KF5::ConfigGui) diff --git a/autotests/kconfig_compiler/enum_group_main.cpp b/autotests/kconfig_compiler/enum_group_main.cpp new file mode 100644 index 00000000..fc93d275 --- /dev/null +++ b/autotests/kconfig_compiler/enum_group_main.cpp @@ -0,0 +1,18 @@ +/* + SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org> + + SPDX-License-Identifier: MIT +*/ +#include "test_enums_and_properties.h" +#include <QGuiApplication> + +int main(int argc, char **argv) +{ + QGuiApplication app(argc, argv); + + auto *t = new TestEnumsAndProperties(); + delete t; + + Q_UNUSED(app); + return 0; +} |