]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[daemon] Update tests to include compile correctly
authorCharlie Brej <cbrej@cs.man.ac.uk>
Wed, 13 May 2009 09:31:44 +0000 (10:31 +0100)
committerRay Strode <rstrode@redhat.com>
Wed, 20 May 2009 21:27:52 +0000 (17:27 -0400)
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.

src/libply/tests/ply-array-test.am
src/libply/tests/ply-frame-buffer-test.am
src/libply/tests/ply-logger-test.am
src/libply/tests/ply-terminal-test.am
src/ply-boot-splash.c
src/tests/ply-boot-splash-test.am

index 5888a305d280644462a71620ca004c26d668cd54..4f8ecc4e15dd88fd2d7f1514e6a412884445e360 100644 (file)
@@ -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                           \
index a402201c74cad2711fc7f83f26cefef16c8623fc..82afe7fd9f4f7925149a68ab42275bdf7dbcf72c 100644 (file)
@@ -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                            \
index 74330561eb8c229faba8741c43995bd9d7b4bbf9..a589fb926d3c71d7377d3ad0e92c2f5c721eb99a 100644 (file)
@@ -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                           \
index 92624135c7c0ca06b75eb501c476bad7ebf6461c..67a257246545cf848913856445c352ecf12794ba 100644 (file)
@@ -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                            \
index 9ef100a72d69e661823192a3a0b511ee3bacd8ec..e9533675e900d540f30a0456a867726b71a8ea64 100644 (file)
@@ -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;
index 2444c32c42504bee0f1f7b3174fb3d01a11dd689..7e14d75c9d07d3fd5a71ec2d1b1c5b6f12f6a2f7 100644 (file)
@@ -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 =                                                   \