1. 23 May, 2017 1 commit
  2. 01 Sep, 2015 1 commit
    • Emmanuele Bassi's avatar
      Drop binary checks when cross-compiling · 5ce70917
      Emmanuele Bassi authored
      We don't need to run binaries we just built in order to successfully
      build GLib and friends any more.
      Since commit b74e2a72, we don't need to run glib-genmarshal when building
      GIO; since commit f9eb9eed, all our tests (including the ones that do
      need to run binaries we just built) are only built when running "make
      check", instead of unconditionally at every build.
      This means that we don't need to check for existing, native binaries
      when cross-compiling, and fail the configuration step if they are not
      found — which also means that you don't need to natively build GLib for
      your toolchain, in order to cross-compile GLib.
      We can also use the cross-compilation conditional, and skip those tests
      that require a binary we just built in order to build.
  3. 19 Nov, 2013 1 commit
  4. 20 Sep, 2013 1 commit
    • Ray Strode's avatar
      tests: add signal disconnection test · 29ef8217
      Ray Strode authored
      This commit adds a test to ensure that during a signal emission, if
      a signal handler gets disconnected, it won't be run, even if it would
      have run before the disconnection.
  5. 01 Jun, 2013 3 commits
    • Allison Karlitskaya's avatar
      Change a pair of TESTS = to TEST += · 601a00fa
      Allison Karlitskaya authored
    • Allison Karlitskaya's avatar
      Rework the build system for a new tests approach · f9eb9eed
      Allison Karlitskaya authored
      Perform a substantial cleanup of the build system with respect to
      building and installing testcases.
      First, Makefile.decl has been renamed glib.mk and substantially
      expanded.  We intend to add more stuff here in the future, like canned
      rules for mkenums, marshallers, resources, etc.
      By default, tests are no longer compiled as part of 'make'.  They will
      be built when 'make check' is run.  The old behaviour can be obtained
      with --enable-always-build-tests.
      --disable-modular-tests is gone (because tests are no longer built by
      default).  There is no longer any way to cause 'make check' to be a
      no-op, but that's not very useful anyway.
      A new glibtests.m4 file is introduced.  Along with glib.mk, this
      provides for consistent handling of --enable-installed-tests and
      --enable-always-build-tests (mentioned above).
      Port our various test-installing Makefiles to the new framework.
      This patch substantially improves the situation in the toplevel tests/
      directory.  Things are now somewhat under control there.  There were
      some tests being built that weren't even being run and we run those now.
      The long-running GObject performance tests in this directory have been
      removed from 'make check' because they take too long.
      As an experiment, 'make check' now runs the testcases on win32 builds,
      by default.  We can't run them under gtester (since it uses a pipe to
      communicate with the subprocess) so just toss them in TESTS.  Most of
      them are passing on win32.
      Things are not quite done here, but this patch is already a substantial
      improvement.  More to come.
    • Allison Karlitskaya's avatar
      Move a pair of gobject tests to tests/gobject/ · d7b3e558
      Allison Karlitskaya authored
      testgobject.c and timeloop-closure.c are the only two tests in the
      toplevel tests/ directory that depend on gobject, so move them to
      tests/gobject/ along with the other gobject tests.
      Both of these were in noinst_PROGRAMS and not TESTS, so keep them that
      way when we move them.
  6. 24 May, 2013 2 commits
  7. 21 May, 2013 3 commits
  8. 03 Feb, 2013 1 commit
  9. 04 Jan, 2013 2 commits
  10. 18 Dec, 2012 2 commits
  11. 05 Nov, 2012 1 commit
    • Allison Karlitskaya's avatar
      gtype: disallow adding interfaces after the fact · d6a075b0
      Allison Karlitskaya authored
      Add a check to prevent adding an interface to a class that has already
      had its class_init done.
      This is an incompatible change but it is suspected that there are not
      many users of this functionality.  Two known exceptions are pygobject
      (fixed in bug 686149) and our own testsuite (affected tests have been
      temporarily disabled by this patch).
      Once we confirm that nobody else is using this functionality we can
      remove a rather large amount of code for dealing with this case.
  12. 02 Nov, 2012 1 commit
  13. 13 Oct, 2011 1 commit
  14. 28 Dec, 2010 1 commit
  15. 06 Aug, 2010 1 commit
  16. 05 Aug, 2010 1 commit
  17. 16 Jun, 2010 1 commit
  18. 10 Feb, 2010 1 commit
    • Allison Karlitskaya's avatar
      make tests not dynamic link against /lib/libglib · 3e30e8a8
      Allison Karlitskaya authored
      For some reason, even though the tests are linked against libgobject.la
      and libgobject.la mentions libglib.la as a dependency, the tests are
      running against the system glib instead of the in-tree one.
      Adding the libglib.la file as an explicit LDFLAG fixes it.
  19. 02 Oct, 2009 2 commits
    • Alexander Larsson's avatar
      Add gobject performance tests for threaded code · f4d9789f
      Alexander Larsson authored
      This measures how much things like lock contention affects the gobject
    • Alexander Larsson's avatar
      Add performance tests for GObject primitives · b1f94af0
      Alexander Larsson authored
      These are basic performance test for a couple of basic gobject
      * construction of simple objects. Simple is a bare gobject derived
        class with no properties, signals or interfaces.
      * construction of complex objects. Complex is a gobject subclass
        with construct properties, normal properties, signals, and
        implements an interface.
      * run-time type check of complex objects
      * signal emissions
      Lots of care is taken to try to make the results reproducible. Each
      test is run for multible "rounds", where we try to make each round be
      "not too short" in order to be significant wrt timer accuracy, but
      also "not to long" to make the probability of some other random event
      happening on the system (interrupts, other process scheduled, etc)
      during the round less likely.
      The current target round time is 4 msecs, which was picked without
      rigour, but seems small wrt e.g. scheduler time.
      For each test we then run the calculated round size for 60 seconds,
      and then report the performance based on the minimal time of one
      round. The model here is that any random stuff that happens during a
      round can only slow it down, there is nothing that can make it go
      faster, so the minimal time is the best estimate of how fast one round
      The result is not ideal, even on a "idle" system the results vary
      from round to round, but the variation seems to be less than 1%.
      So, any performance difference reported by this test over 1% is
      probably statistically significant.
      Additionally the tests can be run with or without threads being
      initialized. The script tests/gobject/run-performance.sh makes
      it easy to produce a performance report for the current checkout.
  20. 21 Nov, 2007 1 commit
    • 21:06:47  Tim Janik's avatar
      initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional · 1e55738f
      21:06:47 Tim Janik authored
      2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
      	* Makefile.decl: initialize automake variables EXTRA_DIST and
      	TEST_PROGS for unconditional appending via += in other makefiles.
      	define recursive test targets: test, test-report, perf-report,
      	full-report, as described here:
      	* Makefile.am:
      	* build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
      	* build/win32/Makefile.am, build/Makefile.am:
      	* docs/Makefile.am, docs/reference/Makefile.am:
      	* docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
      	* gmodule/Makefile.am, tests/Makefile.am:
      	* tests/refcount/Makefile.am, tests/gobject/Makefile.am:
      	* glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
      	* glib/tests/Makefile.am, glib/pcre/Makefile.am:
      	* glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
      	* gthread/Makefile.am, glib/Makefile.am:
      	include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
      	* glib/tests/Makefile.am: removed example testing rules.
      	* glib/tests/testing.c: conditionalized performance and slow tests.
      	* glib/gtestutils.h:
      	* glib/gtestutils.c: work around g_test_config_vars not changing its
      	exported value after value assignments, aparently due to symbol aliases.
      	* glib/gtester.c: fixed off-by-one error which produced junk in logs.
      	* configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
      svn path=/trunk/; revision=5914
  21. 23 Mar, 2007 1 commit
  22. 29 Dec, 2006 1 commit
  23. 16 Aug, 2006 1 commit
  24. 02 May, 2006 1 commit
  25. 18 Feb, 2006 1 commit
    • Matthias Clasen's avatar
      Add paramspec-test · c773a618
      Matthias Clasen authored
      2006-02-18  Matthias Clasen  <mclasen@redhat.com>
      	* tests/gobject/Makefile.am: Add paramspec-test
      	* tests/gobject/paramspec-test.c: Some GParamSpec tests.
  26. 05 Dec, 2005 1 commit
  27. 09 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Add it here. · 320711e2
      Matthias Clasen authored
      2005-08-09  Matthias Clasen  <mclasen@redhat.com>
      	* tests/gobject/Makefile.am (test_programs): Add it here.
      	* tests/gobject/gvalue-test.c: Beginning of a test suite
      	for GValue.
  28. 05 May, 2005 1 commit
    • Owen Taylor's avatar
      Add g_object_add/remove_toggle_ref() functions to get notification when a · 2ae1a46b
      Owen Taylor authored
      2005-05-05  Owen Taylor  <otaylor@redhat.com>
              * gobject.[ch] gobject.symbols: Add
              g_object_add/remove_toggle_ref() functions to get notification
              when a reference count is the last remaining reference; this
              enables better memory management for language bindings.
      2005-05-05  Owen Taylor  <otaylor@redhat.com>
              * glib/gdataset.[ch] glib/gdatasetprivate.h: Add
              g_datalist_set/unset_flags(), g_datalist_get_flags() functions
              to squeeze some bits into a GDataSet... this is needed for
              efficient implementation of toggle references in GObject.
              * tests/gobject/references.c tests/gobject/Makefile.am:
              Add a test case for weak and toggle references.
              * glib/gfileutils.[ch]: Rename g_file_replace() back
              to g_file_set_contents().
              * glib/glib.symbols: Update.
      2005-05-05  Owen Taylor  <otaylor@redhat.com>
              * glib/Makefile.am glib/glib-sections.txt gobject/gobject-sections.txt:
              * gobject/tmpl/objects.sgml: Document toggle-references.
  29. 24 Oct, 2003 1 commit
    • Tor Lillqvist's avatar
      Force shared library (DLL) only on Windows. (I don't think that is · 5d097b85
      Tor Lillqvist authored
      2003-10-24  Tor Lillqvist  <tml@iki.fi>
      	* configure.in: Force shared library (DLL) only on Windows.
      	(I don't think that is controversial?) Remove unnecessary
      	AC_LIBTOOL_WIN32_DLL. Don't use -D_REENTRANT on
      	Win32, it is not used by mingw or MSVC headers.
      	* config.h.win32.in
      	* glibconfig.h.win32.in: Match what configure produces.
      	* glib/gconvert.c
      	* glib/gutils.c: Mark a couple of functions and variables that
      	aren't public as static.
      	* glib/gnulib/g-gnulib.h: Undef HAVE_SNPRINTF before (re)defining
      	it potentially differently, to silence compiler.
      	* glib/glib.def: Add some missing entries.
      	* tests/gobject/Makefile.am (LDADD): Reorder, put libgobject after
      	* tests/gobject/ifaceproperties.c (main): NULL-terminate arg list
      	to g_object_set() and _get().
  30. 23 Oct, 2003 1 commit
    • Owen Taylor's avatar
      === Released 2.3.0 === · dfa8c540
      Owen Taylor authored
      Thu Oct 23 12:38:24 2003  Owen Taylor  <otaylor@redhat.com>
              * === Released 2.3.0 ===
              * tests/gobject/Makefile.am (dist-hook): Remove
              and extra backslash.
              * tests/gobject/Makefile.am (EXTRA_DIST): Add
              * glib/Makefile.am (libglib_2_0_la_SOURCES): Add
              missing gunicode-private.h.
              * tests/testglib.c (main): Fix a warning.
              * tests/gobject/ifaceinherit.c: Remove check that
              wasn't supposed to work (adding an interface already
              added to the derived class to the base class),
              fix a bug.
  31. 21 Oct, 2003 1 commit
  32. 02 Oct, 2003 1 commit
    • Owen Taylor's avatar
      Test case for g_type_add_interface_check(). · 3e61c90b
      Owen Taylor authored
      Thu Oct  2 01:15:46 2003  Owen Taylor  <otaylor@redhat.com>
              * tests/gobject/ifacecheck.c: Test case for
              * tests/gobject/ifaceinit.c: Add #undef G_DISABLE_ASSERT.