summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Supported metadata-key transformationsVictor Toso2018-10-021-0/+68
| | | | | | | | | | Grilo got support to transform similar GValues while using grl_data_add_for_id() and grl_data_set_for() API. This commmit include tests to verify supported and unsupported GValues. Signed-off-by: Victor Toso <victortoso@gnome.org>
* tests: Add tests for grl_data_*_for_id()Victor Toso2018-10-022-0/+204
| | | | | | | | | | | | | | Basic tests to handle API that was recently introduced to the following cases: - When a metadata-key does not exist and shall be created by this API with GType based on GValue (parameter). This test checks all supported GTypes by those APIs. - When the metadata-key exists, so it sets or adds the GValue to it. Signed-off-by: Victor Toso <victortoso@gnome.org>
* tests: run on ipv4 to avoid CI failureVictor Toso2018-08-301-3/+3
| | | | | | | | | | | | Otherwise we would get: ERROR:../tests/lib-net.c:162:test_net_wc_small_throttling: assertion failed (error == NULL): Could not listen on address ::1, port 42775: Error binding to address: Cannot assign requested address (g-io-error-quark, 0) Related: https://gitlab.gnome.org/Infrastructure/GitLab/issues/313 Signed-off-by: Victor Toso <victortoso@gnome.org>
* tests: really fix common test failure in GrlNetVictor Toso2018-08-301-1/+1
| | | | | | | | | | | | | | | | | | Based on intention of commit a176b9a03d04d3f1, we should be going up to 1s of threshold to avoid failure such as: ERROR:../tests/lib-net.c:114:test_net_wc_throttling_cb: assertion failed (received_time >= op->expected_time): (118905943655 >= 118905946568) This has been tested over 500 times, with different overloads in the machine, no failure. It still should be able to find valid regressions on the code as the most important one would be stress test and big-delay, the later having a 5 seconds timeout to guarantee that the network request has not been made. Related: https://bugzilla.gnome.org/show_bug.cgi?id=774578 Signed-off-by: Victor Toso <victortoso@gnome.org>
* tests: skip test if no plugin is installedVictor Toso2018-08-301-2/+11
| | | | | | | | Registry tests around loaded GrlSources might fail if no plugin is installed. This can be guaranteed by continuous integration and would be better than creating dummy plugins to be loaded/unloaded. Signed-off-by: Victor Toso <victortoso@gnome.org>
* meson: build and run unit testsVictor Toso2018-08-301-0/+21
| | | | | | | | | | Test builds were missing in meson. Building and running with a 10s timeout (instead of 30s as default). Also created a include_directory for GrlNet library to be included in tests. Signed-off-by: Victor Toso <victortoso@gnome.org>
* build: Remove autotools supportVictor Toso2018-07-302-106/+0
|
* tests: Add g_autoptr testsYi-Soo An2018-07-132-0/+105
| | | | | | | | | | | | | The tests are for the classes - GrlNetWc - GrlData - GrlMedia - GrlRelatedKeys - GrlCaps - GrlOperationOptions - GrlPlugin https://gitlab.gnome.org/GNOME/grilo/merge_requests/10
* tests: Fix typo in commentBastien Nocera2016-11-181-1/+1
|
* tests: Fix common test failures in GrlNet testsBastien Nocera2016-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | The small-delay test fails fairly often, about 20% of the time for a 100 runs on a non-loaded machine. We're lucky it doesn't happen more often, as g_timeout_add_seconds() as used by grl-net-wc.c will ultimately use g_timeout_set_expiration() which might round up timeouts to the above second: " /* We want the microseconds part of the timeout to land on the * 'timer_perturb' mark, but we need to make sure we don't try to * set the timeout in the past. We do this by ensuring that we * always only *increase* the expiration time by adding a full * second in the case that the microsecond portion decreases. */ " Bump the threshold to a full second, and verify by raising the delay in the grl_net_wc_set_throttling() call. https://bugzilla.gnome.org/show_bug.cgi?id=774578
* tests: include lib-net into make checkVictor Toso2016-09-221-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=771338
* tests: avoid critical warning on testVictor Toso2016-09-221-1/+2
| | | | | | As timeout might not be used. https://bugzilla.gnome.org/show_bug.cgi?id=771338
* tests: add stress test to grl-net-wcVictor Toso2016-09-221-0/+48
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=771338
* tests: Fix registry test with Tracker pluginBastien Nocera2016-09-141-0/+3
| | | | | | | | | The tracker plugin expects the client and daemon to run with the same locale to do direct connection, and throws a warning if not. Set the locale correctly in the test to avoid that problem. https://bugzilla.gnome.org/show_bug.cgi?id=771339
* build: fix build due wrong format in debugDominique Leuenberger2016-09-101-1/+1
| | | | Introduced in commit f3ccf55
* tests: throttling test on GrlNetWc libraryVictor Toso2016-09-052-0/+259
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=769331
* update tests for grl_registry_load_all_plugins API changeOlav Vitters2015-12-151-1/+1
|
* tests: Remove GLIB_CHECK_VERSION check for unsupported versionBastien Nocera2015-09-231-4/+0
|
* core: Remove remaining references to GrlMetadataSourceMathieu Duponchelle2015-07-174-292/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=748455
* tests: Disable python testsMathieu Duponchelle2015-07-171-0/+3
| | | | | | | They fail for various reasons for now and we want make check to pass. https://bugzilla.gnome.org/show_bug.cgi?id=748455
* tests: Fix loading pluginsMathieu Duponchelle2015-07-174-4/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=748455
* tests: Use GLib though introspectionMathieu Duponchelle2015-07-172-8/+5
| | | | | | + And remove useless pygtk import. https://bugzilla.gnome.org/show_bug.cgi?id=748455
* tests: Make C tests run againMathieu Duponchelle2015-07-171-1/+1
| | | | | | GrlMediaPlugin is now GrlSource. https://bugzilla.gnome.org/show_bug.cgi?id=748455
* build: Switch to git.mk to keep the .gitignore file updatedEmanuele Aina2013-08-243-6/+4
| | | | | | | | Fixing the *CLEANFILES lists where needed and having git.mk generate the .gitignore files automatically seemed more useful than manually updating those files. https://bugzilla.gnome.org/show_bug.cgi?id=706491
* core: Rename some registry functionsJuan A. Suarez Romero2012-07-232-2/+2
| | | | | | Rename those registry functions affecting plugins, by adding the word "plugin". It makes clear what the functions are about.
* core: Rename PluginRegistry to RegistryJuan A. Suarez Romero2012-07-238-26/+26
|
* tests: added a test of key range filter for fsGuillaume Emont2012-06-191-1/+29
|
* tests: added some search() and browse() tests using the fs pluginGuillaume Emont2012-06-191-0/+239
|
* tests: added caps tests for key filtersGuillaume Emont2012-06-191-0/+54
|
* tests: added tests of type filtering for capsGuillaume Emont2012-06-191-0/+61
|
* tests: added first tests for options and capsGuillaume Emont2011-12-141-0/+78
|
* tests: added simple tests for media datesGuillaume Emont2011-10-071-0/+59
|
* tests: updated test_registry.py for consistency with current behaviourGuillaume Emont2011-05-161-7/+8
|
* tests: Adapted to changes in grl_plugin_registry_load_allIago Toral Quiroga2010-12-202-2/+2
|
* tests: Adapted to changes in grl_plugin_registry_unregister_source.Iago Toral Quiroga2010-12-201-1/+1
|
* tests: fix compilation warnings in metadata_sourceDamien Lespiau2010-11-121-2/+2
| | | | | | | Remove the const before the GList *, shutting down the warnings, make the global variables static. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
* tests: key filter gtests for GrlMetadataSourceVíctor Manuel Jáquez Leal2010-10-223-0/+185
| | | | Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
* tests: updated GrlMetadataSource filter testsSimón Pena2010-10-201-3/+15
| | | | | | | | | Updated GrlMetadataSource filter tests so that they assert that the aggregated length of the two lists returned (the one which passes the check and the one which doesn't) equals to the original key list. Signed-off-by: Simón Pena <spenap@gmail.com>
* tests: Removed setUp/tearDown code in python testsSimón Pena2010-09-303-22/+18
| | | | | | | | | | | | | | setUp/tearDown methods in the tests load and unload the plugins so that each test is run in a clean environment. However, the current plugin mechanism doesn't allow that, and reloading a previously loaded/unloaded plugin produces a crash. This patch removes setUp/tearDown code, adding the plugin load in the tests constructor but leaving the plugins loaded during all the test suite execution. While this is a fix which allows the tests to be run, some of them will fail. Once that the plugin system is reworked to allow unloading/reloading, this commit should be reverted to come back to the original behavior.
* tests: Tested the MetadataSource class using GISimón Pena2010-09-302-1/+101
|
* tests: Tested the PluginMedia class using GISimón Pena2010-09-302-1/+79
|
* tests: Tested the PluginRegistry class using GISimón Pena2010-09-303-1/+210
| | | | | | This patch tests the class' methods from Python using GObject Introspection, checking functionality and bindings at the same time.
* tests: Command line arguments can be passed to testrunnerSimón Pena2010-09-301-2/+9
| | | | | | | Test runner script now accepts command line arguments. That way, it can be used to check individual test suites, instead of running the full test set. While this feature isn't really necessary, it can be helpful when designing the tests.
* core: Updated infrastructure to support python testsSimón Pena2010-09-304-4/+58
| | | | | | | | * Update configure.ac to generate a 'util' Python class * Added a test runner to launch Python unit tests * Added python/ to tests' SUBDIRS * Updated test's Makefile.am to avoid launching Python tests twice when 'make check' is invoked
* core: Moved tests infrastructure to /testsSimón Pena2010-09-303-0/+215
As discussed in the mailing list [1, 2, 3], this patch moves the test infrastructure from src/tests/ to tests/ In these discussions there was an agreement about having a python/, js/ etc directory for each language, under tests/. The test/ directory location wasn't agreed, but Edu Lima's reply on [4] seemed quite convincing, and nobody opposed to it. [1] http://mail.gnome.org/archives/grilo-list/2010-May/msg00041.html [2] http://mail.gnome.org/archives/grilo-list/2010-August/msg00074.html [3] http://mail.gnome.org/archives/grilo-list/2010-August/msg00107.html [4] http://mail.gnome.org/archives/grilo-list/2010-August/msg00106.html