Török Edvin
42f51c4561
bump unit test ulimits
...
RHEL6's experimental memory allocator has increased memory usage, so bump these
limits, see bb #1990 .
2011-04-14 16:00:26 +03:00
Török Edvin
4fe129a313
build system: upgrade libtool and libltdl
2011-04-14 16:00:25 +03:00
Török Edvin
321488a958
build system: use automake subdir-objects (bb #2369 )
...
This required introduced various libshared*.la, because otherwise the
object files in shared would overwrite eachother.
This is not for 0.97.1
2011-04-14 16:00:25 +03:00
Török Edvin
3694e4cb97
build system: regenerate.
...
With autoconf 2.67 and libtool 2.2.6b, not upgrading yet.
2011-04-14 13:53:06 +03:00
Török Edvin
cf8a925fb9
configure, --enable-distcheck-werror: remove need for CFLAGS hack in libltdl
...
Just add the @WERR_CFLAGS@ to all directories that need it, because libltdl gets
overwritten everytime libtool is upgraded.
2011-04-14 13:53:01 +03:00
Török Edvin
5007986ffd
Fix build on Etch (bb #2399 ).
2011-01-20 10:03:55 +02:00
aCaB
14294b605d
bb#2400
2011-01-19 12:17:34 +01:00
Török Edvin
73489b8b4c
s/glibc 2.2/glibc 2.3/ for pthread_barrier.
2010-11-23 16:38:15 +02:00
Török Edvin
314c415b02
Restrict usage of pthread_barrier even more.
...
Don't want to add a configure test for it now...
2010-11-23 13:31:47 +02:00
Török Edvin
a5ab598b18
Fix non-bash make-check.
2010-11-05 00:17:35 +02:00
Török Edvin
e3a9786792
Only use pthread_barrier* on Linux.
...
Looks like Solaris and Mac OS X didn't hear of barriers :(
2010-11-04 23:01:22 +02:00
Török Edvin
71a5cb434e
Fix build error.
2010-11-04 22:13:35 +02:00
Török Edvin
9e8d9a6e68
Use random port in make check (bb #2148 ).
...
Use random port in make check to avoid multiple builds' make check failures.
Note that this only works with bash, dash doesn't have $RANDOM defined.
2010-11-04 21:53:03 +02:00
Török Edvin
a7cf187a0c
Make cl_load thread safe (bb #2333 ).
...
Parallel cl_load() crash (bb #2333 ).
Reason is twofold:
- cache.c had 2 'static' global variables, thus trying to initialize same cache
from multiple threads
- bytecode2llvm.cpp: something in LLVM 2.7 is crashing when loading in
parallel
Fix is to drop the 'static' on the variable (cache is per engine already).
This also fixes a potential memory leak in clamd!
The other part of the fix is to turn on the mutex around bytecode compilation
always. We don't call cl_load in parallel, so this doesn't affect clamd, but
some may need to call cl_load in parallel.
2010-11-04 21:53:03 +02:00
Tomasz Kojm
bb08962d85
fix previous commit
2010-11-03 14:30:52 +01:00
Török Edvin
b49a08351a
Allow ulimit to fail (bb #2301 ).
2010-10-18 12:55:20 +03:00
Török Edvin
47cee5042d
fix unit test for JIT test mode.
2010-10-18 11:08:14 +03:00
Török Edvin
e7dfb05678
Fix valgrind tests.
...
Need to parse the correct valgrind.log when running multiple tests in parallel.
2010-09-28 13:46:33 +03:00
Török Edvin
5ba28e7371
Fix VI memory leak (bb #2291 ).
...
Also run clamscan under valgrind in the unit tests to catch these memory leaks
in the future.
2010-09-28 13:02:15 +03:00
aCaB
0c0df334ac
add unit tests for the VI parser
2010-09-08 00:01:04 +02:00
aCaB
ed89689350
Revert "Revert "fix make check""
...
This reverts commit 776c201952 .
2010-08-13 00:54:07 +02:00
aCaB
776c201952
Revert "fix make check"
...
This reverts commit b4d33ebcf7 .
2010-08-11 14:21:47 +02:00
Török Edvin
540fc128a0
freshclam is using private symbol that changed proto (bb #2187 ).
...
Change name to prevent crash with 0.96.1 freshclam and 0.96.2 libclamav.
You'll get a missing symbol error.
2010-08-11 14:26:10 +03:00
aCaB
b4d33ebcf7
fix make check
2010-08-11 12:44:14 +02:00
Török Edvin
213dfdff06
run 1 unit-test at least in test mode (bb #2151 ).
...
Also allow running test mode if JIT is not available, still checking
for failed startup.cbc execution.
2010-08-02 19:00:12 +03:00
aCaB
08b5aec381
fix previous: typo in unit_tests, order in cli_exe_info
2010-07-30 16:08:51 +02:00
aCaB
453d818022
use cached metadata in icon parser, add icon unit tests
2010-07-30 15:54:15 +02:00
Török Edvin
d049a2f72b
Make bytecode tests use testmode if they want.
...
None uses it yet.
2010-07-29 14:07:00 +03:00
Török Edvin
927d054838
Add engine param to bytecode, and remove dconf from _init.
2010-07-29 13:48:18 +03:00
Török Edvin
7da37b9648
Don't phishcheck email addresses (bb #2067 ).
...
To avoid false positives.
2010-07-26 13:16:51 +03:00
Török Edvin
1ab57a63c7
Add bytecode.cvd load test.
2010-05-14 17:19:26 +03:00
Török Edvin
7c394b5a9d
Update these tests.
2010-05-14 11:19:09 +03:00
Török Edvin
8a06c645ad
Fix unit test.
2010-05-14 11:04:04 +03:00
Török Edvin
3d2808c218
bytecode: update unit tests for improved arithmetic test.
2010-05-14 10:41:50 +03:00
Török Edvin
aadccfd1c8
Fix valgrind warnings.
2010-05-13 23:35:47 +03:00
Török Edvin
fc01c6476f
Fix interpreter.
2010-05-13 23:25:11 +03:00
Török Edvin
a969167b6c
Add new bytecode API unit tests.
2010-05-13 22:44:29 +03:00
Török Edvin
08d7e5f07d
Restore the previous cbc testfiles.
2010-05-12 23:56:12 +03:00
Török Edvin
7a7365efe9
0.96.1 new APIs (cli_map etc.)
2010-05-12 23:51:20 +03:00
Török Edvin
909407e70b
Regenerate build system after clamconf change.
2010-04-19 17:14:57 +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
202d4ab4f7
Fix make check on AIX (bb #1917 ).
2010-04-13 13:13:17 +03:00
Török Edvin
d772904022
Fix matchwithread.cbc
...
ImageBase is little-endian, need to use conversion
function to access it.
2010-04-02 13:13:17 +03:00
Török Edvin
9d1e3f6bde
Fix print of test log when unit test fails (bb #1838 ).
...
It was printing the wrong logfile (the one from the successful run).
2010-03-31 15:36:23 +03:00
Török Edvin
e407d32d04
Increase timeout of testcase itself.
2010-03-30 11:10:58 +03:00
Török Edvin
ce288463e2
Increase bytecode timeout for non-timeout tests.
2010-03-30 00:04:38 +03:00
Török Edvin
1bef6a803d
Update pdf.cbc.
2010-03-30 00:04:38 +03:00
Török Edvin
fa82ce037a
Separate bytecode tests into jit and interpreter.
...
This makes it easier to see which one has a problem, and also reduces the
runtime of individual tests.
2010-03-29 12:09:07 +03:00
Török Edvin
1678ef9e43
Fix inflate.cbc for the interpreter.
2010-03-29 11:38:52 +03:00
Török Edvin
0d9b99f43e
Fix bswap.cbc in interpreter mode.
2010-03-28 23:49:25 +03:00