Commit graph

120 commits

Author SHA1 Message Date
2b63e70596 Fix #20
set_relative_date was failing if the resulting date was in the previous
day.
2018-08-22 01:54:46 +02:00
0c4acf1fba Fix #18
Following PR #19
2018-08-22 01:35:38 +02:00
09225ae041 Adds first tests for ttail_search_std_init and _ttail_search_closest_stdin 2018-03-04 12:11:35 +01:00
a05a5dda01 Bugfix in _ttail_search_closest_stdin() 2017-06-05 15:01:23 +02:00
bcecc4d5f1 Add test for ttail_search_std_init()
Add some usefull functions & macro in ttail_check.h for std tests.
2017-06-05 15:00:34 +02:00
abe01c0733 Add test for _ttail_file_search_from_end
And updated doxygen todo list
2017-06-05 13:52:52 +02:00
48280fa6d5 Bugfix in relative dates calculation 2017-06-01 14:30:03 +02:00
6e006b35bd Add comment for set_date_relative + ttail_check.h refactoring 2017-05-31 16:25:52 +02:00
050d81aeb2 Fix #16 Write tests for _ttail_set_date_relative()
And bugfixes in _ttail_set_date_relative() bad format detection
2017-05-31 16:07:39 +02:00
904369cbf0 Fix #14 Write tests for _ttail_file_sort() 2017-05-31 14:13:54 +02:00
3000e73bd1 Add debian/compat file 2017-05-21 13:43:13 +02:00
f8f4a6c11f Prepare beta release
Changing version number updating changelogs
2017-05-21 13:41:52 +02:00
2fc89b7c52 Set headers as noinst_HEADERS
In order to not install them.
2017-05-21 13:38:11 +02:00
3c2cfd848d Add forgotten return value test 2017-05-21 13:33:18 +02:00
235cd0cc8f Merge branch 'debian_pkg' 2017-05-21 13:17:34 +02:00
0bd8dd1e1f Fix #13 Sort files given as argument
Now ttail is able to sort logfiles given as arguement.
The sort function _ttail_file_sort place files with no valid date to the
end of the file list and is able to detect if some files overlaps.

No tests written...
2017-05-21 13:02:46 +02:00
a1d31a6d76 Release alpha 0.0.2 v0.0.2 2017-05-15 20:50:52 +02:00
768ac367d9 Fix #12 sorting options in help text
But not by alphabetical order :P
2017-05-15 20:40:25 +02:00
fc3d64c29b Manpage update 2017-05-15 20:34:53 +02:00
489f5b801c Enhancement & bugfix in #11 solution 2017-05-15 20:21:27 +02:00
cd35c78724 Fix #8 now unit test temporary files are removed 2017-05-15 20:09:59 +02:00
3e5304bf91 Fix #11
Not 100% sur of implementation. And the feature seems a bit useless..
2017-05-15 20:03:22 +02:00
bbaa6b84b4 Fix starts for #11
Adds the option -P --permissive.

Starts implementation for logfiles.

Now -P flag make ttail handle invalid files. When invalid file given the
minmax function set the file pointer and the minmax array to NULL.

May introduce bugs if the binary search function does not handles "holes"
in fp array or in minmax array...
2017-05-15 19:34:42 +02:00
42457370ba Enhancement in option parsing errors
Telling getopt to produce an error message by setting opterr to 1
2017-05-15 18:41:52 +02:00
d89f8a64e5 Fix #9 add nginx date format to ttail.h 2017-05-15 18:06:57 +02:00
4d2fed6c92 Check unit test framework can be disabled v0.0.1
using --disable-check configure option
2017-05-15 16:11:40 +02:00
ef1025bc0a README update 2017-05-15 15:18:30 +02:00
e314231033 Fix #7 correcting _ttail_search_closest_stdin() returned value 2017-05-15 15:10:07 +02:00
5876beb864 Manpage update & generation bugfix
The manpage update was broken. Now make docs updates the manpage.
2017-05-15 15:05:52 +02:00
0826bc3adb Updated README 2017-05-15 14:23:32 +02:00
491de41e54 Add manpage to git repo 2017-05-15 14:17:00 +02:00
3b330e114b Fix #4 Relative dates brakes format detection
Date detection on stdin enabled
2017-05-15 14:08:28 +02:00
aa31c07bf1 Add a new debug function 2017-05-15 13:45:14 +02:00
7dbc99e4a0 Fixing issue #4 for logfiles
Not done for stdin
2017-05-15 13:43:44 +02:00
4a0c3a8d7d Updated doxygen autotools integration
Attempt to make the doxygen version filter works with git
2017-05-15 13:33:16 +02:00
fe382fff5f ttail_format_guess() do not take ttail_t* as argument
Making this function usable by logfiles and stdin format autodetection
2017-05-11 12:59:51 +02:00
55ae3693aa Fix #6 now make dist produce a good tarball 2017-04-24 17:11:42 +02:00
6121cbfff5 First tests with debian packages 2017-04-24 16:58:22 +02:00
5af21265b0 Tests + bugfix for ttail_tm_cmp() function 2017-04-24 16:20:23 +02:00
014d5ffb1f Changed headers of _ttail_file_(next|start)_line() 2017-04-24 15:41:32 +02:00
9e1539a780 Add macros to define test suite & runner
Four macros were added :
 - TTAIL_CHECK_START(char *test_suite_str, char *test_case_str)
 - TTAIL_SET_FIXTURE(void (*setup)(), void (*teardown)())
 - TTAIL_ADD_TEST( libcheck_test test)
 - TTAIL_CHECK_END
2017-04-24 15:19:28 +02:00
7362e716a2 Updates .gitignore and Makefile.am
Now the doc in generated before the code compils
2017-04-24 14:19:06 +02:00
3a4fe6be94 Add tests for _ttail_norm_dates 2017-04-23 15:46:28 +02:00
22183a4d4b Splitting ttail search tests 2017-04-23 15:31:28 +02:00
1218a70822 Spliting ttail init tests 2017-04-23 13:36:14 +02:00
fe2367eb13 New tests organisation
tests/Makfile.am is now generated using tests/regen.sh .
bootstrap.sh has been updated.
Argument parsing tests are splitted
2017-04-23 13:33:27 +02:00
e92e62046e Renaming _ttail_file_search_from_end() 2017-04-23 11:50:03 +02:00
6734c8ad36 Preparing autoformat detection on loglines 2017-04-09 12:43:49 +02:00
8684cc7b38 Fix #5 GPL 2017-04-09 11:49:13 +02:00
da3327c614 Forgotten tests sample 2017-04-03 22:43:28 +02:00