diff options
author | Tim Janik <timj@src.gnome.org> | 2007-11-20 15:03:26 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2007-11-20 15:03:26 +0000 |
commit | 936d27a475e9ecfb2c79dd1c0c46d679fea815c8 (patch) | |
tree | 020bd55bc90f6669cac253fb070aa9c157e5a6a5 /gtk/Makefile.am | |
parent | 9e0b0194ed7ded02d3093daaa6da7e7958eb4127 (diff) | |
download | gtk+-936d27a475e9ecfb2c79dd1c0c46d679fea815c8.tar.gz |
Added Gtk+ testing utilities.
* gtk/gtktestutils.h, gtk/gtktestutils.c: added unit test utility functions.
for the most part, the functions herein involve navigating and interacting
with dialog elements programatically, to automate user interaction tests of
dialogs and widgets.
* gtk/gtk.h: include gtk/gtktestutils.h as public API.
* gtk/gtk.symbols: added gtk_test_* symbols.
* gtk/Makefile.am: include gtktestutils.h and gtktestutils.c into the build.
generate gtktypefuncs.c which contains a list of all _get_type functions in
Gtk+ and Gdk.
svn path=/trunk/; revision=19010
Diffstat (limited to 'gtk/Makefile.am')
-rw-r--r-- | gtk/Makefile.am | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 8312f69524..1eac2181f3 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -279,6 +279,7 @@ gtk_public_h_sources = \ gtkstyle.h \ gtktable.h \ gtktearoffmenuitem.h \ + gtktestutils.h \ gtktext.h \ gtktextbuffer.h \ gtktextbufferrichtext.h \ @@ -559,6 +560,7 @@ gtk_base_c_sources = \ gtkstyle.c \ gtktable.c \ gtktearoffmenuitem.c \ + gtktestutils.c \ gtktext.c \ gtktextbtree.c \ gtktextbuffer.c \ @@ -714,6 +716,7 @@ gtk_built_private_headers = \ gtk_built_sources = \ gtkaliasdef.c \ gtktypebuiltins.c \ + gtktypefuncs.c \ gtkmarshalers.c \ gtkmarshal.c \ ${gtk_built_private_headers} \ @@ -751,7 +754,7 @@ EXTRA_DIST += $(STOCK_ICONS) # rules to generate built sources # # setup autogeneration dependencies -gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc +gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc xgen-gtfsrc.c xgen-gtf CLEANFILES = $(gen_sources) BUILT_SOURCES = $(gtk_built_sources) @@ -817,6 +820,14 @@ gtktypebuiltins.c: @REBUILD@ $(gtk_public_h_sources) Makefile && cp xgen-gtbc gtktypebuiltins.c \ && rm -f xgen-gtbc +gtktypefuncs.c: @REBUILD@ $(top_srcdir)/gtk/*.h $(top_srcdir)/gdk/*.h Makefile + echo '#include <gtk/gtk.h>' > xgen-gtfsrc.c && \ + ${CPP} $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-gtfsrc.c | \ + egrep -o '\<g[td]k_[a-zA-Z0-9_]+_get_type\>' | sort | uniq | \ + sed '{ s/^/vgt=/; s/$$/();/; }' > xgen-gtf \ + && cp xgen-gtf $@ && rm -f xgen-gtf +gtktestutils.c: gtktypefuncs.c + # target platform: lib_LTLIBRARIES = $(gtktargetlib) |