mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 21:11:24 +00:00
trivial: Fix make distcheck
This commit is contained in:
parent
3ed5447c92
commit
31477cf4e7
@ -53,6 +53,7 @@ MAINTAINERCLEANFILES = \
|
|||||||
DISTCHECK_CONFIGURE_FLAGS = \
|
DISTCHECK_CONFIGURE_FLAGS = \
|
||||||
--enable-colorhug \
|
--enable-colorhug \
|
||||||
--enable-uefi \
|
--enable-uefi \
|
||||||
|
--with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
|
||||||
--with-systemdunitdir=$$dc_install_base/$(systemdunitdir)
|
--with-systemdunitdir=$$dc_install_base/$(systemdunitdir)
|
||||||
|
|
||||||
GITIGNOREFILES = \
|
GITIGNOREFILES = \
|
||||||
|
@ -195,7 +195,13 @@ fu_cab_func (void)
|
|||||||
/* extract firmware */
|
/* extract firmware */
|
||||||
ret = fu_cab_extract (cab, FU_CAB_EXTRACT_FLAG_FIRMWARE |
|
ret = fu_cab_extract (cab, FU_CAB_EXTRACT_FLAG_FIRMWARE |
|
||||||
FU_CAB_EXTRACT_FLAG_SIGNATURE, &error);
|
FU_CAB_EXTRACT_FLAG_SIGNATURE, &error);
|
||||||
|
g_assert_no_error (error);
|
||||||
|
g_assert (ret);
|
||||||
|
g_assert (g_str_has_suffix (fu_cab_get_filename_firmware (cab), "/firmware.bin"));
|
||||||
|
g_assert (g_file_test (fu_cab_get_filename_firmware (cab), G_FILE_TEST_EXISTS));
|
||||||
|
|
||||||
/* this is not available in make distcheck */
|
/* this is not available in make distcheck */
|
||||||
|
ret = fu_cab_verify (cab, &error);
|
||||||
if (g_error_matches (error, FWUPD_ERROR, FWUPD_ERROR_NOT_FOUND)) {
|
if (g_error_matches (error, FWUPD_ERROR, FWUPD_ERROR_NOT_FOUND)) {
|
||||||
g_clear_error (&error);
|
g_clear_error (&error);
|
||||||
} else {
|
} else {
|
||||||
@ -203,13 +209,8 @@ fu_cab_func (void)
|
|||||||
g_assert (ret);
|
g_assert (ret);
|
||||||
|
|
||||||
/* check the certificate */
|
/* check the certificate */
|
||||||
ret = fu_cab_verify (cab, &error);
|
|
||||||
g_assert_no_error (error);
|
|
||||||
g_assert (ret);
|
|
||||||
g_assert_cmpint (fu_cab_get_trust_flags (cab), ==, FWUPD_TRUST_FLAG_PAYLOAD);
|
g_assert_cmpint (fu_cab_get_trust_flags (cab), ==, FWUPD_TRUST_FLAG_PAYLOAD);
|
||||||
}
|
}
|
||||||
g_assert (g_str_has_suffix (fu_cab_get_filename_firmware (cab), "/firmware.bin"));
|
|
||||||
g_assert (g_file_test (fu_cab_get_filename_firmware (cab), G_FILE_TEST_EXISTS));
|
|
||||||
|
|
||||||
/* clean up */
|
/* clean up */
|
||||||
ret = fu_cab_delete_temp_files (cab, &error);
|
ret = fu_cab_delete_temp_files (cab, &error);
|
||||||
|
Loading…
Reference in New Issue
Block a user