Skip to content

Commit

Permalink
add unit tests for binaries
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Török Edvin committed Jul 10, 2008
1 parent a39b29c commit 232c4b7
Show file tree
Hide file tree
Showing 28 changed files with 686 additions and 104 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Thu Jul 10 19:41:37 EEST 2008 (edwin)
-------------------------------------
* unit_tests/: add unit tests for binaries
* build system: enable unit tests by default (if check is available)
add --enable-coverage to run gcov/lcov
add --enable-tests-install to install test files

Thu Jul 10 16:02:50 EEST 2008 (edwin)
------------------------------------
* unit_tests/:
Expand Down
3 changes: 3 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
Expand All @@ -159,6 +161,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCHECK = @LCHECK@
LCOV = @LCOV@
LDFLAGS = @LDFLAGS@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
Expand Down
3 changes: 0 additions & 3 deletions clamav-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@
/* Enable 'check' unit tests */
#undef HAVE_CHECK

/* Define to 1 if you have the <check.h> header file. */
#undef HAVE_CHECK_H

/* ancillary data style fd pass */
#undef HAVE_CONTROL_IN_MSGHDR

Expand Down
3 changes: 3 additions & 0 deletions clamav-milter/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
Expand All @@ -141,6 +143,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCHECK = @LCHECK@
LCOV = @LCOV@
LDFLAGS = @LDFLAGS@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
Expand Down
3 changes: 3 additions & 0 deletions clamconf/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
Expand All @@ -126,6 +128,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCHECK = @LCHECK@
LCOV = @LCOV@
LDFLAGS = @LDFLAGS@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
Expand Down
3 changes: 3 additions & 0 deletions clamd/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
Expand All @@ -146,6 +148,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCHECK = @LCHECK@
LCOV = @LCOV@
LDFLAGS = @LDFLAGS@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
Expand Down
3 changes: 3 additions & 0 deletions clamdscan/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
Expand All @@ -135,6 +137,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCHECK = @LCHECK@
LCOV = @LCOV@
LDFLAGS = @LDFLAGS@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
Expand Down
3 changes: 3 additions & 0 deletions clamscan/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
Expand All @@ -128,6 +130,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LCHECK = @LCHECK@
LCOV = @LCOV@
LDFLAGS = @LDFLAGS@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
Expand Down
Loading

0 comments on commit 232c4b7

Please sign in to comment.