diff options
author | Richard Hughes <richard@hughsie.com> | 2016-01-21 15:05:31 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-01-21 15:50:53 +0000 |
commit | bdbc690fac186a2afbb8ef8a618aa510c9f3367a (patch) | |
tree | 1c3e122fbba92a74c1eaaa7a2c087275bb6afb0b /libappstream-builder | |
parent | a6c7bf7dc59facde6b21ba1415d57d918a9ae8a4 (diff) | |
download | appstream-glib-bdbc690fac186a2afbb8ef8a618aa510c9f3367a.tar.gz |
Only build the test firmware files when using --enable-firmware
Diffstat (limited to 'libappstream-builder')
-rw-r--r-- | libappstream-builder/asb-self-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-builder/asb-self-test.c b/libappstream-builder/asb-self-test.c index 61db8d9..18f8e15 100644 --- a/libappstream-builder/asb-self-test.c +++ b/libappstream-builder/asb-self-test.c @@ -540,6 +540,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "<value key=\"X-CacheID\">app-1-1.fc21.x86_64.rpm</value>\n" "</metadata>\n" "</component>\n" +#ifdef HAVE_GCAB "<component type=\"firmware\">\n" "<id>com.hughski.ColorHug2.firmware</id>\n" "<name>ColorHug Firmware</name>\n" @@ -569,6 +570,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "<value key=\"X-CacheID\">colorhug-als-2.0.2.cab</value>\n" "</metadata>\n" "</component>\n" +#endif "</components>\n"; ret = asb_test_compare_lines (xml->str, expected_xml, &error); g_assert_no_error (error); @@ -784,6 +786,7 @@ asb_test_context_oldcache_func (void) static void asb_test_firmware_func (void) { +#ifdef HAVE_GCAB AsApp *app; AsbPluginLoader *loader; const gchar *expected_xml; @@ -899,6 +902,7 @@ asb_test_firmware_func (void) ret = asb_utils_rmtree ("/tmp/asbuilder", &error); g_assert_no_error (error); g_assert (ret); +#endif } int |