Yann Weber
491de41e54
Add manpage to git repo
il y a 7 ans
Yann Weber
3b330e114b
Fix #4 Relative dates brakes format detection
Date detection on stdin enabled
il y a 7 ans
Yann Weber
aa31c07bf1
Add a new debug function
il y a 7 ans
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
il y a 7 ans
Yann Weber
4a0c3a8d7d
Updated doxygen autotools integration
Attempt to make the doxygen version filter works with git
il y a 7 ans
Yann Weber
fe382fff5f
ttail_format_guess() do not take ttail_t* as argument
Making this function usable by logfiles and stdin format autodetection
il y a 7 ans
Yann Weber
55ae3693aa
Fix #6 now make dist produce a good tarball
il y a 7 ans
Yann Weber
5af21265b0
Tests + bugfix for ttail_tm_cmp() function
il y a 7 ans
Yann Weber
014d5ffb1f
Changed headers of _ttail_file_(next|start)_line()
il y a 7 ans
Yann Weber
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
il y a 7 ans
Yann Weber
7362e716a2
Updates .gitignore and Makefile.am
Now the doc in generated before the code compils
il y a 7 ans
Yann Weber
3a4fe6be94
Add tests for _ttail_norm_dates
il y a 7 ans
Yann Weber
22183a4d4b
Splitting ttail search tests
il y a 7 ans
Yann Weber
1218a70822
Spliting ttail init tests
il y a 7 ans
Yann Weber
fe2367eb13
New tests organisation
tests/Makfile.am is now generated using tests/regen.sh .
bootstrap.sh has been updated.
Argument parsing tests are splitted
il y a 7 ans
Yann Weber
e92e62046e
Renaming _ttail_file_search_from_end()
il y a 7 ans
Yann Weber
6734c8ad36
Preparing autoformat detection on loglines
il y a 7 ans
Yann Weber
8684cc7b38
Fix #5 GPL
il y a 7 ans
Yann Weber
da3327c614
Forgotten tests sample
il y a 7 ans
Yann Weber
67e9aa752a
Fix #2 Implements stdin operations
Seems to work with stdin
il y a 7 ans
Yann Weber
376f585004
Removed -ansi gcc option from autotools
il y a 7 ans
Yann Weber
e27ad730c5
Generalization of ttail_getline() macro
il y a 7 ans
Yann Weber
5699d49a2e
Add a docs target to make
Now make has a docs target to enforce docs generation
il y a 7 ans
Yann Weber
04f0ddd897
Add relative date documentation to manpage
il y a 7 ans
Yann Weber
5e527d0f3b
Fix #3 Add support for relative dates
Date formats
Two date formats are allowed for dates arguments (-d , -m) :
- the same than in the logfile
- relative from now prefixing the argument with '#-' and given a unit
- y : year
- M : Month
- d : day
- h : hour
- m : min
- s : sec
il y a 7 ans
Yann Weber
9586697f56
Updates in manpage & autotools
il y a 7 ans
Yann Weber
2f1458f3f3
Add ttail manpage
il y a 7 ans
Yann Weber
ed5338da15
Updated tests
il y a 7 ans
Yann Weber
710515fdab
Bugfix on invalid dateformat
Segfault was thrown when no files were found with matching date
il y a 7 ans
Yann Weber
bb7a4e7d65
Fix #1
Now ttail return an error if the whole date given in argument is not
matched by the format
il y a 7 ans
Yann Weber
833b2dae19
Bugfix & enhancement
Now an error is triggered if date-min > date-max
Bugfix on date-max searching (on multiple loglines with a date == date-max)
il y a 7 ans
Yann Weber
2283a16991
Bugfix on datemax > max date
il y a 7 ans
Yann Weber
1207a9f742
Better error handling
Add some perror calls
il y a 7 ans
Yann Weber
6ed34f4e0f
Tests update
il y a 7 ans
Yann Weber
9d5c000dfa
Bugfix & headers update
Deleted old argument struct tm* from search function (now using infos
stored in ttail_t.session )
il y a 7 ans
Yann Weber
782f70e7fc
Enhancement & changes in arguments parsing
add a -h --help option, deleted -l --logfile options
+ spliting the ttail_search_closest() & ttail_search_print_res() functions
il y a 7 ans
Yann Weber
e3e636e298
Implements support for max-date
il y a 7 ans
Yann Weber
3ca964c51e
Implements help & usage
il y a 7 ans
Yann Weber
a234df34c9
Add ttail_free() call in main
il y a 7 ans
Yann Weber
93415c6adb
Enhancement in ttail init checking function
To handle case where none of the file given as argument is readable
il y a 7 ans
Yann Weber
fd5d6cad18
Bugfix & function implementation
Now we have a running minimal ttail :
src/ttail -d "Mar 6 00:29" -f '%B%n%d %H:%M' -l tests/samples/1.log -l tests/samples/1.1.log
il y a 7 ans
Yann Weber
9f5cf21919
Tests + bugfix
Testing ttail_search_closest_files() on multiple files
il y a 7 ans
Yann Weber
5e5f730815
Bugfix + tests for ttail_search_files functions
il y a 7 ans
Yann Weber
9b99e070a9
Change utils on struct tm
Enhancement in comparison behavior + print function
il y a 7 ans
Yann Weber
533bb6b52e
Adding missing arguments to search functions
il y a 7 ans
Yann Weber
5f7d34f9de
[broken] Files searching function 1st implementation
untested
il y a 7 ans
Yann Weber
71dc7b9d3b
Updated the search_closest_files function
il y a 7 ans
Yann Weber
261248f6a7
Add some inline functions + utility function
Set some function inlune and implement an utility function
for file searching functions.
il y a 7 ans
Yann Weber
e371b34f7d
Make some arg const + add autoconf check
il y a 7 ans
Yann Weber
5ccb971b71
Implement the _ttail_search_file_sorted() function
Telling if the logfile array is sorted
il y a 7 ans