GNOME Bugzilla – Bug 731941
Add sample data needed by tests
Last modified: 2016-02-20 20:51:42 UTC
Created attachment 278811 [details] [review] Sample data needed by tests - draft I've added test set testing basic functionality of gnome-software. Unfortunately, these tests need some sample data to search and browse them. There is a way to get them, using data/Makefile with parameter 'install-sample-data'. But the problem is, GnomeContinuous has no network so this is not gonna work. An option is to get archive, decrease the size (e.g. keep only default name and remove all other language versions) and commit it to upstream repo. This is not a big deal, I tried it and the archive could about 200kB size. Problem is that I don't know how to pass it into these Makefile/configure/m4 or whatever to make it install under GnomeContinuous. They should be installed only under GnomeContinuous (it means, it shouldn't be probably installed when someone clones the upstream repo and wants to execute tests). I also attached some kind of patch draft. It's working, but it's missing the Makefile/configure/m4 magic as I'm not familiar with it enough to do that. Also sorry for the binary, it's compressed archive which is originally over 1MB. I'm afraid it could be also problem (to have binary in upstream repo), I guess.
Is there any env var for running under continuous? Installing 200kB for installed tests seems like a large overhead.
well, installing of these tests and sample data is relevant only when compiling with "--enable-installed-tests" parameter of configure script. So, if I understand it well, the only problem you see is in installing the sample data when not needed (e.g. when gnome-software is installed as a regular package)? I would like to solve it by downloading the data when needed, but that's not possible under GnomeContinuous, unfortunately..
We have xdg-app metadata now :)