Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(ECMGenerateDBusServiceFileTest)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules)
|
||||
|
||||
# make sure the test install dir is clean
|
||||
file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}")
|
||||
include(ECMGenerateDBusServiceFile)
|
||||
|
||||
# run test
|
||||
|
||||
ecm_generate_dbus_service_file(
|
||||
NAME org.kde.kded5
|
||||
EXECUTABLE /usr/bin/kded5
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/test
|
||||
)
|
||||
|
||||
ecm_generate_dbus_service_file(
|
||||
NAME org.kde.kded5.withSystemD
|
||||
EXECUTABLE /usr/bin/kded5
|
||||
SYSTEMD_SERVICE plasma-kded.service
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/test
|
||||
RENAME org.kde.kded5.withSystemD.renamed.service
|
||||
)
|
||||
|
||||
# this will be run by CTest
|
||||
configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
if (WIN32)
|
||||
set(EXPECTED "@CMAKE_CURRENT_SOURCE_DIR@/windowsexpected")
|
||||
else ()
|
||||
set(EXPECTED "@CMAKE_CURRENT_SOURCE_DIR@/expected")
|
||||
endif (WIN32)
|
||||
|
||||
set(ACTUAL "@CMAKE_INSTALL_PREFIX@")
|
||||
|
||||
# Compares files in two directories, emits a fatal error if the top level files are different
|
||||
# Takes a directory of expected files, and a directory of output files
|
||||
function(compare_dirs expected output )
|
||||
file(GLOB files "${expected}/*")
|
||||
foreach(file ${files})
|
||||
get_filename_component(name ${file} NAME)
|
||||
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E compare_files ${file} "${output}/${name}"
|
||||
RESULT_VARIABLE test_result
|
||||
)
|
||||
If (NOT test_result EQUAL 0)
|
||||
message(FATAL_ERROR "Test failed: ${file} doesn't match ${output}/${name}!")
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
compare_dirs(${EXPECTED} ${ACTUAL}/test )
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
[D-BUS Service]
|
||||
Name=org.kde.kded5
|
||||
Exec=/usr/bin/kded5
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=org.kde.kded5.withSystemD
|
||||
Exec=/usr/bin/kded5
|
||||
SystemdService=plasma-kded.service
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
[D-BUS Service]
|
||||
Name=org.kde.kded5
|
||||
Exec=kded5
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
[D-BUS Service]
|
||||
Name=org.kde.kded5.withSystemD
|
||||
Exec=kded5
|
||||
SystemdService=plasma-kded.service
|
||||
Reference in New Issue
Block a user