From 148ea287a0a7b9de96dc299db56254c65aec3385 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 17 Nov 2021 13:16:21 -0300 Subject: Add a proper test for the enumms within groups --- autotests/kconfig_compiler/CMakeLists.txt | 2 +- autotests/kconfig_compiler/enum_group_main.cpp | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 autotests/kconfig_compiler/enum_group_main.cpp (limited to 'autotests') 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 + + SPDX-License-Identifier: MIT +*/ +#include "test_enums_and_properties.h" +#include + +int main(int argc, char **argv) +{ + QGuiApplication app(argc, argv); + + auto *t = new TestEnumsAndProperties(); + delete t; + + Q_UNUSED(app); + return 0; +} -- cgit v1.2.1