Yann Weber
2b63e70596
Fix #20
set_relative_date was failing if the resulting date was in the previous
day.
преди 6 години
Yann Weber
09225ae041
Adds first tests for ttail_search_std_init and _ttail_search_closest_stdin
преди 6 години
Yann Weber
bcecc4d5f1
Add test for ttail_search_std_init()
Add some usefull functions & macro in ttail_check.h for std tests.
преди 7 години
Yann Weber
abe01c0733
Add test for _ttail_file_search_from_end
And updated doxygen todo list
преди 7 години
Yann Weber
6e006b35bd
Add comment for set_date_relative + ttail_check.h refactoring
преди 7 години
Yann Weber
050d81aeb2
Fix #16 Write tests for _ttail_set_date_relative()
And bugfixes in _ttail_set_date_relative() bad format detection
преди 7 години
Yann Weber
904369cbf0
Fix #14 Write tests for _ttail_file_sort()
преди 7 години
Yann Weber
2fc89b7c52
Set headers as noinst_HEADERS
In order to not install them.
преди 7 години
Yann Weber
3c2cfd848d
Add forgotten return value test
преди 7 години
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 години
Yann Weber
cd35c78724
Fix #8 now unit test temporary files are removed
преди 7 години
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
преди 7 години
Yann Weber
fe382fff5f
ttail_format_guess() do not take ttail_t* as argument
Making this function usable by logfiles and stdin format autodetection
преди 7 години
Yann Weber
55ae3693aa
Fix #6 now make dist produce a good tarball
преди 7 години
Yann Weber
5af21265b0
Tests + bugfix for ttail_tm_cmp() function
преди 7 години
Yann Weber
014d5ffb1f
Changed headers of _ttail_file_(next|start)_line()
преди 7 години
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 години
Yann Weber
3a4fe6be94
Add tests for _ttail_norm_dates
преди 7 години
Yann Weber
22183a4d4b
Splitting ttail search tests
преди 7 години
Yann Weber
1218a70822
Spliting ttail init tests
преди 7 години
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 години
Yann Weber
6734c8ad36
Preparing autoformat detection on loglines
преди 7 години
Yann Weber
da3327c614
Forgotten tests sample
преди 7 години
Yann Weber
ed5338da15
Updated tests
преди 7 години
Yann Weber
6ed34f4e0f
Tests update
преди 7 години
Yann Weber
93415c6adb
Enhancement in ttail init checking function
To handle case where none of the file given as argument is readable
преди 7 години
Yann Weber
9f5cf21919
Tests + bugfix
Testing ttail_search_closest_files() on multiple files
преди 7 години
Yann Weber
5e5f730815
Bugfix + tests for ttail_search_files functions
преди 7 години
Yann Weber
533bb6b52e
Adding missing arguments to search functions
преди 7 години
Yann Weber
71dc7b9d3b
Updated the search_closest_files function
преди 7 години
Yann Weber
261248f6a7
Add some inline functions + utility function
Set some function inlune and implement an utility function
for file searching functions.
преди 7 години
Yann Weber
a01866eea7
Implements a struct tmp comparison function
преди 7 години
Yann Weber
55b331a15e
Add tests on ttail_logline2date() function
преди 7 години
Yann Weber
876cc00dec
Bugfixes in logfile minmax + tests update
преди 7 години
Yann Weber
a4c65684bf
Implement & use a ttail_set_fmt() + tests
преди 7 години
Yann Weber
cacdfc3534
Memory leak fixes
преди 7 години
Yann Weber
5de36b3ecc
Implements logline subst + tests
преди 7 години
Yann Weber
defd1864d6
Add doxygen support
преди 7 години
Yann Weber
ce41eddb7a
Add another prefix subst method + tests
Now we can specify a constant length to cut
преди 7 години
Yann Weber
b0b9e0a77e
Move options declaration + warn fixes
преди 7 години
Yann Weber
89739fc1e6
**temporary commit**
преди 7 години
Yann Weber
92d5f72ddc
Bugfix + tests
преди 7 години
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 години
Yann Weber
b74ee6957f
Implemented 2 utility functions + tests
преди 7 години
Yann Weber
2ff86aadef
File spliting
преди 7 години
Yann Weber
54cdb23b1d
Search file init tests enhancement
преди 7 години
Yann Weber
3f0432e41a
Now we only generate 1 libttail.a file
преди 7 години
Yann Weber
0080357465
Updated tests
преди 7 години
Yann Weber
26f51ae8a6
Started to implement file search op
преди 7 години
Yann Weber
e46400754a
Starting to write ttail_search + tests
преди 7 години