| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The tests are for the classes
- GrlNetWc
- GrlData
- GrlMedia
- GrlRelatedKeys
- GrlCaps
- GrlOperationOptions
- GrlPlugin
https://gitlab.gnome.org/GNOME/grilo/merge_requests/10
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=771338
|
|
|
|
|
|
| |
As timeout might not be used.
https://bugzilla.gnome.org/show_bug.cgi?id=771338
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=771338
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Introduced in commit f3ccf55
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=769331
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=748455
|
|
|
|
|
|
|
| |
They fail for various reasons for now and we want make check to
pass.
https://bugzilla.gnome.org/show_bug.cgi?id=748455
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=748455
|
|
|
|
|
|
| |
+ And remove useless pygtk import.
https://bugzilla.gnome.org/show_bug.cgi?id=748455
|
|
|
|
|
|
| |
GrlMediaPlugin is now GrlSource.
https://bugzilla.gnome.org/show_bug.cgi?id=748455
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Rename those registry functions affecting plugins, by adding the word "plugin".
It makes clear what the functions are about.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Remove the const before the GList *, shutting down the warnings,
make the global variables static.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
|
|
|
|
| |
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
This patch tests the class' methods from Python using
GObject Introspection, checking functionality and bindings
at the same time.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
* 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
|
|
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
|