summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-self-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for extracting relative symlinksKalev Lember2016-12-201-10/+12
|
* trivial: Don't include trailing whitespace from AppData filesRichard Hughes2016-12-071-2/+2
| | | | | Translators sometimes leave extra whitespace, so if we're parsing without AS_NODE_FROM_XML_FLAG_LITERAL_TEXT then just swallow the trailing spaces.
* Do not absorb core addons into the main applicationRichard Hughes2016-12-061-48/+15
| | | | | Adding this to the metadata means we do not have to look up the metadata source using the package manager.
* trivial: Fix up tests after the -lang auto-dep commitRichard Hughes2016-09-061-4/+5
|
* Ensure predictable output order of XML attributesRichard Hughes2016-08-101-21/+21
|
* Add two new GCC warnings and fix up signed/unsigned issuesRichard Hughes2016-07-251-2/+2
|
* trivial: Get rid of useless internal-only gtk-doc markupRichard Hughes2016-06-281-6/+0
|
* Use a wildcard for the font preview checksumRichard Hughes2016-03-311-4/+5
|
* Add as_utils_string_replace()Richard Hughes2016-03-031-13/+0
| | | | This is used all over the place both in and out of tree.
* Move the kudo and provides autodetection to libappstream-glibRichard Hughes2016-01-311-0/+4
|
* trivial: Fix up self tests after generic kindRichard Hughes2016-01-311-5/+5
|
* Remove the GIR and GResource, nm and KDE-specific pluginsRichard Hughes2016-01-221-6/+2
| | | | | | Applications have to specify the kudos upstream and relying on these hacky heuristics only worked some of the time for packages, and none of the time for xdg-app and Limba.
* Allow disabling font support with --disable-fontsRichard Hughes2016-01-211-0/+8
|
* Only build the test firmware files when using --enable-firmwareRichard Hughes2016-01-211-0/+4
|
* trivial: Fix self tests after the xdg-app fixesRichard Hughes2016-01-171-2/+1
|
* Fix AppStream generation when using duplicate .deb packagesRichard Hughes2015-12-281-0/+24
| | | | | | | | | For package types without a native klass->compare fall back to something sensible. Also add some self tests for this to make sure this never happens again. Fixes https://github.com/hughsie/appstream-glib/issues/72
* Only use the package license when not provided by the AppData fileRichard Hughes2015-12-091-1/+1
| | | | | In doing so, we found a number of invalid AppData files, so fix up the values the best we can.
* Use a wildcard in the self tests to ignore GCab-generated hash differencesRichard Hughes2015-10-271-6/+13
| | | | | | | GCab has changed the checksum generation code a few times now, and it's a pain to deal with. Just use a wildcard to prevent test failures. Fixes: https://github.com/hughsie/appstream-glib/issues/64
* Use a MS-style version number when parsing a hex versionRichard Hughes2015-10-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're comparing versions that are both converted to strings it doesn't really matter how the strings are stored (e.g. AA.BB.CC.DD or AA.BB.CCDD) as the integer rules still apply **if** we don't remove the prefixed zeros. The only time we have to be careful is where the firmware metainfo uses the triplet and the .inf file uses the hex version format. By using the triplet-style by default we match what Intel and Microsoft are providing in the firmware release notes. Basically: * If you're not using the MS-style versioning scheme, just use hex numbers in both places. * If you don't care about applying the update on Microsoft Windows, just don't supply an .inf file at all. Fixes the other half of https://github.com/hughsie/fwupd/issues/34 This does break API, but we've never had the method in a released version so I think it's fine to break at this stage. Make sure you update fwupd at the same time if you're using git master. The last bit of this fix would to be somehow encode the "display version" onto the AppStream <release> object, but this needs discussion upstream first.
* trivial: Fix make check with no firmware pluginRichard Hughes2015-10-181-1/+1
|
* Do not use the DriverVersion for the inf file versionRichard Hughes2015-10-181-6/+6
| | | | Fixes half of https://github.com/hughsie/fwupd/issues/34
* Use AsStoreCab to read .cab files when building metadataRichard Hughes2015-10-071-4/+8
| | | | There's no point having two implementations of the same thing.
* trivial: Fix distcheck by searching the built filesRichard Hughes2015-10-071-1/+1
|
* trivial: Fix make distcheckRichard Hughes2015-09-181-1/+1
|
* Require AppData files to be present in the AppStream metadataRichard Hughes2015-09-161-113/+18
| | | | | | This changes the default processing element from the desktop file to an AppData (or MetaInfo) file, and the other sources now refine the base object rather than the other way around. This matches what Debian is doing.
* Do not overwrite the AppData URL with the one from the packageRichard Hughes2015-09-161-1/+1
|
* trivial: Fix gcab generated checksumsRichard Hughes2015-09-151-4/+4
|
* Don't reallocate malloc'd memory with g_mallocKalev Lember2015-09-121-8/+1
| | | | | | | | glib's g_malloc and friends now always use malloc internally, as of glib 2.46: https://bugzilla.gnome.org/show_bug.cgi?id=751592 This means we no longer have to reallocate glibc malloc'd buffers and can expect that g_free works fine on them.
* Use glib's cleanup functions for GStringKalev Lember2015-09-101-5/+5
| | | | ... and bump glib dep to 2.45.8 for g_autoptr(GString) support.
* Use GLib's cleanup functions instead of libgsystem'sKalev Lember2015-09-081-23/+23
| | | | | | | We still have a few types that don't support g_autoptr(), but very very close to having everything ported over. This also bumps gdk-pixbuf dep to 2.31.5 for the cleanup macro support.
* Avoid using PATH_MAXPino Toscano2015-08-251-4/+4
| | | | | | | | | realpath() in POSIX.1-2008 supports NULL for the second argument, returning a newly allocated buffer. glibc has been supporting this mode for years already. Thus, switch to this mode and avoid PATH_MAX, which is optional in POSIX and not provided on Hurd.
* Add support for the flashed firmware provide kindRichard Hughes2015-08-101-30/+36
| | | | | | This allows us to have an ID that isn't tied to the GUID, and also allows us to have one component that targets more than one ESRT GUID. This requires changing the matching logic better, but should match what makes it into AppStream 0.9
* Make the DriverVer in the .inf file optionalRichard Hughes2015-08-051-1/+1
| | | | | | This allows the release engineer to _only_ update the metainfo.xml file for each release. If the firmware.inf file is not being used in Windows for driver installation then we should make the file static.
* Add AsChecksumRichard Hughes2015-08-031-8/+8
| | | | | | | | Also, partially revert the 'add filename' commit and move the filename to the checksum. This allows us to store the checksum of the firmware file as well as well as the .cab container. This allows us to validate the firmware on devices using fwupd.
* Add asb_plugin_loader_set_dir() to set the default plugin locationRichard Hughes2015-07-291-0/+7
| | | | | We need to set this from the build system when doing running the tests with build systems that do not build in the source tree.
* trivial: fix make distcheckRichard Hughes2015-07-241-0/+1
|
* Only add the HiDPI kudo for desktop applications using stock iconsRichard Hughes2015-07-231-6/+0
| | | | This makes little sense for other component types such as addons or firmware.
* Add as_release_set_filename()Richard Hughes2015-07-231-2/+4
| | | | | | | | | | This allows us to save the source package or bundle that is referenced to the release. This allows us to download the correct file when installing a specific version of a component. This also allows us to mirror the correct file if the source filename is different from the location-specified filename, or if there is no location tag in the firmware metainfo file.
* trivial: Correctly subsume source_pkgnameRichard Hughes2015-07-221-0/+1
|
* Do not expect the INF ClassGuid to be the ESRT GUIDRichard Hughes2015-07-031-4/+4
| | | | | | | | | | | | | | | | I misunderstood the role of the ClassGuid for UEFI firmware. It is not supposed to be the ESRT GUID, but instead a generic 'firmware' GUID set by Microsoft. The actual ESRT is set as a FirmwareID registry key only, so learn how to parse the HK section and fix up all the unit tests. As there are .cab files in the wild (cough, ColorHug, cough) that set the device ID as the ClassGuid, fall back to this to maintain compatibility with either method. Many thanks to Mario Limonciello for helping to debug this. See https://msdn.microsoft.com/en-us/library/windows/hardware/ff547502%28v=vs.85%29.aspx for more information.
* trivial: Fix make check now all fonts have Addons/FontsRichard Hughes2015-06-221-0/+4
|
* Include <pkgname> when writing the ignored metadataRichard Hughes2015-06-171-0/+4
| | | | This allows us to use it with incorporate if requried.
* Use the sanitized font filename as the cache-idRichard Hughes2015-04-101-2/+2
| | | | | Using the application-id means that multiple fonts packaged up in the same file accidentally use the cached image of the first font.
* Remove the batch output option from the builderRichard Hughes2015-04-071-1/+0
| | | | | This removes the panel, which does not work well when the console is not a real onsole, which is typical in most cases where the builder is being run.
* Remove all networking support when building metadataRichard Hughes2015-04-071-5/+4
| | | | | Distros currently relying on '--screenshot-uri' should start using the 'appstream-util mirror-screenshots' command after the builder has completed.
* No longer set PaddedIconRichard Hughes2015-04-021-3/+0
| | | | It's no longer used in the status html page.
* Remove --extra-appstream from the builderRichard Hughes2015-04-011-85/+0
| | | | | There is no need to merge these into one file as we can just install the other AppStream files manually.
* Update the checksums for the gcab-generated firmwareRichard Hughes2015-03-301-4/+4
| | | | | The gcab firmware files generated in F22 changed as a gcab bug was fixed: https://git.gnome.org/browse/gcab/commit/?id=b0eb277ab3a1bab9f4408a3cdd0f48819f303968
* Put all the screenshots in a file rather than just writing to the upload pathRichard Hughes2015-03-251-0/+2
| | | | | This is the first step to decouple the mirroring of the screenshots from the appstream metadata generation.
* Use the upstream screenshot when we are using appstream-builder --no-netRichard Hughes2015-03-241-0/+5
| | | | | | | | | | | | | If we can't access the network we can't copy the screenshot onto a mirror or do any of the resizing and padding that we normally do. This is also bad as there's a slight privacy risk letting upstream know that the user is looking at some specific software, and typically screenshots are not hosted on https:// so there may be someone playing MITM games. Also, but not resizing the screenshot we risk downloading the full size source image just for the 112px thumbnail. But hey, it's better than nothing. Resolves: https://github.com/hughsie/appstream-glib/issues/43