mirror of https://github.com/qt/qtgrpc.git
Set the QTP0004 to NEW in protobuf/grpc quick tests
Allow QML CMake functionality automating the qmldir file generating for us. Change-Id: If049936c640cb5d18433a4ac07f8b62d098997ed Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
ed9b23bffd
commit
1665d639e4
|
|
@ -17,6 +17,7 @@ qt_internal_add_test(tst_calloptions_qml
|
|||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_add_qml_module(tst_calloptions_qml
|
||||
URI QmlTestUri
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ qt_internal_add_test(tst_grpc_channel_options_qml
|
|||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_add_qml_module(tst_grpc_channel_options_qml
|
||||
URI QmlTestUri
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ if(NOT TARGET grpc_testserver)
|
|||
return()
|
||||
endif()
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_grpc_client_bidirstream_qml
|
||||
QMLTEST
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ if(NOT TARGET grpc_testserver)
|
|||
return()
|
||||
endif()
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_grpc_client_clientstream_qml
|
||||
QMLTEST
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ if(NOT TARGET grpc_testserver)
|
|||
return()
|
||||
endif()
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_grpc_client_serverstream_qml
|
||||
QMLTEST
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ if(NOT TARGET grpc_testserver)
|
|||
return()
|
||||
endif()
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_grpc_client_unarycall_qml
|
||||
QMLTEST
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ qt_internal_add_test(tst_grpc_http2channel_qml
|
|||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_add_qml_module(tst_grpc_http2channel_qml
|
||||
URI QmlTestUri
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ qt_internal_add_test(tst_grpc_metadata_qml
|
|||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_add_qml_module(tst_grpc_metadata_qml
|
||||
URI QmlTestUri
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ endif()
|
|||
|
||||
set(CMAKE_AUTOMOC TRUE)
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_protobuf_basictypes_qml
|
||||
QMLTEST
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|||
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
||||
endif()
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_protobuf_enumtypes_qml
|
||||
QMLTEST
|
||||
SOURCES
|
||||
|
|
@ -15,7 +18,6 @@ qt_internal_add_test(tst_protobuf_enumtypes_qml
|
|||
Qt::Qml
|
||||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_add_qml_module(tst_protobuf_enumtypes_qml
|
||||
URI QmlTestUri
|
||||
VERSION 1.0
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|||
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
||||
endif()
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_protobuf_repeated_qml
|
||||
QMLTEST
|
||||
SOURCES
|
||||
|
|
@ -25,8 +28,6 @@ qt_add_protobuf(tst_protobuf_repeated_qml_gen
|
|||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated"
|
||||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
|
||||
qt_add_qml_module(tst_protobuf_repeated_qml
|
||||
URI QmlTestUri
|
||||
VERSION 1.0
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|||
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
||||
endif()
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_nestedtypes_qtprotobuf_qmltest
|
||||
QMLTEST
|
||||
SOURCES
|
||||
|
|
@ -15,8 +18,6 @@ qt_internal_add_test(tst_nestedtypes_qtprotobuf_qmltest
|
|||
Qt::Qml
|
||||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
|
||||
qt_add_protobuf(tst_nestedtypes_qtprotobuf_qml
|
||||
PROTO_FILES
|
||||
../../protobuf/nested/proto/nestedmessages.proto
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|||
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
||||
endif()
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_protobuf_nopackage_qml
|
||||
QMLTEST
|
||||
SOURCES
|
||||
|
|
@ -25,7 +28,6 @@ qt_add_protobuf(tst_protobuf_nopackage_qml_gen
|
|||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated"
|
||||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_add_qml_module(tst_protobuf_nopackage_qml
|
||||
URI QmlTestUri
|
||||
VERSION 1.0
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ endif()
|
|||
|
||||
set(CMAKE_AUTOMOC TRUE)
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_protobuf_oneof_qml
|
||||
QMLTEST
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
|||
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
|
||||
endif()
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
qt_policy(SET QTP0004 NEW)
|
||||
|
||||
qt_internal_add_test(tst_protobuf_syntax_qml
|
||||
QMLTEST
|
||||
SOURCES
|
||||
|
|
@ -22,8 +25,6 @@ qt_add_protobuf(tst_protobuf_syntax_qml_gen
|
|||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/qt_protobuf_generated"
|
||||
)
|
||||
|
||||
qt_policy(SET QTP0001 NEW)
|
||||
|
||||
qt_add_qml_module(tst_protobuf_syntax_qml
|
||||
URI QmlTestUri
|
||||
VERSION 1.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue