Include faulty image test in GitHub workflow tests
authorColin Clark <colin.clark@cclark.uk>
Tue, 4 Jul 2023 11:29:28 +0000 (12:29 +0100)
committerColin Clark <colin.clark@cclark.uk>
Tue, 4 Jul 2023 11:29:28 +0000 (12:29 +0100)
meson.build

index c1c3de8..18b9971 100644 (file)
@@ -715,7 +715,11 @@ if option.enabled()
         path_array = image_path.split('/')
         image_name = path_array[path_array.length() - 1]
 
-        test('Image_ ' + image_name, image_test_sh, args: [geeqie_exe, image], is_parallel : false, timeout: 100)
+        if image_name.startswith('fail')
+            test('Image_ ' + image_name, image_test_sh, args: [geeqie_exe, image], is_parallel : false, should_fail : true, timeout: 100)
+        else
+            test('Image_ ' + image_name, image_test_sh, args: [geeqie_exe, image], is_parallel : false, timeout: 100)
+        endif
     endforeach
     summary({'Image tests' : ['Test runs:', true]}, section : 'Testing', bool_yn : true)
 else