aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-13 00:52:50 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-13 00:52:50 +0100
commit73262741e8480f6161659275c9d9239e6351d011 (patch)
tree47d6987cd3a6ef021f0f1191882d0a906b9428bd /tests/CMakeLists.txt
parent66412674cb282a7f0e0c8c29cfeb1d2f8c4c3de1 (diff)
downloadayatana-indicator-sound-73262741e8480f6161659275c9d9239e6351d011.tar.gz
ayatana-indicator-sound-73262741e8480f6161659275c9d9239e6351d011.tar.bz2
ayatana-indicator-sound-73262741e8480f6161659275c9d9239e6351d011.zip
tests/integration/: Provider a FAKE_HOME for pulseaudio to have a secure location for its user config files.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 8666e6d..bf0b5ab 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -14,6 +14,7 @@ set_source_files_properties (gschemas.compiled GENERATED)
# compile the indicator-sound schema into a gschemas.compiled file in this directory,
# and help the tests to find that file by setting -DSCHEMA_DIR
set (XDG_DATA_DIRS "${CMAKE_CURRENT_BINARY_DIR}/gsettings-schemas")
+set (FAKE_HOME "${CMAKE_CURRENT_BINARY_DIR}/fake-home")
set (SCHEMA_DIR "${XDG_DATA_DIRS}/glib-2.0/schemas")
if (EXISTS /usr/share/glib-2.0/schemas/com.ubuntu.sound.gschema.xml)
set (SOUND_SCHEMA /usr/share/glib-2.0/schemas/com.ubuntu.sound.gschema.xml)
@@ -31,6 +32,8 @@ add_custom_command (OUTPUT gschemas.compiled
COMMAND cp -f ${CMAKE_SOURCE_DIR}/data/org.ayatana.indicator.sound.gschema.xml ${SCHEMA_DIR}
COMMAND cp -f ${SOUND_SCHEMA} ${SCHEMA_DIR}
COMMAND ${COMPILE_SCHEMA_EXECUTABLE} ${SCHEMA_DIR})
+add_custom_command (OUTPUT fake-home
+ COMMAND mkdir -p $(FAKE_HOME))
###########################
# Vala Mocks