summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2007-05-16 15:30:27 -0400
committerRay Strode <rstrode@redhat.com>2007-05-16 15:30:27 -0400
commit1a45864fb1ddc7c50b28cd1e2a436f1925d9d656 (patch)
treebf3a2e83c53234b5fe14b653c39408bf84e040a0 /src/tests
parent341e89438f87060584d180e3bd6bf801f0ed84ea (diff)
downloadplymouth-1a45864fb1ddc7c50b28cd1e2a436f1925d9d656.tar.gz
plymouth-1a45864fb1ddc7c50b28cd1e2a436f1925d9d656.tar.xz
plymouth-1a45864fb1ddc7c50b28cd1e2a436f1925d9d656.zip
Add a tests/ directory to keep tests in
Note the tests that are there now aren't really suited for automated testing, so make check is hosed right now
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/Makefile.am12
-rw-r--r--src/tests/ply-frame-buffer-test.am8
-rw-r--r--src/tests/ply-image-test.am10
-rw-r--r--src/tests/ply-init-control-test.am11
-rw-r--r--src/tests/ply-terminal-test.am10
5 files changed, 51 insertions, 0 deletions
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
new file mode 100644
index 0000000..7c4d973
--- /dev/null
+++ b/src/tests/Makefile.am
@@ -0,0 +1,12 @@
+INCLUDES = \
+ -I$(top_srcdir) \
+ -I$(srcdir)/.. \
+ -I$(srcdir)
+TESTS =
+
+include $(srcdir)/ply-frame-buffer-test.am
+include $(srcdir)/ply-image-test.am
+include $(srcdir)/ply-terminal-test.am
+include $(srcdir)/ply-init-control-test.am
+
+noinst_PROGRAMS = $(TESTS)
diff --git a/src/tests/ply-frame-buffer-test.am b/src/tests/ply-frame-buffer-test.am
new file mode 100644
index 0000000..d480c0e
--- /dev/null
+++ b/src/tests/ply-frame-buffer-test.am
@@ -0,0 +1,8 @@
+TESTS += ply-frame-buffer-test
+
+ply_frame_buffer_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_FRAME_BUFFER_ENABLE_TEST
+ply_frame_buffer_test_LDADD = $(PLYMOUTH_LIBS) -lm
+ply_frame_buffer_test_SOURCES = \
+ $(srcdir)/../ply-utils.h \
+ $(srcdir)/../ply-frame-buffer.h \
+ $(srcdir)/../ply-frame-buffer.c
diff --git a/src/tests/ply-image-test.am b/src/tests/ply-image-test.am
new file mode 100644
index 0000000..3183a39
--- /dev/null
+++ b/src/tests/ply-image-test.am
@@ -0,0 +1,10 @@
+TESTS += ply-image-test
+
+ply_image_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_IMAGE_ENABLE_TEST
+ply_image_test_LDADD = $(PLYMOUTH_LIBS) -lm -lpng
+ply_image_test_SOURCES = \
+ $(srcdir)/../ply-utils.h \
+ $(srcdir)/../ply-frame-buffer.h \
+ $(srcdir)/../ply-frame-buffer.c \
+ $(srcdir)/../ply-image.h \
+ $(srcdir)/../ply-image.c
diff --git a/src/tests/ply-init-control-test.am b/src/tests/ply-init-control-test.am
new file mode 100644
index 0000000..b53a2f5
--- /dev/null
+++ b/src/tests/ply-init-control-test.am
@@ -0,0 +1,11 @@
+TESTS += ply-init-control-test
+
+ply_init_control_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_INIT_CONTROL_ENABLE_TEST
+ply_init_control_test_LDADD = $(PLYMOUTH_LIBS)
+ply_init_control_test_SOURCES = \
+ $(srcdir)/../ply-utils.h \
+ $(srcdir)/../ply-utils.c \
+ $(srcdir)/../ply-terminal.h \
+ $(srcdir)/../ply-terminal.c \
+ $(srcdir)/../ply-init-control.h \
+ $(srcdir)/../ply-init-control.c
diff --git a/src/tests/ply-terminal-test.am b/src/tests/ply-terminal-test.am
new file mode 100644
index 0000000..66f3c41
--- /dev/null
+++ b/src/tests/ply-terminal-test.am
@@ -0,0 +1,10 @@
+TESTS += ply-terminal-test
+
+ply_terminal_test_CFLAGS = $(PLYMOUTH_CFLAGS) -DPLY_TERMINAL_ENABLE_TEST
+ply_terminal_test_LDADD = $(PLYMOUTH_LIBS)
+
+ply_terminal_test_SOURCES = \
+ $(srcdir)/../ply-utils.h \
+ $(srcdir)/../ply-utils.c \
+ $(srcdir)/../ply-terminal.h \
+ $(srcdir)/../ply-terminal.c