Török Edvin
d99c0c4245
bytecode: add unit tests and ChangeLog.
2009-07-13 19:40:25 +03:00
Török Edvin
3e2b50465b
add some unit tests for the new clamd protocol
...
git-svn: trunk@4757
2009-02-12 17:25:50 +00:00
Török Edvin
b1deacbc62
fix paths
...
git-svn: trunk@4401
2008-11-13 16:00:25 +00:00
Török Edvin
a66b62f88b
handle unfinishes string tokens in JS parser
...
git-svn: trunk@4247
2008-10-11 10:27:27 +00:00
Török Edvin
133dd2e940
When RAR is disabled, allow make check to succeed, and print only a warning (bb #1212 )
...
* ChangeLog:
git-svn: trunk@4233
2008-10-07 19:35:41 +00:00
Török Edvin
ff9845c02b
--phishing-ssl and --phishing-cloak should work even if the host is not in the .pdb (bb #1211 )
...
git-svn: trunk@4220
2008-10-02 18:55:24 +00:00
Török Edvin
ab90350cc3
fix make distcheck: add files to extradist
...
git-svn: trunk@4209
2008-09-27 21:16:21 +00:00
Török Edvin
1279faf61e
add htmlnorm unit tests and fix jsnorm space normalization
...
git-svn: trunk@4201
2008-09-23 20:52:22 +00:00
Török Edvin
650ea26e62
portability fixes
...
git-svn: trunk@4194
2008-09-22 10:28:14 +00:00
Török Edvin
81040d73db
bb #1160
...
git-svn: trunk@4183
2008-09-16 18:13:07 +00:00
Török Edvin
f45111e58f
use abs_scrdir
...
run clamd tests in parallel by using a different test subdir for each
git-svn: trunk@4181
2008-09-16 10:32:25 +00:00
Török Edvin
c82d362edc
add electric-fence/duma tests if available (bb #1092 )
...
git-svn: trunk@4176
2008-09-15 09:57:02 +00:00
Török Edvin
b8edbb880d
clamd/thrmgr.c: fix valgrind warning (bb #1184 )
...
unit_tests: add more valgrind tests, add a reload and a multiscan test (bb #1092 )
git-svn: trunk@4175
2008-09-14 14:15:39 +00:00
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
2008-09-11 11:02:12 +00:00
Tomasz Kojm
ec285505da
unit_tests/check_matchers.c: add tests for cli_(ac|bm)_scanbuff
...
git-svn: trunk@4091
2008-08-07 12:40:41 +00:00
Török Edvin
dfc0c031cb
if there is a version.h.static use that instead of output from svnversion
...
Makefile portability fixes
fix assert failure
add lcov to top level makefile
cleanup after lcov when you run make clean (bb #1112 )
fix parsing of [^.] character class
fix parsing of [r-t]
fix handling of @ for URL hashes
fix handling of &# inside URLs
drop some dead code
more unit tests for str
portability fixes
git-svn: trunk@4078
2008-08-04 12:44:16 +00:00
aCaB
5e07cfed01
unit tests for uniq
...
git-svn: trunk@4074
2008-08-04 00:01:14 +00:00
Török Edvin
b6927a7c77
fix 'make distcheck':
...
add missing files to EXTRA_DIST, SOURCES
update CLEANFILES
.conf files and .cvd files are not removed during uninstall on purpose =>
whitelist them in distuninstallcheck
git-svn: trunk@4040
2008-07-31 13:13:48 +00:00
Török Edvin
7f0d1148d6
clamd, clamscan, libclamav: new option HeuristicScanPrecedence (bb #649 )
...
docs/: update docs for HeuristicScanPrecedence and ScanPartialMessages
unit_tests/: add test for HeuristicScanPrecedence
git-svn: trunk@4037
2008-07-31 10:51:46 +00:00
aCaB
9476b6ad2b
lcov works
...
git-svn: trunk@4012
2008-07-28 23:29:34 +00:00
aCaB
c92b0057f7
test_disasm
...
git-svn: trunk@4009
2008-07-28 19:22:15 +00:00
Török Edvin
5a622715ee
fix EXTRA_DIST
...
git-svn: trunk@3992
2008-07-25 16:07:55 +00:00
Török Edvin
81361c477a
skip valgrind tests for 'make lcov'
...
git-svn: trunk@3991
2008-07-25 16:06:04 +00:00
Török Edvin
3dcc2d784e
more tests for regex
...
run unit-tests under valgrind if available.
git-svn: trunk@3990
2008-07-25 16:03:04 +00:00
Török Edvin
5ee56e4103
split up regex_list.
...
begin testing for regex_suffix
git-svn: trunk@3985
2008-07-24 18:48:31 +00:00
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
2008-07-16 11:44:32 +00:00
Török Edvin
db1a202ac3
fix CLEANFILES, add rule for clamscan test
...
git-svn: trunk@3961
2008-07-16 11:42:24 +00:00
Török Edvin
26e5626078
avoid using GNUmake specific rules
...
git-svn: trunk@3960
2008-07-16 11:37:37 +00:00
Török Edvin
419597717e
ensure test/ files are created before running clamscan/clamd checks
...
git-svn: trunk@3957
2008-07-16 09:01:38 +00:00
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
2008-07-15 15:50:50 +00:00
Török Edvin
377a2330a1
more unit tests for js-norm
...
fix js-norm bugs discovered during unit testing
git-svn: trunk@3951
2008-07-15 14:31:33 +00:00
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
2008-07-10 17:08:41 +00:00
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
2008-07-10 10:29:29 +00:00
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
2008-07-08 19:02:15 +00:00
Török Edvin
e5b0783922
-lcheck needs to be conditional, use @LCHECK@.
...
Regenerate Makefiles.
git-svn: trunk@3774
2008-04-08 12:57:55 +00:00
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
2008-04-08 12:40:45 +00:00
Török Edvin
bc33dd4ce8
fix typo that caused 'make tags' to fail.
...
git-svn: trunk@3756
2008-04-03 12:45:44 +00:00
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
2008-03-20 22:42:25 +00:00
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
2008-03-20 22:29:12 +00:00
Tomasz Kojm
fe473bcb07
add initial support for unit tests
...
git-svn: trunk@3710
2008-03-13 10:44:34 +00:00