src/exiv2-tests.vala (507B) - raw
1 /* 2 * xmpedit 3 * Copyright 2010 Dan Callaghan <djc@djc.id.au> 4 * Released under GPLv2 5 */ 6 7 #if TEST 8 9 namespace Exiv2 { 10 11 namespace Tests { 12 13 public void test_load_xmp() { 14 var image = new Image.from_path("testdata/24-06-06_1449.jpg"); 15 image.read_metadata(); 16 assert(Checksum.compute_for_string(ChecksumType.SHA1, image.xmp_packet) 17 == "fb357e9a9e9fb5f4481234d2f8f5e59275fc07af"); 18 } 19 20 public void register_tests() { 21 Test.add_func("/exiv2/test_load_xmp", test_load_xmp); 22 } 23 24 } 25 26 } 27 28 #endif