From f67ac1ccd46e343abd4327401edd6ee185052fd9 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sun, 16 Apr 2006 11:40:58 -0500 Subject: [PATCH] all-tests target --- Makefile.am | 2 ++ tests/Makefile.incl | 1 + tests/miniglade.c | 4 ++-- tests/termbuffer.c | 2 +- tests/testfileview.c | 2 +- tests/testpaned.c | 2 +- tests/testpanedfileview.c | 2 +- 7 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 02aef784..f44e6abe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,6 +12,7 @@ AM_CFLAGS = \ -I$(top_srcdir)/$(MOO_SRC_PREFIX) \ -I$(top_builddir)/$(MOO_SRC_PREFIX) \ -I$(top_srcdir)/$(MOO_SRC_PREFIX)/mooutils \ + -I$(top_builddir)/$(MOO_SRC_PREFIX)/mooutils\ $(MOO_CFLAGS) \ $(PYTHON_INCLUDES) \ $(PYGTK_CFLAGS) \ @@ -98,6 +99,7 @@ mooedit_datadir = ${MOO_DATA_DIR} mooedit_data_DATA = ui.xml.example actions.cfg.example ui.xml.example: tests/medit-ui.xml cp $(srcdir)/tests/medit-ui.xml ui.xml.example +CLEANFILES += ui.xml.example EXTRA_DIST += actions.cfg.example diff --git a/tests/Makefile.incl b/tests/Makefile.incl index cf7a351d..f8b0c7c2 100644 --- a/tests/Makefile.incl +++ b/tests/Makefile.incl @@ -1,6 +1,7 @@ EXTRA_PROGRAMS += testhtml testtext medit mterm markup termbuffer testfileview testpaned testpanedfileview miniglade langparser testobject testfold ms bin_PROGRAMS = +all-tests: $(EXTRA_PROGRAMS) EXTRA_DIST += \ tests/pyapp.py.in \ diff --git a/tests/miniglade.c b/tests/miniglade.c index 6d28945b..cc8b0070 100644 --- a/tests/miniglade.c +++ b/tests/miniglade.c @@ -37,7 +37,7 @@ int main (int argc, char *argv[]) file = argv[1]; } - my_xml = moo_glade_xml_new (file, NULL, NULL); + my_xml = moo_glade_xml_new (file, NULL); if (!my_xml) { @@ -45,7 +45,6 @@ int main (int argc, char *argv[]) exit (1); } - moo_glade_xml_unref (my_xml); g_print ("*** Success ***\n"); if (!check) @@ -59,5 +58,6 @@ int main (int argc, char *argv[]) } } + g_object_unref (my_xml); return 0; } diff --git a/tests/termbuffer.c b/tests/termbuffer.c index a9cfba73..219bde46 100644 --- a/tests/termbuffer.c +++ b/tests/termbuffer.c @@ -66,7 +66,7 @@ G_GNUC_UNUSED static gboolean print_random_hard (MooTerm *term) moo_term_feed (term, s, -1); g_free (s); - moo_term_force_update (term); + gdk_window_process_updates (GTK_WIDGET(term)->window, FALSE); } g_print ("buffer: %dx%d\nterm: %dx%d\n", diff --git a/tests/testfileview.c b/tests/testfileview.c index 1260fa6a..2c876c10 100644 --- a/tests/testfileview.c +++ b/tests/testfileview.c @@ -1,4 +1,4 @@ -#include "mooutils/moofileview/moofileview.h" +#include "moofileview/moofileview.h" #include diff --git a/tests/testpaned.c b/tests/testpaned.c index 1c6b6c3f..710ebe14 100644 --- a/tests/testpaned.c +++ b/tests/testpaned.c @@ -1,5 +1,5 @@ #include "mooutils/moobigpaned.h" -#include "mooutils/moofileview/moofileview.h" +#include "moofileview/moofileview.h" #include diff --git a/tests/testpanedfileview.c b/tests/testpanedfileview.c index a2382bee..7c08d176 100644 --- a/tests/testpanedfileview.c +++ b/tests/testpanedfileview.c @@ -1,5 +1,5 @@ #include "mooutils/moopaned.h" -#include "mooutils/moofileview/moofileview.h" +#include "moofileview/moofileview.h" #include