mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 02:28:19 +02:00
[daemon] Update tests to include compile correctly
Adds ply-list.c/h to all tests automake files which use ply-logger.c. Adds PLYMOUTH_TIME_DIRECTORY/PLUGIN/THEME_PATH when ply-boot-splash.c is used. Adds PLY_BOOT_SPLASH_MODE_BOOT_UP to the ply_boot_splash_show call.
This commit is contained in:
parent
1f7e2c0772
commit
d45a6e4915
6 changed files with 14 additions and 2 deletions
|
|
@ -6,6 +6,8 @@ ply_array_test_LDADD = $(PLYMOUTH_LIBS)
|
|||
ply_array_test_SOURCES = \
|
||||
$(srcdir)/../ply-buffer.h \
|
||||
$(srcdir)/../ply-buffer.c \
|
||||
$(srcdir)/../ply-list.h \
|
||||
$(srcdir)/../ply-list.c \
|
||||
$(srcdir)/../ply-logger.h \
|
||||
$(srcdir)/../ply-logger.c \
|
||||
$(srcdir)/../ply-utils.h \
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ ply_frame_buffer_test_SOURCES = \
|
|||
$(srcdir)/../ply-utils.h \
|
||||
$(srcdir)/../ply-frame-buffer.h \
|
||||
$(srcdir)/../ply-frame-buffer.c \
|
||||
$(srcdir)/../ply-list.h \
|
||||
$(srcdir)/../ply-list.c \
|
||||
$(srcdir)/../ply-logger.h \
|
||||
$(srcdir)/../ply-logger.c \
|
||||
$(srcdir)/../ply-utils.h \
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ ply_logger_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_LOGGER_ENABLE_TEST
|
|||
ply_logger_test_LDADD = $(PLYMOUTH_LIBS)
|
||||
|
||||
ply_logger_test_SOURCES = \
|
||||
$(srcdir)/../ply-list.h \
|
||||
$(srcdir)/../ply-list.c \
|
||||
$(srcdir)/../ply-utils.h \
|
||||
$(srcdir)/../ply-utils.c \
|
||||
$(srcdir)/../ply-logger.h \
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ ply_terminal_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_TERMINAL_ENABLE_TEST
|
|||
ply_terminal_test_LDADD = $(PLYMOUTH_LIBS)
|
||||
|
||||
ply_terminal_test_SOURCES = \
|
||||
$(srcdir)/../ply-list.h \
|
||||
$(srcdir)/../ply-list.c \
|
||||
$(srcdir)/../ply-logger.h \
|
||||
$(srcdir)/../ply-logger.c \
|
||||
$(srcdir)/../ply-utils.h \
|
||||
|
|
|
|||
|
|
@ -478,7 +478,7 @@ main (int argc,
|
|||
ply_boot_splash_add_window (state.splash, state.window);
|
||||
ply_boot_splash_attach_to_event_loop (state.splash, state.loop);
|
||||
|
||||
if (!ply_boot_splash_show (state.splash))
|
||||
if (!ply_boot_splash_show (state.splash, PLY_BOOT_SPLASH_MODE_BOOT_UP))
|
||||
{
|
||||
perror ("could not show splash screen");
|
||||
return errno;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
TESTS += ply-boot-splash-test
|
||||
|
||||
ply_boot_splash_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_BOOT_SPLASH_ENABLE_TEST -DPLYMOUTH_TIME_DIRECTORY=\"/var/lib/plymouth\"
|
||||
ply_boot_splash_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_BOOT_SPLASH_ENABLE_TEST \
|
||||
-DPLYMOUTH_TIME_DIRECTORY=\"/var/lib/plymouth\" \
|
||||
-DPLYMOUTH_PLUGIN_PATH=\"$(libdir)/plymouth/\" \
|
||||
-DPLYMOUTH_THEME_PATH=\"$(PLYMOUTH_THEME_PATH)/\"
|
||||
|
||||
ply_boot_splash_test_LDADD = $(PLYMOUTH_LIBS) ../libply/libply.la
|
||||
|
||||
ply_boot_splash_test_SOURCES = \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue