summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2010-07-05Move list tests to the test frameworkMatthias Clasen1-212/+0
2010-07-04Move charset conversion tests to the test frameworkMatthias Clasen2-664/+0
2010-06-23Move node tests to the test frameworkMatthias Clasen2-3/+0
2010-06-23Move node test to the test frameworkMatthias Clasen1-223/+0
2010-06-23Move date tests to the test frameworkMatthias Clasen3-501/+0
2010-06-21Move hash tests to the test frameworkMatthias Clasen3-462/+0
2010-06-21Move checksum tests to the test frameworkMatthias Clasen3-679/+0
2010-06-20Move utf8 validation tests to the test frameworkMatthias Clasen2-322/+0
2010-06-20Move utf8 pointer tests to test frameworkMatthias Clasen2-113/+0
2010-06-20Consolide base64 tests in a single fileMatthias Clasen2-239/+0
2010-06-20Move scanner tests to glib/testsMatthias Clasen2-146/+0
2010-06-20Move sequence tests to the test frameworkMatthias Clasen1-1301/+0
2010-06-20Move base64 tests of to test frameworkMatthias Clasen1-138/+0
2010-06-20Move regex tests to the g_test frameworkMatthias Clasen2-2125/+1
2010-06-19Add g_value_take_variantChristian Persch2-1/+82
Turns out we do need g_value_take_variant(), so we can correctly implement VARIANT:* marshalers. Bug #621947.
2010-06-17Add fundamental type and pspec for GVariantChristian Persch2-14/+70
Make G_TYPE_VARIANT a fundamental type instead of boxed, and add g_variant_{set,get,dup}_variant. Add GParamSpecVariant. Bug #610863.
2010-06-15Sprinkle some $(AM_V_GEN) around to make the build more silent.Christian Persch1-2/+2
2010-06-09Fix warningsJuan A. Suarez Romero1-1/+1
Do explicit casts to avoid warnings.
2010-05-26[mainloop-test] Fix compilation errorsColin Walters1-2/+2
2010-05-25GSource: add g_source_set_name, g_source_get_name, g_source_set_name_by_idHavoc Pennington1-1/+5
These allow applications to give meaningful names to their sources. Source names can then be used for debugging and profiling, for example with systemtap or gdb. https://bugzilla.gnome.org/show_bug.cgi?id=606044
2010-03-08Fix run-assert-msg-test to work with libtool-2.2.x.Priit Laes1-1/+5
2010-02-10add performance tests to gitignoreRyan Lortie1-0/+2
2010-02-10make tests not dynamic link against /lib/libglibRyan Lortie1-1/+7
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.
2010-02-04Don't use deprecated g_win32 APITor Lillqvist1-24/+0
2010-01-28improve gitignoreRyan Lortie1-0/+2
2010-01-26always use our own internal assertion message symbolMartin Pitt2-13/+6
Re-using glibc's __abort_msg symbol causes linking problems, since the symbol is declared private. Always use our own__glib_abort_msg symbol to store assertion messages, to avoid compatibility and linking problems. Also fix the test case to work with out of tree builds (such as "make distcheck"), and re-enable it. https://bugzilla.gnome.org/show_bug.cgi?id=594872
2010-01-25Disable yet another failing test that was recently added...Matthias Clasen1-1/+1
2010-01-20[tests] Remove C++ style commentsAlberto Garcia2-2/+2
It makes the IBM XL C Compiler (the 'native' non-free compiler on the AIX 5.3 and 6.1 platform) stop compiling with syntax error. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=581300 Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-01-13Remove additional thread support in performance testAlexander Larsson2-8/+1
We're always enabling threads now so this is not needed.
2009-12-23Support storing assertion messages into core dumpMartin Pitt4-2/+61
Crash interception/debugging systems like Apport or ABRT capture core dumps for later crash analysis. However, if a program exits with an assertion failure, the core dump is not useful since the assertion message is only printed to stderr. glibc recently got a patch which stores the message of assert() into the __abort_msg global variable. (http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=48dcd0ba) That works fine for programs which actually use the standard C assert() macro. This patch adds the same functionality for glib's assertion tests. If we are building against a glibc which already has __abort_msg (2.11 and later, or backported above git commit), use that, otherwise put it into our own field __glib_assert_msg. Usage: $ cat test.c #include <glib.h> int main() { g_assert(1 < 0); return 0; } $ ./test **ERROR:test.c:5:main: assertion failed: (1 < 0) Aborted (Core dumped) $ gdb --batch --ex 'print (char*) __abort_msg' ./test core [...] $1 = 0x93bf028 "ERROR:test.c:5:main: assertion failed: (1 < 0)" https://bugzilla.gnome.org/show_bug.cgi?id=594872
2009-11-29Fix dynamictype test to buildMatthias Clasen1-2/+1
2009-11-26Cast iface_init to GInterfaceInitFuncAlexander Larsson1-2/+1
This is in line with what all other type define macros do. https://bugzilla.gnome.org/show_bug.cgi?id=508157
2009-11-26Add test for G_IMPLEMENT_INTERFACE_DYNAMICAlexander Larsson1-4/+49
2009-10-02Add gobject performance tests for threaded codeAlexander Larsson2-0/+383
This measures how much things like lock contention affects the gobject code.
2009-10-02Add performance tests for GObject primitivesAlexander Larsson3-0/+744
These are basic performance test for a couple of basic gobject primitives: * 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 goes. 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. https://bugzilla.gnome.org/show_bug.cgi?id=557100
2009-09-01g_time_val_from_iso8601: handle timezoneless datesDan Winship1-0/+21
per ISO 8601:2004 4.2.5.2 Based on a patch from Andy Shevchenko http://bugzilla.gnome.org/show_bug.cgi?id=589491
2009-07-05Revert "Move gio tests from gio/tests/ to tests/gio/"Matthias Clasen27-6505/+1
This reverts commit 2262d76b33094304ece0d0d9cd5920682599a49b. Move GIO tests back to where they belong.
2009-07-01Two "make check" fixes for late changes to the thread-context patchDan Winship1-7/+30
g_simple_async_result_complete() now checks that it's being run from the correct main loop, so tests/gio/simple-async-result was failing, because it called it from outside any main loop. (And gio's pltcheck was failing because I hadn't added g_main_current_source() to it.)
2009-07-01Move gio tests from gio/tests/ to tests/gio/Benjamin Otte27-1/+6482
This avoids getting tests built every time when working on libgio and running make in the gio/ directory.
2009-05-30Updated msvc build filesHans Breuer1-20/+19
2009-05-03Fix up tests forgotten in Michaels commitMatthias Clasen1-0/+0
When Michael cleaned up after my fumbled commit of his gmarkup optimizations, he fumbled himself and forgot to fix up the tests...
2009-05-01Misc warning fixesDan Winship2-8/+3
glib/pcre/pcre_ucp_search_funcs.c, glib/pcre/pcre_valid_utf8.c: add back missing config.h includes, and this time add them to the copies in glib/update-pcre/ too so they don't get lost again on the next PCRE update. glib/garray.c, glib/gbase64.c: fix signed/unsigned pointer casts gio/xdgmime/xdgmimeglob.c: remove unused variable gio/tests/live-g-file.c: fix printf args on x86_64 tests/Makefile.am, tests/regex-test.c: remove redundant -DENABLE_REGEX
2009-04-08Fix parsing of timezonesPeter Kjellerstedt1-1/+17
Make g_time_val_from_iso8601 handle timezones with minutes correctly; also accept comma as a fraction separator. (#578369)
2009-03-01Fix distcheckMatthias Clasen1-2/+2
svn path=/trunk/; revision=7932
2009-02-12 Bug 523742 – Use noinst for non-installable librariesMatthias Clasen1-5/+1
* tests/Makefile.am: use noninst_LTLIBRARIES for noninstalled libraries.Patch by Björn Lindqvist svn path=/trunk/; revision=7860
2009-01-05updateDan Winship2-5/+70
* glib/tests/.gitignore: update * tests/.gitignore: update, sort * tests/gobject/.gitignore: add svn path=/trunk/; revision=7772
2008-10-24Accept short dataMatthias Clasen1-0/+38
svn path=/trunk/; revision=7625
2008-09-27 Bug 553447 $(Q#|(B g_assert_no_error()Dan Winship4-98/+39
* glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to assert that a GError is not set, or else is set to a particular error. * glib/gtestutils.c (g_assertion_message_error): utility for those macros * glib/tests/keyfile.c: * tests/asyncqueue-test.c: * tests/bookmarkfile-test.c: * tests/convert-test.c: * tests/file-test.c: Use g_assert_error/g_assert_no_error svn path=/trunk/; revision=7555
2008-09-02Bug 549771 – improved .gitignore for glibRyan Lortie1-0/+21
2007-09-02 Ryan Lortie <desrt@desrt.ca> Bug 549771 – improved .gitignore for glib * docs/reference/.gitignore: * docs/reference/gio/.gitignore: * docs/reference/gobject/tmpl/.gitignore: * gio/.gitignore: * gio/tests/.gitignore: * glib/.gitignore: * glib/libcharset/.gitignore: * glib/tests/.gitignore: * gmodule/.gitignore: * gobject/.gitignore: * gobject/tests/.gitignore: * po/.gitignore: * tests/.gitignore: new files * .gitignore: remove 'build' (since it's part of glib now), add more useful things. svn path=/trunk/; revision=7432
2008-09-01Bug 550040 - Move GString, rand and printf tests to the unit testPaolo Borelli4-698/+0
2008-09-01 Paolo Borelli <pborelli@katamail.com> Bug 550040 - Move GString, rand and printf tests to the unit test framework * tests/printf-test.c: * tests/rand-test.c: * tests/string-test.c: Removed * glib/tests/printf.c: * glib/tests/rand.c: * glib/tests/string.c: Added * tests/Makefile.am: * glib/tests/Makefile.am: Updated for the above svn path=/trunk/; revision=7419