summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-self-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Update asb-self-test to match current behaviorOtto Urpelainen2021-05-181-1/+1
| | | | | Apparently, write ordering of some field schanged at some point, but the test case was not updated. Updating to allow Travis CI to pass.
* Use the SPDX-License-Identifier in all source filesRichard Hughes2019-02-091-15/+1
|
* Do not parse firmware filesRichard Hughes2018-06-121-156/+4
| | | | Firmware should now be distributed using the LVFS and consumed by fwupd.
* Convert local icons found in metainfo fileswip/hughsie/icons-in-metainfoRichard Hughes2018-05-031-4/+18
| | | | | | | This allows us to support desktop-less components that specify a cached icon. The icon search code has been split into a new plugin that is run after the appdata and desktop plugins have added the AsbApp to the list of available apps.
* Don't include the path component in the name when parsing the package filenameRichard Hughes2018-03-271-0/+15
| | | | | | | | If the guessing fails, we fall back to the arch/rpm/deb-derived name but we don't want to show weird things in the logs. Fixes https://github.com/hughsie/appstream-glib/issues/228, many thanks to Andrew Gunnerson for the initial patch.
* trivial: Disable the fonts self tests in the builderRichard Hughes2017-11-031-2/+19
|
* Write XML for newer AppStream specification versionsRichard Hughes2017-10-091-0/+1
| | | | | | | | | Any XML parser should ignore the extra tags or attributes, and so it serves no purpose to artificailly hide these when building metadata for older versions of the specification. This also fixes a bug on i386 where 0.6 != 0.6 and I didn't want to use fabs() all over the place for basically no reason.
* Do not add the GNOME-Software-specific categories or icons by defaultRichard Hughes2017-06-071-1/+2
| | | | | This is better done client side. Add a build flag so we can still build metadata for old versions of Fedora.
* Remove the cache-id functionalityRichard Hughes2017-05-161-139/+27
| | | | | | | | | The results when using the partial update were not always the same as doing a fresh run (some components depend on other components) and even I'm not using this functionality anymore when running appstream-builder on the whole Fedora, achive, even across on all branches. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1426166
* Switch to the meson build system.Richard Hughes2017-05-101-11/+5
|
* 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.