Shawn Webb
60d8d2c352
Move all the crypto API to clamav.h
2014-07-01 19:38:01 -04:00
Shawn Webb
849cdc78c9
Clean up the XML parser in the unit tests
2014-06-30 16:35:48 -04:00
Shawn Webb
f9afc3092f
Cleanup OpenSSL on program exit
2014-05-09 17:14:21 -04:00
Kevin Lin
f4f331ae26
unit_tests: fixed testing involving optional features: unrar. bzip2, and xml
2014-03-18 17:23:27 -04:00
Steven Morgan
97fd85d1f3
bz#10534: add patch from Scott Kitterman/Sebastian Andrzej Siewior for make check unit testing when unrar is disabled. Rework for 0.98.2.
2014-03-13 12:50:30 -04:00
Shawn Webb
da6e06dd68
Provide further abstractions to the OpenSSL integration work
2014-02-28 12:12:30 -05:00
Shawn Webb
f077c6174f
Fix some race conditions. Fix some memory leaks.
2014-02-13 13:05:50 -05:00
Shawn Webb
b2e7c931d0
Use OpenSSL for hashing.
2014-02-08 00:31:12 -05:00
Steven Morgan
b02190b40c
Dynamic fpu endian detection for remaining unit tests and removal of fpu_words_bigendian configuration option and artifacts.
2013-11-11 18:00:58 -05:00
Steven Morgan
04ad685477
Fixes for unit tests when autoit ea06 unavailable
2013-11-04 12:14:19 -05:00
Steven Morgan
a393d99922
convert unit test check_clamav to runtime fpu endian detection.
2013-10-31 15:41:38 -04:00
Shawn Webb
0f1e9fa0b0
Fix buildbot
2013-10-12 15:09:26 -04:00
Shawn Webb
f0f3fe69b8
bb#9174 - Skip scanning bz2 files in unit tests if bz2 support is disabled
2013-10-11 16:51:41 -04:00
David Raynor
e8b638342a
bb#6038: fix compile warning in unit test code due to type mismatch
2012-11-06 10:35:10 -05:00
Steve Morgan
6ad45a2931
add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and clamscan with unit tests
2012-10-18 14:12:58 -07:00
Shawn webb
a2a004df25
BB#3737 - Value too large for specified data type
...
Create compile-time preprocessor defines for switching from calling
stat() to stat64(). Add --enable-stat64 switch in configure script.
2012-07-16 15:36:49 -04:00
Török Edvin
b32ad8572c
disable unit tests that need _i for old check versions.
2012-01-05 12:59:18 +02:00
Török Edvin
0d54f27143
fix small leak in unit tests
2012-01-04 15:58:30 +02:00
Török Edvin
569bdeebe8
Merge branch 'fmapify'
...
* fmapify: (54 commits)
workaround for unrar not supporting fmap.
stfu on large lzma allocs
handle 7z encryption detection albeit post extraction and blockencrypted
add 7z SFX support - bb#3063
fix makefile for external LLVM 2.9
fix wrong interaction between prescan_cb caching and postscan_cb
bytecode_watchdog: fix use of unaddressable data
UPgrade lzma SDK to version 9.20 Also fmapify
export cl_fmap_close
cli_map_scandesc convenience API
Introduce cli_map_scandesc to scan a portion of the existing file
fix utf16_to_utf8, and add testcase
cli_utf16_to_utf8
fmapify jpeg_exploit
fmaify cli_scan_riff
fmapify mydoom
export filetype cb
factor out common code
fix mem API of new fmap
unit tests for new fmap scan API
...
Conflicts:
libclamav/Makefile.in
libclamav/c++/Makefile.am
libclamav/c++/Makefile.in
libclamav/filetypes_int.h
libclamav/scanners.c
libclamav/str.c
unit_tests/check_clamav.c
2012-01-04 15:52:33 +02:00
aCaB
ca804a8d9b
add iso test files
2011-11-22 19:18:01 +01:00
Török Edvin
d1b44b4d97
unit tests: wrap _i with #ifdef to support old versions of libcheck.
2011-11-21 11:43:47 +02:00
Török Edvin
0eafa898e9
fix utf16_to_utf8, and add testcase
2011-06-17 22:20:31 +03:00
Török Edvin
7caec945eb
specify type of constant
2011-06-15 13:44:44 +03:00
Török Edvin
0b1acdd813
Merge branch 'master' into fmapify
...
* master:
testcase for cl_scan APIs
c4w: add Scan_GetFileType - untested
upgrade sigui api
make the sigload callback be aware of custom sigs
Conflicts:
unit_tests/Makefile.am
unit_tests/Makefile.in
unit_tests/check_clamav.c
2011-06-15 12:26:05 +03:00
Török Edvin
d5f7afdded
testcase for cl_scan APIs
...
(partially ported from fmapify branch)
2011-06-15 12:22:27 +03:00
Török Edvin
592e246c3f
factor out common code
2011-06-15 12:07:04 +03:00
Török Edvin
81e5772859
fix mem API of new fmap
2011-06-14 23:46:04 +03:00
Török Edvin
62ee12b2f8
unit tests for new fmap scan API
2011-06-14 22:35:03 +03:00
Török Edvin
e4a0f2c94f
fix compiler warnings (bb #1872 , bb #1934 , bb #1935 )
2010-04-13 16:19:47 +03:00
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.
2010-01-20 18:12:10 +02:00
Török Edvin
d99c0c4245
bytecode: add unit tests and ChangeLog.
2009-07-13 19:40:25 +03:00
Török Edvin
4e46d65d39
use sha256 instead of md5 in phishcheck.
...
move sha256 to libclamav.
add more tests.
git-svn: trunk@4822
2009-02-18 14:54:16 +00:00
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
2009-02-12 13:53:23 +00:00
Török Edvin
c5944b5420
add missing include
...
git-svn: trunk@4653
2009-01-27 12:32:21 +00:00
Török Edvin
7b57a8338e
add dsig unit test
...
git-svn: trunk@4652
2009-01-27 10:57:54 +00:00
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
2009-01-26 19:47:02 +00:00
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
2008-11-12 18:02:33 +00:00
Török Edvin
7866b37c6b
mpool debugging
...
s/USE_MEMPOOL/USE_MPOOL/
git-svn: trunk@4329
2008-11-04 10:40:24 +00:00
Török Edvin
563582a1ec
fix unit tests when mpool is activated
...
git-svn: trunk@4323
2008-11-03 19:26:57 +00:00
Török Edvin
d5d06eccaa
support building with older versions of check
...
git-svn: trunk@4289
2008-10-22 17:27:44 +00:00
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
2008-10-09 09:00:26 +00:00
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
2008-09-24 08:45:56 +00:00
Török Edvin
6a53bbdf9a
JS normalizer fixes (bb #1155 )
...
git-svn: trunk@4202
2008-09-23 20:52:27 +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
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
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
2008-08-21 20:21:43 +00:00
aCaB
abbd1d3673
typo
...
git-svn: trunk@4122
2008-08-20 12:56:34 +00:00
aCaB
61b295f494
spam if lcheck is too old
...
git-svn: trunk@4121
2008-08-20 12:55:42 +00:00
aCaB
99f74adcc1
check for check
...
git-svn: trunk@4098
2008-08-10 16:19:01 +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