[gobject-introspection] tests: Add SLetter
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Add SLetter
- Date: Mon, 2 Jul 2012 20:37:33 +0000 (UTC)
commit b8625d15100abbef264d905c47863149572c6520
Author: Colin Walters <walters verbum org>
Date: Mon Jul 2 16:06:00 2012 -0400
tests: Add SLetter
This test case has a single-letter symbol prefix, which triggers
edge cases in the difference between prefix handling.
See https://bugzilla.gnome.org/show_bug.cgi?id=637025
tests/scanner/Makefile.am | 13 +++++++++++++
tests/scanner/sletter.c | 9 +++++++++
tests/scanner/sletter.h | 13 +++++++++++++
3 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index 0e5ddb5..0db77cc 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -4,6 +4,7 @@ include $(top_srcdir)/Makefile.introspection
INTROSPECTION_SCANNER_ARGS += --warn-all
check_LTLIBRARIES = \
+ libsletter.la \
libannotation.la \
libtestinherit.la \
libfoo.la \
@@ -21,6 +22,11 @@ AM_CFLAGS = $(GIO_CFLAGS) $(GOBJECT_CFLAGS) $(GTHREAD_CFLAGS)
AM_LDFLAGS = -rpath /unused -avoid-version
LIBS = $(GOBJECT_LIBS) $(GTHREAD_LIBS)
+libsletter_la_SOURCES = $(srcdir)/sletter.c $(srcdir)/sletter.h
+libsletter_la_LIBADD = $(GIO_LIBS)
+libsletter_la_CFLAGS = $(AM_CFLAGS)
+libsletter_la_LDFLAGS = $(AM_LDFLAGS)
+
libannotation_la_SOURCES = $(srcdir)/annotation.c $(srcdir)/annotation.h
libtestinherit_la_SOURCES = $(srcdir)/drawable.c $(srcdir)/drawable.h
libfoo_la_SOURCES = $(srcdir)/foo.c $(srcdir)/foo.h
@@ -51,6 +57,13 @@ INTROSPECTION_GIRS = $(GIRS)
CLEANFILES = $(TYPELIBS) $(GIRS)
EXTRA_DIST = $(EXPECTEDGIRS)
+SLetter-1.0.gir: $(top_builddir)/Gio-2.0.gir libsletter.la
+SLetter_1_0_gir_LIBS = libsletter.la
+SLetter_1_0_gir_INCLUDES = Gio-2.0
+SLetter_1_0_gir_FILES = $(libsletter_la_SOURCES)
+SLetter_1_0_gir_SCANNERFLAGS = --identifier-prefix=S --c-include="sletter.h" --warn-error
+GIRS += SLetter-1.0.gir
+
Regress-1.0.gir: $(top_builddir)/Gio-2.0.gir libregress.la
Regress_1_0_gir_LIBS = libregress.la
Regress_1_0_gir_INCLUDES = cairo-1.0 Gio-2.0
diff --git a/tests/scanner/sletter.c b/tests/scanner/sletter.c
new file mode 100644
index 0000000..81746d7
--- /dev/null
+++ b/tests/scanner/sletter.c
@@ -0,0 +1,9 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+
+#include "sletter.h"
+
+void
+s_hello (void)
+{
+ g_print ("hello world\n");
+}
diff --git a/tests/scanner/sletter.h b/tests/scanner/sletter.h
new file mode 100644
index 0000000..09965b8
--- /dev/null
+++ b/tests/scanner/sletter.h
@@ -0,0 +1,13 @@
+#ifndef __SLETTER_H__
+#define __SLETTER_H__
+
+#include <gio/gio.h>
+
+typedef struct {
+ double x;
+ double y;
+} SPoint;
+
+void s_hello (void);
+
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]