Commit graph

52 commits

Author SHA1 Message Date
Thomas Lauf
c6aa8815a2 Make CMake/Make signal start of test suite run
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
3008e458e9 Update project to C++17
- Bump CMake to minimum version 3.8
- Set C++ standard to 17
- Remove CMAKE_LEGACY_CYGWIN_WIN32 compatibility mode
- Remove C++11 stuff
- Update documentation

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 08:41:07 +02:00
Thomas Lauf
20a8a4a4cc Cleanup CMake files
- Replace tabs with spaces
- Use lowercase for CMake commands
- Unify alignment
- Remove superfluous empty line
- Add space after CMake command

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-05-26 09:53:03 +02:00
Shaun Ruffell
d92ce2110f test: The tests depend on the documentation.
The help.t test wants to verify that some of the man pages exist.
Therefore we need to make sure the documentation is built, otherwise:

  $ git clean -ffdx .
  $ cmake -DCMAKE_BUILD_TYPE=Debug .
  $ make test

Will fail some of the help.t tests.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2021-04-10 22:52:04 +02:00
Thomas Lauf
65ef38658b Increase minimal CMake version
Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.
According to our test images all supported distributions have CMake > 3

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-12 10:50:39 +01:00
Shaun Ruffell
22dc0efa70 test: Add test to ensure Datafile throws when deleteInterval fails
Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-11 10:39:34 +02:00
Shaun Ruffell
eae8746df2 test: Add the timew binary as dependency of test target
If the timew binary changes, we should rebuild it before running
through the python tests.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
2020-08-11 10:39:34 +02:00
Thomas Lauf
63f230013a Detect whether a date is meant as range
- Add DatetimeParser::parse_range: If a date contains no time, it is assumed to be a fixed range, else an open range starting at given datetime
- Add tests for summary with named dates 'yesterday' and 'today'
- Remove closing of filter in CmdSummary.cpp
- Closes #333

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-06-28 20:52:43 +02:00
Thomas Lauf
368d033ce5 Rename atomic to AtomicFileTest
- Avoid possible clash with lib atomic on macOS, e.g. in /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:668

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-03-02 21:42:53 +01:00
Shaun Ruffell
8e99c07d85 Introduce AtomicFiles
Introduce AtomicFile and a test of this module to the code.

AtomicFile is like File, except all writes go to temporary files until
the class method finalize_all () is called and the temporary files are
copied over the real files. If any writes fail, like when there is no
more space on the filesystem, none of the files in the database will be
modified.

Since we need version 1.00 of libfiu, I have only added it to the debian
testing container, which includes libfiu-1.00 in the default repository.

Related to #155
2020-02-23 19:03:40 +01:00
Thomas Lauf
d974742654 Add a tag database 2018-09-07 10:13:22 +02:00
Janik Rabe
d2f0bc70c8 Do not set CMP0037 on CMake 3.11.0 and above
This policy is no longer necessary because CMake issue #16062, which
caused incorrect warnings to be shown, has been resolved in 3.11.0.
2018-09-07 10:11:36 +02:00
Paul Beckingham
6ade46085e Tests: Removed unnecessary platform.t 2017-04-08 13:41:25 -04:00
Paul Beckingham
26f2cc8ac4 Test: Added platform verification tests 2017-03-02 08:41:30 -05:00
Paul Beckingham
ca57bf91e3 Build: Migrated Lexer to libshared 2016-06-25 10:11:08 -04:00
Paul Beckingham
b5cf680730 Tests: Removed palette tests, which are now part of libshared 2016-04-30 21:00:39 -04:00
Paul Beckingham
627cda219e Tests: Broke up helper/data tests 2016-04-28 20:59:28 -04:00
Paul Beckingham
8f69e6f0ec Composite: Now relying on libshared version 2016-04-25 16:23:33 -04:00
Paul Beckingham
8113a4f24d Tests: Added quantizeTo15Minutes 2016-04-24 09:38:47 -04:00
Paul Beckingham
4176bf23d4 Range: Renamed Daterange to Range 2016-04-23 08:52:16 -04:00
Paul Beckingham
a73a95d7a1 Tests: Added Palette check 2016-04-22 23:41:54 -04:00
Paul Beckingham
ad8ed0466c Tests: Added Daterange 2016-04-16 08:52:11 -04:00
Paul Beckingham
aab7cd481a CMake: Added snotty comment about CMake bullshit 2016-04-13 16:34:14 -04:00
Paul Beckingham
6ca48808a8 Cleanup: Removed calls superceded by CLI 2016-04-03 17:46:49 -04:00
Paul Beckingham
68ba48e85f Cleanup: Removed unused files 2016-04-03 13:02:52 -04:00
Paul Beckingham
69483202fc Tests: Added composite tests 2016-03-29 22:48:59 -04:00
Paul Beckingham
2d0475f350 Tests: Added Exclusion tests 2016-03-27 23:51:54 -04:00
Paul Beckingham
ea5a5b743c Tests: Added getKeywords 2016-03-26 14:08:35 -04:00
Paul Beckingham
f50b3b4fc2 Tests: Added ::escape 2016-03-20 14:14:42 -04:00
Paul Beckingham
a33e5f01c5 Tests: Added Interval 2016-03-20 13:08:15 -04:00
Paul Beckingham
a21206bfb3 Build: Fixed text build problem 2016-03-17 16:36:41 -04:00
Paul Beckingham
96059d32bd Build: Updated common to shared 2016-03-15 22:45:53 -04:00
Paul Beckingham
b6ad3c741c JSON: Migrated to Common 2016-03-01 01:38:13 -05:00
Paul Beckingham
07190f4f65 Tests: Added json_test, a test rig for parsing external JSON files 2016-03-01 00:12:18 -05:00
Paul Beckingham
50a1411b68 Tests: Added JSON parsing tests 2016-03-01 00:09:38 -05:00
Paul Beckingham
eaab265de2 Test: Copied test scripts to build dir 2016-02-06 12:20:26 -05:00
Paul Beckingham
5690fb784a Pig: Promoted Pig to common.git 2016-01-19 01:10:41 -05:00
Paul Beckingham
77f51a41bd Build: Migrated to external common lib 2016-01-18 22:52:01 -05:00
Paul Beckingham
f4b3f5ea87 Tests: Added unicode tests 2016-01-14 17:26:34 -05:00
Paul Beckingham
6d53cb7c95 Tests: Added Table tests 2016-01-05 16:57:07 -05:00
Paul Beckingham
26693a50b5 Tests: Added framework for Pig tests 2015-12-29 13:13:03 -05:00
Paul Beckingham
925e8ec14b Tests: Added LR0 test framework 2015-12-23 09:23:57 -05:00
Paul Beckingham
dcc1a3c451 Tests: Added rules test framework 2015-12-23 09:23:11 -05:00
Paul Beckingham
eb6932c81a Tests: Added Grammar test 2015-12-22 09:40:50 -05:00
Paul Beckingham
f637a10078 Common: Added liѕtDiff template function 2015-12-22 08:45:40 -05:00
Paul Beckingham
d4420f1b22 Common: Added FS + tests 2015-12-20 15:39:44 -05:00
Paul Beckingham
a97f819423 Tests: Added Lexer tests 2015-12-20 12:50:41 -05:00
Paul Beckingham
2c181ec07e Test: Added tests for common/text.cpp 2015-12-20 11:21:33 -05:00
Paul Beckingham
648517f608 Test: Added rx.t 2015-12-20 10:51:30 -05:00
Paul Beckingham
a4b3f0c84a Common: Relocated reusable object to 'common' dir 2015-12-20 09:46:34 -05:00