summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-self-test.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-03-25 18:03:16 +0000
committerRichard Hughes <richard@hughsie.com>2015-03-25 18:03:18 +0000
commit5f214d14c9d7d13da2f561c1a4199f2bf7517895 (patch)
treea3424f72bf050f331f79e2ea494d1cd9180f557f /libappstream-builder/asb-self-test.c
parent775b4ea4a1848bffd10c0818e6af403977b0d150 (diff)
downloadappstream-glib-5f214d14c9d7d13da2f561c1a4199f2bf7517895.tar.gz
Put all the screenshots in a file rather than just writing to the upload path
This is the first step to decouple the mirroring of the screenshots from the appstream metadata generation.
Diffstat (limited to 'libappstream-builder/asb-self-test.c')
-rw-r--r--libappstream-builder/asb-self-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-builder/asb-self-test.c b/libappstream-builder/asb-self-test.c
index 5eca682..946c2f1 100644
--- a/libappstream-builder/asb-self-test.c
+++ b/libappstream-builder/asb-self-test.c
@@ -341,6 +341,7 @@ asb_test_context_test_func (AsbTestContextMode mode)
asb_context_set_output_dir (ctx, "/tmp/asbuilder/output");
asb_context_set_temp_dir (ctx, "/tmp/asbuilder/temp");
asb_context_set_icons_dir (ctx, "/tmp/asbuilder/temp/icons");
+ asb_context_set_screenshot_dir (ctx, "/tmp/asbuilder/temp/screenshots");
switch (mode) {
case ASB_TEST_CONTEXT_MODE_WITH_CACHE:
asb_context_set_old_metadata (ctx, "/tmp/asbuilder/output");
@@ -395,6 +396,7 @@ asb_test_context_test_func (AsbTestContextMode mode)
g_assert (g_file_test ("/tmp/asbuilder/output/appstream-failed.xml.gz", G_FILE_TEST_EXISTS));
g_assert (g_file_test ("/tmp/asbuilder/output/appstream-ignore.xml.gz", G_FILE_TEST_EXISTS));
g_assert (g_file_test ("/tmp/asbuilder/output/appstream-icons.tar.gz", G_FILE_TEST_EXISTS));
+ g_assert (g_file_test ("/tmp/asbuilder/output/appstream-screenshots.tar", G_FILE_TEST_EXISTS));
/* load AppStream metadata */
file = g_file_new_for_path ("/tmp/asbuilder/output/appstream.xml.gz");