Yann Weber
2fc89b7c52
Set headers as noinst_HEADERS
In order to not install them.
7 anos atrás
Yann Weber
3c2cfd848d
Add forgotten return value test
7 anos atrás
Yann Weber
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...
7 anos atrás
Yann Weber
cd35c78724
Fix #8 now unit test temporary files are removed
7 anos atrás
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
7 anos atrás
Yann Weber
fe382fff5f
ttail_format_guess() do not take ttail_t* as argument
Making this function usable by logfiles and stdin format autodetection
7 anos atrás
Yann Weber
55ae3693aa
Fix #6 now make dist produce a good tarball
7 anos atrás
Yann Weber
5af21265b0
Tests + bugfix for ttail_tm_cmp() function
7 anos atrás
Yann Weber
014d5ffb1f
Changed headers of _ttail_file_(next|start)_line()
7 anos atrás
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
7 anos atrás
Yann Weber
3a4fe6be94
Add tests for _ttail_norm_dates
7 anos atrás
Yann Weber
22183a4d4b
Splitting ttail search tests
7 anos atrás
Yann Weber
1218a70822
Spliting ttail init tests
7 anos atrás
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
7 anos atrás
Yann Weber
6734c8ad36
Preparing autoformat detection on loglines
7 anos atrás
Yann Weber
da3327c614
Forgotten tests sample
7 anos atrás
Yann Weber
ed5338da15
Updated tests
7 anos atrás
Yann Weber
6ed34f4e0f
Tests update
7 anos atrás
Yann Weber
93415c6adb
Enhancement in ttail init checking function
To handle case where none of the file given as argument is readable
7 anos atrás
Yann Weber
9f5cf21919
Tests + bugfix
Testing ttail_search_closest_files() on multiple files
7 anos atrás
Yann Weber
5e5f730815
Bugfix + tests for ttail_search_files functions
7 anos atrás
Yann Weber
533bb6b52e
Adding missing arguments to search functions
7 anos atrás
Yann Weber
71dc7b9d3b
Updated the search_closest_files function
7 anos atrás
Yann Weber
261248f6a7
Add some inline functions + utility function
Set some function inlune and implement an utility function
for file searching functions.
7 anos atrás
Yann Weber
a01866eea7
Implements a struct tmp comparison function
7 anos atrás
Yann Weber
55b331a15e
Add tests on ttail_logline2date() function
7 anos atrás
Yann Weber
876cc00dec
Bugfixes in logfile minmax + tests update
7 anos atrás
Yann Weber
a4c65684bf
Implement & use a ttail_set_fmt() + tests
7 anos atrás
Yann Weber
cacdfc3534
Memory leak fixes
7 anos atrás
Yann Weber
5de36b3ecc
Implements logline subst + tests
7 anos atrás
Yann Weber
defd1864d6
Add doxygen support
7 anos atrás
Yann Weber
ce41eddb7a
Add another prefix subst method + tests
Now we can specify a constant length to cut
7 anos atrás
Yann Weber
b0b9e0a77e
Move options declaration + warn fixes
7 anos atrás
Yann Weber
89739fc1e6
**temporary commit**
7 anos atrás
Yann Weber
92d5f72ddc
Bugfix + tests
7 anos atrás
Yann Weber
01c295d459
Code cleaning, updated tests + getline wrapper
The getline wrapper will allow to use getline without calling malloc
and free all the time
7 anos atrás
Yann Weber
b74ee6957f
Implemented 2 utility functions + tests
7 anos atrás
Yann Weber
2ff86aadef
File spliting
7 anos atrás
Yann Weber
54cdb23b1d
Search file init tests enhancement
7 anos atrás
Yann Weber
3f0432e41a
Now we only generate 1 libttail.a file
7 anos atrás
Yann Weber
0080357465
Updated tests
7 anos atrás
Yann Weber
26f51ae8a6
Started to implement file search op
7 anos atrás
Yann Weber
e46400754a
Starting to write ttail_search + tests
7 anos atrás
Yann Weber
2a80bded28
File splitting
7 anos atrás
Yann Weber
ab53a6a6b9
Implemented ttail_init_check() + tests
7 anos atrás
Yann Weber
038730b980
Implements ttail_set_date() + tests
7 anos atrás
Yann Weber
fa815adb0c
Add date guessing feature + tests
7 anos atrás
Yann Weber
90eede17bd
Enhancement bugfix + tests update
7 anos atrás
Yann Weber
dbd70a3de6
Tests updates
7 anos atrás
Yann Weber
87bba12a12
Add tests + bugfixes
7 anos atrás