[gnome-scan] Added empty test suite
- From: Étienne Bersac <bersace src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-scan] Added empty test suite
- Date: Sat, 20 Feb 2010 15:01:11 +0000 (UTC)
commit 57e819d9b2aa6fd988dde374e58766074b715a55
Author: Ã?tienne Bersac <bersace gnome org>
Date: Fri Feb 19 22:52:54 2010 +0100
Added empty test suite
lib/tests/Makefile.am | 16 ++++++++++++++++
lib/tests/options.c | 28 ++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am
new file mode 100644
index 0000000..1976e4f
--- /dev/null
+++ b/lib/tests/Makefile.am
@@ -0,0 +1,16 @@
+include $(top_srcdir)/Makefile.decl
+
+INCLUDES = \
+ $(GNOME_SCAN_CFLAGS) \
+ -I$(top_srcdir)/lib
+
+LIBS = \
+ -L$(top_builddir)/lib/ -lgnome-scan
+
+AM_CFLAGS = -Wall -g
+
+noinst_PROGRAMS = $(TEST_PROGS)
+
+TEST_PROGS += options
+options_SOURCES = options.c
+options_LDADD = $(LIBS)
diff --git a/lib/tests/options.c b/lib/tests/options.c
new file mode 100644
index 0000000..e3e6629
--- /dev/null
+++ b/lib/tests/options.c
@@ -0,0 +1,28 @@
+/* GNOME Scan - Scan as easy as you print
+ * Copyright © 2006-2008 �tienne Bersac <bersace gnome org>
+ *
+ * GNOME Scan is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * GNOME Scan is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with GNOME Scan. If not, write to:
+ *
+ * the Free Software Foundation, Inc.
+ * 51 Franklin Street, Fifth Floor
+ * Boston, MA 02110-1301, USA
+ */
+
+#include <glib.h>
+
+gint main(gint argc, gchar**argv)
+{
+ g_test_init(&argc, &argv, NULL);
+ return g_test_run();
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]