From bd59c88669fb18f3991b5170857605c0ec7735fa Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 20 Dec 2016 16:21:23 +0100 Subject: Add a test for extracting relative symlinks --- libappstream-builder/asb-self-test.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'libappstream-builder') diff --git a/libappstream-builder/asb-self-test.c b/libappstream-builder/asb-self-test.c index 1c60322..572b53e 100644 --- a/libappstream-builder/asb-self-test.c +++ b/libappstream-builder/asb-self-test.c @@ -324,10 +324,10 @@ asb_test_context_test_func (AsbTestContextMode mode) g_autoptr(GString) xml_ignore = NULL; const gchar *filenames[] = { "test-0.1-1.fc21.noarch.rpm", /* a console app */ - "app-1-1.fc21.x86_64.rpm", /* a GUI app */ - "app-extra-1-1.fc21.noarch.rpm", /* addons for a GUI app */ - "app-console-1-1.fc21.noarch.rpm", /* app with no icon */ - "app-1-1.fc21.i686.rpm", /* GUI multiarch app */ + "app-1-1.fc25.x86_64.rpm", /* a GUI app */ + "app-extra-1-1.fc25.noarch.rpm", /* addons for a GUI app */ + "app-console-1-1.fc25.noarch.rpm", /* app with no icon */ + "app-1-1.fc25.i686.rpm", /* GUI multiarch app */ "composite-1-1.fc21.x86_64.rpm", /* multiple GUI apps */ "font-1-1.fc21.noarch.rpm", /* font */ "font-serif-1-1.fc21.noarch.rpm", /* font that extends */ @@ -473,7 +473,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "http://people.freedesktop.org/\n" "app.desktop\n" "\n" - "app-1-1.fc21.x86_64.rpm\n" + "app-1-1.fc25.x86_64.rpm\n" "\n" "\n" "\n" @@ -486,7 +486,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "http://people.freedesktop.org/\n" "app.desktop\n" "\n" - "app-extra-1-1.fc21.noarch.rpm\n" + "app-extra-1-1.fc25.noarch.rpm\n" "\n" "\n" "\n" @@ -495,6 +495,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "App\n" "A test application\n" "

Long description goes here.

\n" + "app.png\n" "app.png\n" "\n" "Profiling\n" @@ -505,6 +506,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "Remote\n" "\n" "\n" + "HiDpiIcon\n" "ModernToolkit\n" "SearchProvider\n" "UserDocs\n" @@ -527,7 +529,7 @@ asb_test_context_test_func (AsbTestContextMode mode) "ru\n" "\n" "\n" - "app-1-1.fc21.x86_64.rpm\n" + "app-1-1.fc25.x86_64.rpm\n" "\n" "
\n" #ifdef HAVE_GCAB @@ -641,14 +643,14 @@ asb_test_context_test_func (AsbTestContextMode mode) "app-console.noarch\n" "app-console\n" "\n" - "app-console-1-1.fc21.noarch.rpm\n" + "app-console-1-1.fc25.noarch.rpm\n" "\n" "\n" "\n" "app.i686\n" "app\n" "\n" - "app-1-1.fc21.i686.rpm\n" + "app-1-1.fc25.i686.rpm\n" "\n" "\n" "\n" @@ -679,8 +681,8 @@ asb_test_context_test_func (AsbTestContextMode mode) /* check icon dir */ g_assert (g_file_test ("/tmp/asbuilder/temp/icons/64x64/app.png", G_FILE_TEST_EXISTS)); + g_assert (g_file_test ("/tmp/asbuilder/temp/icons/128x128/app.png", G_FILE_TEST_EXISTS)); g_assert (!g_file_test ("/tmp/asbuilder/temp/icons/app.png", G_FILE_TEST_EXISTS)); - g_assert (!g_file_test ("/tmp/asbuilder/temp/icons/128x128/app.png", G_FILE_TEST_EXISTS)); } #endif -- cgit v1.2.1