tests/registry.c needs installed plugins
Submitted by Michael Terry
Assigned to gri..@..e.bugs
I was looking into enabling the test suite during build in Ubuntu (https://bugs.launchpad.net/ubuntu/+source/grilo/+bug/1119781).
But I ran into several problems.
In configure.ac: -AM_CONDITIONAL(ENABLE_TESTS, test "enable_tests" = "xyes") +AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
- GrlMediaPlugin *source = GRL_MEDIA_PLUGIN (sources_iter->data);
- GrlSource *source = GRL_SOURCE (sources_iter->data);
tests/metadata_source.c needs a rethink, since the filter functions are no longer public.
tests/registry.c seems to need the package to have been installed, as it looks in the install location for plugins. Is this expected? (Not a deal breaker for using the tests in Ubuntu, but is not as convenient.)
I didn't test the python tests yet, but I'm guessing they may have bit-rotten as well.