Török Edvin
e4a0f2c94f
fix compiler warnings (bb #1872 , bb #1934 , bb #1935 )
15 years ago
Török Edvin
acba3cf51b
Prevent check from hanging/crashing when there is a version mismatch.
...
Show an error on version mismatch, 0.9.8 library with header
from 0.9.6 causes hangs/crashes.
16 years ago
Török Edvin
41423d3836
Reenable unit tests.
16 years ago
Török Edvin
646395bb44
Fix distcheck.
16 years ago
Török Edvin
d99c0c4245
bytecode: add unit tests and ChangeLog.
16 years ago
Török Edvin
4e46d65d39
use sha256 instead of md5 in phishcheck.
...
move sha256 to libclamav.
add more tests.
git-svn: trunk@4822
17 years ago
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
17 years ago
Török Edvin
c5944b5420
add missing include
...
git-svn: trunk@4653
17 years ago
Török Edvin
7b57a8338e
add dsig unit test
...
git-svn: trunk@4652
17 years ago
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
17 years ago
Török Edvin
15adbc849a
update unit tests to new API.
...
Initialization order changed, make sure stats_tls_key is initialized.
git-svn: trunk@4387
17 years ago
Török Edvin
7866b37c6b
mpool debugging
...
s/USE_MEMPOOL/USE_MPOOL/
git-svn: trunk@4329
17 years ago
Török Edvin
563582a1ec
fix unit tests when mpool is activated
...
git-svn: trunk@4323
17 years ago
Török Edvin
d5d06eccaa
support building with older versions of check
...
git-svn: trunk@4289
17 years ago
Török Edvin
b105842c5c
when --disable-gcc-vcheck is set, set CFLAGS to O0 and
...
append -broken-compiler to the VERSION (bb #684 )
introduce VERSION_SUFFIX for easier handling, and convert -exp to use it
git-svn: trunk@4239
17 years ago
Török Edvin
e0ac8b2093
Fix unit test timeout on slower boxes.
...
Don't use fail_unless in a loop, because it actually calls fail_unless each time,
and we had a 512k buffer to compare.
git-svn: trunk@4205
17 years ago
Török Edvin
6a53bbdf9a
JS normalizer fixes (bb #1155 )
...
git-svn: trunk@4202
17 years ago
Török Edvin
1279faf61e
add htmlnorm unit tests and fix jsnorm space normalization
...
git-svn: trunk@4201
17 years ago
Török Edvin
15d67313c4
allow 'make check' to work even if check is not installed
...
by skipping checks that require it. (bb #1157 )
if configure is not able to find check, you can use
--with-libcheck-prefix, instead of CHECK_CFLAGS and
CHECK_LIBS.
remove accidental AC_DEFINE GETHOSTBYNAME_R_6 from last commit.
git-svn: trunk@4172
17 years ago
Török Edvin
5cd3f734a9
add lots of warnings flags to 'make distcheck',
...
and turn some warnings into errors (bb #1092 )
git-svn: trunk@4129
17 years ago
aCaB
abbd1d3673
typo
...
git-svn: trunk@4122
17 years ago
aCaB
61b295f494
spam if lcheck is too old
...
git-svn: trunk@4121
17 years ago
aCaB
99f74adcc1
check for check
...
git-svn: trunk@4098
17 years ago
Tomasz Kojm
ec285505da
unit_tests/check_matchers.c: add tests for cli_(ac|bm)_scanbuff
...
git-svn: trunk@4091
17 years ago
Török Edvin
add738d28c
portability fixes
...
if there is a version.h.static use that instead of output from svnversion
use get_version(), tools outside libclamav shouldn't rely on libclamav version
exception: clamconf itself needs both, and the milter shows both
git-svn: trunk@4076
17 years ago
aCaB
5e07cfed01
unit tests for uniq
...
git-svn: trunk@4074
17 years ago
Török Edvin
04f9bedf4b
use SVN revision in version info
...
TODO: replace every remaining use of VERSION with cl_retver()
git-svn: trunk@4070
17 years ago
Török Edvin
2b9e5d2971
drop a redundant check from phishcheck.
...
enable debug output in unit tests, they are dumped to
unit_tests/test-stderr.log.
git-svn: trunk@4028
17 years ago
Török Edvin
a497dce52d
fix compiler warnings
...
constify
git-svn: trunk@4019
17 years ago
Török Edvin
9ee053feab
handle multiple matches (bb #1110 )
...
update tests for regex, reenable test
git-svn: trunk@4018
17 years ago
aCaB
c92b0057f7
test_disasm
...
git-svn: trunk@4009
17 years ago
Török Edvin
3dcc2d784e
more tests for regex
...
run unit-tests under valgrind if available.
git-svn: trunk@3990
17 years ago
Török Edvin
5ee56e4103
split up regex_list.
...
begin testing for regex_suffix
git-svn: trunk@3985
17 years ago
Török Edvin
ea5c80854b
fix compiler warnings
...
restore cli_debug state after test
git-svn: trunk@3959
17 years ago
Török Edvin
377a2330a1
more unit tests for js-norm
...
fix js-norm bugs discovered during unit testing
git-svn: trunk@3951
17 years ago
Török Edvin
a39b29cbfe
avoid misleading message when unit tests are disabled (bb #1090 )
...
fix some compiler warnings
git-svn: trunk@3933
17 years ago
Török Edvin
eb2901515b
move cli_unescape, and cli_textbuffer_append_normalize to str.c
...
add unit-test for cli_textbuffer_append_normalize
fix a bug in cli_textbuffer_append_normalize shown by unit-test
git-svn: trunk@3930
17 years ago
Török Edvin
4a6ade4489
add all needed files to EXTRA_DIST (to fix make distcheck)
...
create unit tests for js normalizer
cleanups
git-svn: trunk@3924
17 years ago
Török Edvin
2565ef493a
fix attribute packed handling.
...
Add testcase for readint16
git-svn: trunk@3768
17 years ago
Török Edvin
c47e43ce35
testcase for bb #890 .
...
It fails on gcc-4.3 -O3 (-msse2) currently.
git-svn: trunk@3764
17 years ago
Tomasz Kojm
fe473bcb07
add initial support for unit tests
...
git-svn: trunk@3710
17 years ago