summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
AgeCommit message (Collapse)AuthorFilesLines
2010-08-06Replace -I with $(glib_INCLUDES) and friendsRyan Lortie1-4/+1
Stop using ad hoc -I in all of our Makefile.am. Use the new variables instead.
2010-08-05Add $(top_builddir)/glib to includespaul1-0/+1
This is required to find glibconfig.h during srcdir != builddir builds
2010-08-03Move bookmarkfile tests to the test frameworkMatthias Clasen1-6/+2
2010-07-30Move markup parse tests to the test frameworkMatthias Clasen1-6/+2
2010-07-30Add some more GFile testsMatthias Clasen1-1/+0
2010-07-30Move markup escape tests to test frameworkMatthias Clasen1-3/+0
2010-07-30Don't leak in converter testMatthias Clasen1-2/+0
2010-07-30Add some volume monitor testsMatthias Clasen1-2/+0
Although not much of this is easily testable.
2010-07-30Move queue tests to the test frameworkMatthias Clasen1-2/+0
2010-07-05Move uri tests to the test frameworkMatthias Clasen1-3/+1
2010-07-05Move tree tests to the test frameworkMatthias Clasen1-2/+0
2010-07-05Move slist tests to the test frameworkMatthias Clasen1-3/+0
2010-07-04Move charset conversion tests to the test frameworkMatthias Clasen1-2/+0
2010-06-23Move node tests to the test frameworkMatthias Clasen1-2/+0
2010-06-23Move date tests to the test frameworkMatthias Clasen1-1/+0
2010-06-21Move hash tests to the test frameworkMatthias Clasen1-2/+0
2010-06-21Move checksum tests to the test frameworkMatthias Clasen1-2/+0
2010-06-20Move utf8 validation tests to the test frameworkMatthias Clasen1-3/+0
2010-06-20Move utf8 pointer tests to test frameworkMatthias Clasen1-1/+0
2010-06-20Consolide base64 tests in a single fileMatthias Clasen1-3/+0
2010-06-20Move scanner tests to glib/testsMatthias Clasen1-7/+0
2010-06-20Move regex tests to the g_test frameworkMatthias Clasen1-3/+1
2010-01-26always use our own internal assertion message symbolMartin Pitt1-1/+1
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
2009-12-23Support storing assertion messages into core dumpMartin Pitt1-2/+4
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-07-05Revert "Move gio tests from gio/tests/ to tests/gio/"Matthias Clasen1-1/+1
This reverts commit 2262d76b33094304ece0d0d9cd5920682599a49b. Move GIO tests back to where they belong.
2009-07-01Move gio tests from gio/tests/ to tests/gio/Benjamin Otte1-1/+1
This avoids getting tests built every time when working on libgio and running make in the gio/ directory.
2009-05-01Misc warning fixesDan Winship1-8/+1
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-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
2008-09-01Bug 550040 - Move GString, rand and printf tests to the unit testPaolo Borelli1-6/+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
2008-07-23Remove leftoversMatthias Clasen1-1/+0
svn path=/trunk/; revision=7243
2008-07-20Move another testMatthias Clasen1-2/+0
svn path=/trunk/; revision=7209
2008-07-18Move another testMatthias Clasen1-2/+0
svn path=/trunk/; revision=7198
2008-07-18Move tests aroundMatthias Clasen1-1/+0
svn path=/trunk/; revision=7197
2008-06-24Bug 539770 - migrate gstrfunc unit tests to gtestPaolo Borelli1-6/+0
2008-06-24 Paolo Borelli <pborelli@katamail.com> Bug 539770 - migrate gstrfunc unit tests to gtest * tests/strfunc-test.c: * tests/testglib.c: * tests/strtoll-test.c: * tests/strtod-test.c: * tests/string-test.c: * tests/Makefile.am: Removed old tests. * glib/tests/fileutils.c: * glib/tests/strfuncs.c: * glib/tests/Makefile.am: Added all the old tests migrated to the new unit test framework and add new unit tests for some of the functions. svn path=/trunk/; revision=7097
2008-04-18fixed gstdio.h include.17:40:58 Tim Janik1-0/+1
2008-04-18 17:40:58 Tim Janik <timj@imendio.com> * tests/testglib.c: fixed gstdio.h include. * tests/Makefile.am: properly list testglib.c SOURCES. svn path=/trunk/; revision=6862
2008-01-11added g_base64_encode()/g_base64_decode() test case by Asbjoern12:55:19 Tim Janik1-0/+3
2008-01-11 12:55:19 Tim Janik <timj@imendio.com> * tests/testingbase64.c: added g_base64_encode()/g_base64_decode() test case by Asbjoern <asbgpe@online.no>. fixed up coding style. svn path=/trunk/; revision=6292
2007-12-12split up tests and reworked code to use the new test framework.16:06:11 Tim Janik1-2/+2
2007-12-12 16:06:11 Tim Janik <timj@imendio.com> * tests/testglib.c: split up tests and reworked code to use the new test framework. * tests/Makefile.am: added testglib to TEST_PROGS. svn path=/trunk/; revision=6103
2007-12-06added new scanner test from #501654, by Patrick Hulin with various09:27:42 Tim Janik1-1/+6
2007-12-06 09:27:42 Tim Janik <timj@imendio.com> * tests/scannerapi.c: added new scanner test from #501654, by Patrick Hulin with various modifications. reworked coding style, adapted to new testing framework, fixed token parser test and use a forked sub process to test g_scanner_error() output messages. svn path=/trunk/; revision=6055
2007-12-04Add GChecksum, a generic wrapper around various hashing algorithms. At theEmmanuele Bassi1-0/+2
2007-12-04 Emmanuele Bassi <ebassi@gnome.org> * glib/gchecksum.[ch]: Add GChecksum, a generic wrapper around various hashing algorithms. At the moment, the MD5, SHA-1 and SHA-256 algorithms are supported. (#443648) * glib/glib.h: * glib/Makefile.am: * glib/glib.symbols: Build glue for GChecksum * tests/Makefile.am * tests/checksum-test.c: Add test suite for GChecksum. svn path=/trunk/; revision=6042
2007-11-27Add new function g_markup_collect_attributes (bug #496847).Ryan Lortie1-0/+2
2007-11-26 Ryan Lortie <desrt@desrt.ca> Add new function g_markup_collect_attributes (bug #496847). * glib/glib.symbols: add g_markup_collect_attributes * docs/reference/glib/glib-sections.txt: * glib/gmarkup.h: * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated type GMarkupCollectType. Add new error code G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute collector. svn path=/trunk/; revision=5947
2007-11-25Replace INCLUDES by AM_CPPFLAGS, other cleanups.Matthias Clasen1-16/+32
2007-11-24 Matthias Clasen <mclasen@redhat.com> * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other cleanups. svn path=/trunk/; revision=5932
2007-11-21initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional21:06:47 Tim Janik1-1/+3
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: http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html * 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
2007-08-13test g_once_init_*() before and after g_thread_init() and test concurrencyTim Janik1-0/+2
Mon Aug 13 14:21:44 2007 Tim Janik <timj@imendio.com> * tests/onceinit.c: test g_once_init_*() before and after g_thread_init() and test concurrency resolution. svn path=/trunk/; revision=5698
2007-07-12added GSLice test from Stefan Westerfeld, bug #433314.Tim Janik1-0/+3
Thu Jul 12 17:26:05 2007 Tim Janik <timj@imendio.com> * tests/slice-concurrent.c: added GSLice test from Stefan Westerfeld, bug #433314. svn path=/trunk/; revision=5630
2007-07-12migrate per-thread magazine caches from single-thread scenario to firstTim Janik1-0/+3
Thu Jul 12 15:46:40 2007 Tim Janik <timj@imendio.com> * glib/gslice.c: migrate per-thread magazine caches from single-thread scenario to first thread using GSlice after g_thread_init(); based on a patch by Tor Lillqvist, fixes #331853. removed warning about g_thread_init() being called after other glib functions (in particular g_slice* calls), because GSlice can cope with this now and the rest of glib is believed to cope as well. * tests/slice-threadinit.c: new test program which tests GSlice working across g_thread_init() calls. svn path=/trunk/; revision=5629
2007-03-15Add GRegex for regular expression matching. (#50075)Marco Barisione1-2/+10
2007-03-15 Marco Barisione <marco@barisione.org> Add GRegex for regular expression matching. (#50075) * configure.in: Handle GRegex compilation. * glib/gregex.c: * glib/gregex.h: Code for GRegex. * glib/Makefile.am: * glib/makefile.msc.in: Updated makefiles. * glib/pcre/*: Internal copy of PCRE. * glib/update-pcre/*: Stuff to automatically update the internal PCRE to a newer version. * tests/regex-test.c: * tests/Makefile.am: * tests/makefile.msc.in: Add tests for GRegex. svn path=/trunk/; revision=5408
2007-03-06Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144)Matthias Clasen1-1/+1
2007-03-06 Matthias Clasen <mclasen@Redhat.com> * tests/Makefile.am: Apply a patch by Loïc Minier to fix building with -Wl,-z,defs. (#149144) svn path=/trunk/; revision=5367
2007-02-03New files implementing GSequence, a list implemented using a binary tree.Soren Sandmann1-1/+3
2007-02-03 Soren Sandmann <sandmann@daimi.au.dk> * glib/gsequence.[ch]: New files implementing GSequence, a list implemented using a binary tree. * glib/glib.h, glib/glib.symbols: Update for GSequence. * docs/reference: Add documentation for GSequence * tests: Add sequence-test.c, a thorough test of all of the GSequence API. svn path=/trunk/; revision=5322
2007-01-19Some file list updates (#398069, Owen Taylor)Matthias Clasen1-1/+2
2007-01-19 Matthias Clasen <mclasen@redhat.com> Some file list updates (#398069, Owen Taylor) * docs/Changes-2.0.txt * docs/reference/README.cvs-commits * glib.spec.in: Remove obsolete files * tests/Makefile.am: * glib/libcharset/Makefile.am: * gobject/Makefile.am: * Makefile.am: Add some missing files to EXTRA_DIST * tests/timeloop-basic.c: Make it build * HACKING: Small updates svn path=/trunk/; revision=5302