Commit Graph

102 Commits

Author SHA1 Message Date
Rosen Penev
ff7bfb3798
Merge pull request #2422 from norbertwg/interpretation-for-Exif.Photo.LensSpecification
Interpretation for Exif.Photo.LensSpecification
2023-03-07 08:22:00 -08:00
norbertwg
db2f4ee377 interpretation for ExifPhoto.LensSpecification
printLensSpecification is copied from old Nikon3MakerNote::print0x0084
call of Nikon3MakerNote::print0x0084 replaced by printLensSpecification

add two lens tags to EasyAccess API
Exif.Photo.LensSpecification and Exif.Nikon3.Lens

handling of zero; more precision for focal length

silence compiler warnings
2023-03-06 11:01:18 +01:00
Kevin Backhouse
4a6d786256 Fix test failures on 32-bit platforms. 2023-02-26 09:00:33 -08:00
norbertwg
9ca161d1e5
Rename resp. remove duplicate exif keys (#2434)
* rename resp. remove duplicate Exif keys

Duplicate key names with different tag are renamed
Following most of the existing entries, the key with higher tag number
is renamed to ...2.
Exceptions: Canon.CustomFunctions,Olympus.ImageHeight,Olympus.ImageWidth
In the available images samples only the key with higher tag number is
used, so changing the other has less impact on test data and also on
users.
Canon.WhiteBalanceTable with tag 0x00a4 was listed twice, once with
description "SharpnessTable". The entry with the deviating description
is deleted.

* clang format

* adjust test output files (after merge with Exiv2)

* add Exif.NikonLd4.FocusDistance to EasyAccess API

* clang format
2022-12-30 14:37:05 +01:00
norbertwg
e38d3d9976 several keys added to easyaccess
sample easyaccess-test enhanced with additional optional arguments
"category" for easier definition of some tests
2022-10-07 18:25:25 +02:00
Peter
dc4ae73013
Add tag description option to exiv2 app (#2279)
* Add `tagDesc()` to (Exif|Xmp|Iptc) Datums and Keys
* Add `--Print d` option to exiv2 app
* Add testing for all exiv2 application `--Print` options
* Update manpage
2022-07-12 15:31:43 +01:00
Luis Díaz Más
941017d281
Fix issues on ARM builds (#2205)
* Specify base class initialization in Copy Constructor

* Fix printing of uint64_t variable in ARM 32bits

Use cinttypes

* Fix alignment issues on ARM 32 bits

* tests: add assertion with custom message
2022-04-13 15:22:22 +02:00
Luis Díaz Más
c6340caca7 Remove exiv2json sample and tests depending on it 2022-04-01 09:07:08 +02:00
Peter
d17b7e4484
Fix test_pr_1905.py for native 2019msvc64 (#2108) (#2112)
* Fix test_pr_1905.py for native 2019msvc64 (#2108)

* Move test_pr_1905_poc1_ref.out to reference dir
2022-02-20 21:38:25 +00:00
Luis Díaz Más
50fc40bb7c Add system test to reproduce issue with special characters 2022-02-13 22:49:32 +01:00
Christoph Hasse
e3ca59b01f move test_regression_allfiles.py into its own subdirectory and add the test to cmakelists.txt 2022-02-13 22:46:54 +01:00
Christoph Hasse
b318b9de65 feat(testing): add a new extensive regression test that runs exiv2 over every test file we have 2022-02-13 22:46:54 +01:00
Christoph Hasse
d0131ebb75 move test reference files into their own subdirectory 2022-02-13 22:46:54 +01:00
Luis Díaz Más
c7185c71db Move all tests depending on sample applications to bash_tests 2022-02-09 22:19:49 +01:00
Robin Mills
82371c4d09 Adding version_test.py. 2021-12-19 12:13:15 +00:00
Robin Mills
13a2cf336d
fix_1416_iptc_DateCreated (#1547)
* fix_1416_iptc_DateCreated

* Fix unit tests

* DateValue:read 2nd iteration on pre-condition

* test with ISO_8601 date format

* Use std::regex for ISO 8601 basic & extended date formats

* Use std::regex for ISO 8601 basic & extended time formats

* Add more tests & notes for DateValue & TimeValue

* Comment tests using local calendar times

* DateValue::write also adds padding to year field

Co-authored-by: Luis Díaz Más <piponazo@gmail.com>
2021-12-14 11:20:02 +01:00
Christoph Hasse
08975e3dfc refactor: small cleanup of test infra to avoid duplicate runs 2021-07-30 14:25:50 +02:00
Robin Mills
5c13660f1e Add optional parameter forgive=False to reportTest() for use by nls_test to avoid false fails. 2021-03-18 16:50:53 +00:00
Robin Mills
da52bb3b0b Better logic and error message. 2021-03-17 10:10:32 +00:00
Robin Mills
72b73bb146 Sniff for unit_tests.exe! 2021-03-17 09:54:54 +00:00
Robin Mills
bbec658185 Fix LD_LIBRARY_PATH. Add option arg raw=False to runTest() Use raw=True in unit_test.py. 2021-03-17 09:45:24 +00:00
Robin Mills
354a8f6971 Fix comments. 2021-03-17 09:14:54 +00:00
Robin Mills
5e82f260a1 Add python scripts equivalent to test/version_test.sh and unit_test.sh 2021-03-17 07:11:55 +00:00
Robin Mills
19aab434a5 Move system_tests.runTest() and system_tests.verbose_version() to system_tests.BT 2021-03-10 10:23:34 +00:00
clanmills
985617cdfc Adding support for VALGRIND and EXIV2_BINDIR 2020-10-23 17:30:56 +01:00
clanmills
43698f414b Adding support for environment strings EXIV2_HTTP and EXIV2_PORT 2020-10-23 16:05:51 +01:00
LeoHsiao
bae5032ba0 Merge branch 'feature_1372_support_env_variables' of https://github.com/Exiv2/exiv2 into feature_1372_support_env_variables 2020-10-22 23:00:55 +08:00
LeoHsiao
7abb8dbe0f Cancel adding a newline when testing 2020-10-22 22:52:14 +08:00
clanmills
d6b029ad6e Don't set --verbose in makefile. Don't treat exiv2_echo == VERBOSE. 2020-10-22 15:25:48 +01:00
LeoHsiao
da919e3d68 Set the default value for the variable VALGRIN to empty 2020-10-22 22:14:51 +08:00
LeoHsiao
0c7d231752 let make python_tests runs in verbose mode 2020-10-22 19:23:51 +08:00
LeoHsiao
e0486ec063 Set the variable EXIV2_ECHO when executing make python_tests VERBOSE=1 2020-10-21 23:04:20 +08:00
LeoHsiao
3aedb60513 Support variables: DYLD_LIBRARY_PATH, LD_LIBRARY_PATH 2020-10-21 20:58:51 +08:00
LeoHsiao
ded2b3c9a3 Support to display the command to execute 2020-10-21 20:45:13 +08:00
LeoHsiao
5e11376609 Supports setting EXIV2_HTTP or EXIV2_PORT to '' to ignore HTTP test 2020-10-18 21:07:35 +08:00
LeoHsiao
076cdf6f1e Fix nls_test(): Check only part of the output 2020-10-18 19:32:47 +08:00
LeoHsiao
068a80c1e2 Correct the output of exiv2-test 2020-10-17 19:34:46 +08:00
Robin Mills
55bdaafebf
Merge pull request #1341 from Exiv2/fix_1278_nls_test_0.27
Fix 1278 nls test 0.27
2020-10-14 14:01:07 +01:00
LeoHsiao
ae1fbab645 Fix variable LANG in nls_test() 2020-10-14 19:52:32 +08:00
Robin Mills
256a65753c https://github.com/Exiv2/exiv2/pull/1356#issuecomment-707828789 2020-10-13 16:53:37 +01:00
LeoHsiao
fc91004830 add nls_test() 2020-10-12 23:08:59 +08:00
LeoHsiao
64e64b4a9b Enhance function find(), cp(), rm(), mv() 2020-10-12 23:06:59 +08:00
clanmills
9fa6d3965a C++ changes requested by @piponazo. Fix python png_test() recommended by @LeoHsiao1. Update reference output. 2020-10-09 18:50:27 +01:00
clanmills
834dca39d0 Code changes 2020-10-09 06:40:28 +01:00
clanmills
0d6f9fcc04 temporarily disable stdin-test and webp-test to get the CI operational again. 2020-10-01 19:58:47 +01:00
Robin Mills
02b6990f00
Merge pull request #1301 from LeoHsiao1/0.27-maintenance
Continue to rewrite the bash test scripts into Python scripts
2020-09-30 16:57:52 +01:00
LeoHsiao
0d7425014f Fix webp_test: correct a test file name 2020-09-30 21:50:07 +08:00
LeoHsiao
c7c1fcee59 Ignore the difference in the path separator for stdin_test 2020-09-28 22:03:25 +08:00
LeoHsiao
eb4bc191fc Refactor xmpparser-test.sh to xmpparser_test() 2020-09-19 15:54:25 +08:00
LeoHsiao
88671a6da7 Refactor write2-test.sh to write2_test() 2020-09-19 14:57:18 +08:00