File indexing completed on 2024-05-12 15:55:47
0001 # SPDX-FileCopyrightText: 2020 Johannes Zarl-Zierl <johannes@zarl-zierl.at> 0002 # 0003 # SPDX-License-Identifier: BSD-2-Clause 0004 0005 _checks[check_untagged]="Feature: Mark As Untagged" 0006 _context[check_untagged]="<h2>What this test will do:</h2> 0007 <ul> 0008 <li>This test checks if new images are properly tagged with the <em>untagged</em> tag after import.</li> 0009 <li>After you close this dialog, KPhotoAlbum will be started and it will search for new images.</li> 0010 </ul> 0011 <h2>How you can check manually</h2> 0012 <ol> 0013 <li>Go to <em>Untagged Images</em> and see if the image of a rose shows up.</li> 0014 <li>Check if the image of a rose has the *untagged* tag set.</li> 0015 </ol> 0016 <h2>What you have to do:</h2> 0017 <ol> 0018 <li>When KPhotoAlbum starts, save the database and exit KPhotoAlbum.</li> 0019 </ol>" 0020 _check_db_file[check_untagged]=integration-tests/check_untagged.result.xml 0021 prepare_check_untagged() 0022 { 0023 local check_dir="$1" 0024 echo -e "[General]\nuntaggedImagesTagVisible=true\nuntaggedCategory=Events\nuntaggedTag=untagged\n$BASE_RC" > "$check_dir/kphotoalbumrc" 0025 convert -size 700x460 magick:rose "$check_dir/db/rose.jpg" 0026 exiv2 -M"set Exif.Photo.DateTimeOriginal '2000-01-01 00:00:00'" "$check_dir/db/rose.jpg" 0027 } 0028 call_check_untagged() 0029 { 0030 local check_dir="$1" 0031 kphotoalbum --db "$check_dir/db/index.xml" --search 0032 } 0033 check_untagged() 0034 { 0035 generic_check check_untagged 0036 }