Commit Graph

5614 Commits

Author SHA1 Message Date
Luis Diaz Mas
a3444f055e Rename config folder to cmake 2018-06-08 14:04:25 +02:00
Luis Diaz Mas
69ee165291 msvc: Remove manually generated configuration files for MSVC builds 2018-06-08 14:04:25 +02:00
Luis Diaz Mas
41bb15f7b7 Remove usage of CMAKE_DEBUG_POSTFIX
This option should be provided when calling to the cmake command.
Otherwise, we overwrite the value even when the user pass the value
in the command line.
2018-06-08 14:04:25 +02:00
Luis Diaz Mas
c49882159a Remove msvc folder 2018-06-08 14:04:25 +02:00
Luis Diaz Mas
abf6e8ec27 Remove code related with autotools 2018-06-08 14:04:25 +02:00
D4N
f1c4734e84
Merge pull request #357 from Exiv2/gitlab_deploy_test
Add Gitlab deploy stage
2018-06-08 09:12:13 +02:00
Dan Čermák
de2e260d0c Fix doxygen documentation generation
The tagfile location in the Doxyfile was wrong and would point to a non-existent
location, causing make doc to fail.
2018-06-07 23:46:33 +02:00
Dan Čermák
b8a9423c5a [CI] Deploy documentation to GitLab pages 2018-06-07 23:46:31 +02:00
Dan Čermák
7ac40ba0b2 [CI] Move CCache config out of python build script 2018-06-07 23:45:52 +02:00
Dan Čermák
7d1d10c338 [CI] Add installation test to GitLab CI 2018-06-07 23:45:39 +02:00
Dan Čermák
653814afb0 [testsuite] Allow setting the binary location for make tests 2018-06-07 10:19:59 +02:00
Luis Diaz Mas
71638014a3 CMake: control doc generation with a new CMake option 2018-06-07 01:55:05 +02:00
Luis Diaz Mas
211a7a3edd Require dot command for 'doc' and change output folder
dot is needed to generate the exiv2 documentation. Furthermore we were
generating the documentation in ${PROJECT_BINARY_DIR}/html while the
CMake 'install' command was expecting to find the documentation directory
at ${PROJECT_BINARY_DIR}/doc/html. This has been also fixed in this
commit.
2018-06-07 01:55:05 +02:00
D4N
493b7284ae
Merge pull request #353 from Exiv2/redmine_issues_831_to_937
Port redmine issues 831 to 937 to the new testsuite
2018-06-06 15:28:44 +02:00
Dan Čermák
35e7037f86 [testsuite] Change the calling order of setUp & tearDown in decorator
The FileDecoratorBase injects a new setUp & tearDown function. These new
functions would call the old setUp & tearDown in an inconvenient order: e.g. the
child class CopyFiles would at first call the user provided setUp and then copy
the files. This makes it impossible to perform some action on the file copy in
setUp.
=> This commit changes the call order, so that setUp & tearDown always "see" the
finished environment after file copies are in place and before any cleanup took
place.
2018-06-06 13:59:45 +02:00
Dan Čermák
39b7151b2e [testsuite] Port redmine issues 831 to 937 to the new testsuite 2018-06-06 13:59:34 +02:00
Dan Čermák
7e1cd7d1b6 [testsuite] Fix name of regression test #283
issue got a CVE assigned
2018-06-06 13:31:53 +02:00
Luis Díaz Más
d9d2c2217a CMake: macro to generate documentation
We use now the Doxyfile.in template file with some variables that are
replaced at configuration time by absolute paths. Therefore, we can run
later the doxygen command with absolute paths from the
PROJECT_BINARY_DIR.

The CMake 'doc' target is added only if doxygen is available in the
system.
2018-06-04 14:05:40 +02:00
D4N
4f9d3e4836
Merge pull request #153 from tbeu/more-cleanup
More cleanup
2018-06-02 09:54:32 +02:00
tbeu
6b1615840f Remove redundant check
V547 Expression 'bPrint' is always true. rafimage.cpp 112
V547 Expression 'bPrint' is always true. rafimage.cpp 125
V547 Expression 'bPrint' is always true. rafimage.cpp 136
V547 Expression 'bPrint' is always true. rafimage.cpp 147
V547 Expression 'bPrint' is always true. rafimage.cpp 158
V547 Expression 'bPrint' is always true. rafimage.cpp 169
V547 Expression 'bPrint' is always true. rafimage.cpp 190
V547 Expression 'bPrint' is always true. rafimage.cpp 213
V547 Expression 'bPrint' is always true. rafimage.cpp 236
V547 Expression 'bPrint' is always true. rafimage.cpp 252
V547 Expression 'bPrint' is always true. rafimage.cpp 262
V547 Expression 'bPrint' is always true. rafimage.cpp 272
2018-06-02 09:43:20 +02:00
tbeu
eca251865f Fix check (on comparing unsigned minus signed greater zero)
V555 The expression 'object->sizeDataArea_ - buf.size_ > 0' will work as 'object->sizeDataArea_ != buf.size_'. tiffvisitor.cpp 911
2018-06-02 09:43:20 +02:00
tbeu
bb9034e029 Do not implicitly cast enum to Boolean
V768 The expression 'fileProtocol(path)' is of enum type. It is odd that it is used as an expression of a Boolean-type. futils.cpp 288
2018-06-02 09:43:20 +02:00
tbeu
12d0da619b Use clear to reset string
V815 Decreased performance. Consider replacing the expression 'token = ""' with 'token.clear()'. http.cpp 193
2018-06-02 09:43:20 +02:00
tbeu
9569ef2fda Use auxiliary variable
V807 Decreased performance. Consider creating a reference to avoid using the 'image_.exifData()' expression repeatedly. preview.cpp 530
2018-06-02 09:43:20 +02:00
tbeu
75cdbc8b91 Use pre-increment on iterators
V803 Decreased performance. In case 'userEnd' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. futils.cpp 405
V803 Decreased performance. In case 'authEnd' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. futils.cpp 410
V803 Decreased performance. In case 'hostEnd' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. futils.cpp 428
V803 Decreased performance. In case 'e' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. epsimage.cpp 711
V803 Decreased performance. In case 'e' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. epsimage.cpp 841
V803 Decreased performance. In case 'e' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. epsimage.cpp 958
V803 Decreased performance. In case 'i' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. epsimage.cpp 855
V803 Decreased performance. In case 'it' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. jpgimage.cpp 817
V803 Decreased performance. In case 'lib' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. version.cpp 508
V803 Decreased performance. In case 'it' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. version.cpp 563
V803 Decreased performance. In case 'it' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator. xmpsidecar.cpp 138
2018-06-02 09:43:20 +02:00
tbeu
e5a4f1cf35 Use auxiliary variable
V807 Decreased performance. Consider creating a reference to avoid using the 'image.exifData()' expression repeatedly. crwimage.cpp 1320
2018-06-02 09:43:20 +02:00
tbeu
3674ce2c1d Remove superfluous assignment
V519 The 'md_st' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 155, 156. easyaccess.cpp 156
2018-06-02 09:43:20 +02:00
tbeu
9c507b9d20 Fix function declaration
V762 It is possible a virtual function was overridden incorrectly. See third argument of function 'printStructure' in derived class 'TiffImage' and base class 'Image'. tiffimage.hpp 93
2018-06-02 09:43:20 +02:00
Luis Díaz Más
7e824f9130 Doc: Add a table in the README.md for the CI badges 2018-06-01 16:21:40 +02:00
Luis Díaz Más
dd51169a02 CMake: cleanup config.h.cmake template 2018-06-01 15:01:28 +02:00
Luis Diaz Mas
5bd26ee82b Port redmine issues 1179-1305
- Authorship: Luis Díaz Más & Dan Čermák
2018-06-01 07:56:13 +02:00
Luis Diaz Mas
b3265c21e0 cleanup FindIconv.cmake 2018-06-01 06:55:38 +02:00
Luis Diaz Mas
5fa8f5aa87 CMake: minimum version bumped to 3.3.2 2018-06-01 06:55:38 +02:00
Luis Díaz Más
9f67edd9bd Conan: bring libiconv dependency for Windows 2018-06-01 06:55:38 +02:00
Luis Díaz Más
9339cfcac8 CMake: Update FindIconv.cmake.
I've taken this file from the CMake repository directly. Apparently the FindIconv module is available in the latest
CMake versions, but we should not update the CMake requirement for the moment.
2018-06-01 06:55:38 +02:00
Luis Díaz Más
8baf07decb Fix warnins reported by -Wunused-variable
This trick is a bit nasty but I do not want to mess up to much with the
XMPSample application at this moment. Once we have more unit tets for
that part of the code, the xmpsample could disappear.
2018-05-31 14:44:24 +02:00
Luis Díaz Más
e82cd1734c Fix warnings reported by -Wmisleading-indentation 2018-05-31 14:44:24 +02:00
Luis Díaz Más
88ba920962 Extract out common code for two switch-cases into a function to fix warning
The warning was caused by -Wimplicit-fallthrough:
https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/

I also realized that the method printStructure was duplicated in the
classes Print and Erase. By moving the implementation to a free function
into the cpp file, I could remove the duplication in the code.
2018-05-31 14:44:24 +02:00
Luis Díaz Más
335607054c Use enforce instead of std::assert to fix warning about unused variable in realease mode 2018-05-31 14:44:24 +02:00
Luis Diaz Mas
773bdfd14e Create a header where to keep an unique definition of UNUSED 2018-05-31 14:44:24 +02:00
Luis Díaz Más
9fa4c62561 Appveyor: use conan 1.3.3 2018-05-29 15:33:07 +02:00
Luis Díaz Más
85d021cbe3 Appveyor: cache conanCache folder 2018-05-29 15:33:07 +02:00
D4N
2ab4f72c89
Merge pull request #329 from Exiv2/test_suite_improvements
Test suite improvements:
- the variables defined in the config file are now accessible inside the system_tests namespace
- a new function path was added, that converts unix paths to Windows paths on Windows
- hooks were added to the test suite and are used to remove the usage of $cat
2018-05-29 10:59:11 +02:00
Dan Čermák
d7f4453dbd [testsuite] Remove usage of $cat via hooks 2018-05-29 10:21:13 +02:00
Dan Čermák
41ac25c4f4 [testsuite] Add hooks & documentation for hooks 2018-05-29 10:21:13 +02:00
Dan Čermák
23e29e9527 [testsuite] Use system_tests.path() in some test cases 2018-05-29 10:21:13 +02:00
Dan Čermák
4e32929956 [testsuite] Add notes concerning escaping in commands 2018-05-29 10:21:13 +02:00
Dan Čermák
53c265f8a7 [testsuite] Add path conversion function 2018-05-29 10:21:13 +02:00
Dan Čermák
300b1dc0ef [testsuite] Testsuite injects config file values into its namespace 2018-05-29 10:21:13 +02:00
Luis Diaz Mas
c26135a2da CMake: indicate if XMP external is enabled 2018-05-29 10:03:41 +02:00