Martchus
ace077f9aa
Fix INI test
5 years ago
Martchus
28f37bbbcd
string to int: Allow specifying string size
5 years ago
Martchus
045c713cf5
string to int: Ignore whitespaces at beginning
5 years ago
Martchus
06f401b393
Prevent warning in swapOrder(uint16 value)
5 years ago
Martchus
5e67a9b691
Make check target depend on .clang-format file
5 years ago
Martchus
2625f82e49
ios_base::failure workaround: Ensure c++config.h is included
5 years ago
Martchus
be4901ce2c
Add missing #include <function>
...
This fixes compilation using libc++ instead
of libstdc++
5 years ago
Martchus
dc73538170
Adjust ios_base::failure workaround for GCC 7
...
* Use new ABI under GCC >= 7
* See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
5 years ago
Martchus
5388337bcc
Fix compiling tests under 32-bit arch
5 years ago
Martchus
ecce539a18
Do not set global include dirs
...
TODO: Set include dirs on target level
5 years ago
Martchus
ac348ee3b9
Find cppunit via pkg-config
5 years ago
Martchus
13ac2305d5
Allow not to link tests against cppunit
5 years ago
Martchus
3bc1756425
Add Argument::varValueCount
5 years ago
Martchus
2e98e3bd11
testutils: Fix finding testfiles dir in pwd
5 years ago
Martchus
18fef23724
testutils: Add execHelperApp()
5 years ago
Martchus
cab1a76ecf
Allow printing iteratable objects
...
So those can be asserted using CPPUNIT_ASSERT_EQUAL
5 years ago
Martchus
3b74b817ec
Add trait to test for strings
5 years ago
Martchus
7faa51c10e
Test traits
5 years ago
Martchus
f827c2be00
Add trait to check whether type is iteratable
5 years ago
Martchus
db46948f2f
Apply clang-format
5 years ago
Martchus
53ff69130c
Set clang-format standard to Cpp11
...
* Prevents clang-format to mess up std::string
literals like "foo"s
* As side-effect is will now use e.g. A<A<int>>
instead of A<A<int> >
5 years ago
Martchus
04c1f98361
Format test code, too
5 years ago
Martchus
59e20b1043
Apply clang-format
5 years ago
Martchus
7e49d3994f
Allow skipping creation of tidy target
5 years ago
Martchus
2ef55c439c
Add tidy test
5 years ago
Martchus
7e0f65ed78
Call clang-format with all src files
5 years ago
Martchus
b74327d961
Move creation of check target to BasicConfig.cmake
...
* So other tests like tidy check can be added
* Even if there are no tests after all, the
check target shoudn't cause any problems
5 years ago
Martchus
0a4fc2d326
Document tidying/clang-format
5 years ago
Martchus
8799698f01
Adapt global.h.in to new coding style
5 years ago
Martchus
223ebd870b
Ignore .clang-format
...
This symlink will be automatically created when
invoking `make tidy`. It is required because I
don't know how to specify the path for the
.clang-format file direclty.
5 years ago
Martchus
d76ead0483
Add tidy target using clang-format
5 years ago
Martchus
c728f0ffe0
Add hash functions for chrono objects
5 years ago
Martchus
5679460302
Simplify DateTime::fromTimeStampGmt()
5 years ago
Martchus
452954dc1f
Add DateTime::exactGmtNow()
...
* Provides more precise wall-clock time
* Only available under UNIX so far
5 years ago
Martchus
ead0fadac3
Unset version info when not available
5 years ago
Martchus
6042336038
Allow checking whether external lib is used
5 years ago
Martchus
b8c2e79e3d
Use meta-data provided in CMake config for version info
...
* Don't set custom meta-data on targets
* It isn't exported anyways
* Remove version on application target because itcauses
CMake to create symlinks
5 years ago
Martchus
be03e5ad4c
Provide meta-data in CMake config
5 years ago
Martchus
412e725309
Append Git revision to version
...
* Append Git revision and ID of latest commit
to version displayed via --help
* Can be turned off via option
* Has no effect if the source dir is not
a Git checkout or Git is not installed
* Implements
https://github.com/Martchus/tageditor/issues/13
5 years ago
Martchus
91e5a8b0b0
Show version of used libraries in --help
...
* Include only own libraries and Qt 5 modules
so far
* First step to implement
https://github.com/Martchus/tageditor/issues/13
5 years ago
Martchus
bfa12a9870
Allow creation of header-only library
...
* Create interface target if only headers present
* Include workaround to show header files in Qt Creator
5 years ago
Martchus
2e0df8aa6a
Allow linking only tests in 3rdParty macros
...
So tagparser tests can link against OpenSSL
for computing checksums
5 years ago
Martchus
7c189b18e1
Allow nested operation arguments
...
eg. syncthingctl pwd rescan
5 years ago
Martchus
864605f5c8
Only assert unique names within same level
...
It might make sense to 'hide' arguments from
higher level if those wouldn't be combinable
anyways.
5 years ago
Martchus
c30011fe09
Fix missleading error message
...
Unknown arg is treated is causing fatal
error in this case and hence not ignored.
5 years ago
Martchus
71231c29da
Fix behavior on empty completion request
5 years ago
Martchus
f86a8b3700
Fix adding dependencies of install-mingw-w64 target
5 years ago
Martchus
cb82630665
Add general target for generating API doc
5 years ago
Martchus
663b31c5fe
Allow skipping install targets
...
* via variable META_NO_INSTALL_TARGETS
* since this is just to silence some warnings
no need to bump minor version
5 years ago
Martchus
daaedb7ba3
Fix issues in TestTarget.cmake
...
* Fix error message
* Improve comments
* Improve target names
* Fix working directory for check target
* Add info that calling enable_testing() on root
level is required for check target to work
* Create workingdir for tests under binary dir to
prevent polluting source dir
5 years ago