Török Edvin
5a622715ee
fix EXTRA_DIST
...
git-svn: trunk@3992
17 years ago
Török Edvin
81361c477a
skip valgrind tests for 'make lcov'
...
git-svn: trunk@3991
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
82167b0a77
remove remaining CL_DEBUG, and add missing file
...
git-svn: trunk@3989
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
73464bf870
EXTRA_DIST must be unconditional
...
there should be a CLEANFILES when ENABLE_COVERAGE is false too
git-svn: trunk@3962
17 years ago
Török Edvin
db1a202ac3
fix CLEANFILES, add rule for clamscan test
...
git-svn: trunk@3961
17 years ago
Török Edvin
26e5626078
avoid using GNUmake specific rules
...
git-svn: trunk@3960
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
533e76aa5e
cleanup
...
some more unit tests
git-svn: trunk@3958
17 years ago
Török Edvin
419597717e
ensure test/ files are created before running clamscan/clamd checks
...
git-svn: trunk@3957
17 years ago
Török Edvin
2a75d710e0
fix bashism in script
...
git-svn: trunk@3954
17 years ago
Török Edvin
d1d558c944
use pkg-config to locate check, if available (bb #1093 )
...
make --enable-coverage depends on unit tests being activated
fix a typo in bzip2 configure check
remove temporary log files on make clean
git-svn: trunk@3953
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
5be3029f8f
fix crash in js parser
...
fix configure test for check: if it is not available, and we didn't pass
--enable-check, do not complain
add unit test for jsnorm bug
git-svn: trunk@3949
17 years ago
Török Edvin
82ff41a969
be silent when file doesn't exist
...
git-svn: trunk@3939
17 years ago
Török Edvin
d5db8faf3b
useless code
...
git-svn: trunk@3938
17 years ago
Török Edvin
53ffc6c781
fix clamd test config.
...
unit tests succeed now.
git-svn: trunk@3937
17 years ago
Török Edvin
232c4b7016
add unit tests for binaries
...
enable unit tests by default (if check is available)
add --enable-coverage to run gcov/lcov
add --enable-tests-install to install test files
git-svn: trunk@3935
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
e3c912e174
add missing file
...
git-svn: trunk@3931
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
37e6472959
more unit tests for js normalizer
...
git-svn: trunk@3925
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
fd08e02ea3
add Javascript normalizer (not yet enabled)
...
git-svn: trunk@3917
17 years ago
Török Edvin
725a296922
build system: add configure checks for FD passing
...
m4/fdpassing.m4: move all FD passing checks here
clamd/session.[ch], scanner.[ch]:
contrib/clamd_fdscan:
add rfc2292/bsd4.4 style file descriptor passing support
this code is from Marc Balmer <marc*msys.ch>, with some portability
fixes applied
git-svn: trunk@3849
17 years ago
Török Edvin
e5b0783922
-lcheck needs to be conditional, use @LCHECK@.
...
Regenerate Makefiles.
git-svn: trunk@3774
17 years ago
Török Edvin
71a282f021
AC_CHECK_LIB 3rd argument was empty, and this causes '-lcheck' to be added to LIBS.
...
This caused all executables to be linked against libcheck on some platforms.
We only need to link with libcheck the unit-test, so avoid this by specifying a command as 3rd arg.
Regenerate configure & Makefiles.
git-svn: trunk@3773
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
Török Edvin
bc33dd4ce8
fix typo that caused 'make tags' to fail.
...
git-svn: trunk@3756
17 years ago
Török Edvin
549db571c7
use LDADD, and add @THREAD_LIBS@ last. This way it works on both Linux and OpenBSD.
...
git-svn: trunk@3733
17 years ago
Török Edvin
0d92372ec6
OpenBSD uses -pthread, we explicitly need to add @THREAD_LIBS@ to linker line.
...
Use LIBS, because LDADD gets confused by -pthread.
git-svn: trunk@3732
17 years ago
Tomasz Kojm
fe473bcb07
add initial support for unit tests
...
git-svn: trunk@3710
17 years ago