forked from Cisco-Talos/clamav
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add htmlnorm unit tests and fix jsnorm space normalization
git-svn: trunk@4201
- Loading branch information
Török Edvin
committed
Sep 23, 2008
1 parent
5a87c99
commit 1279faf
Showing
25 changed files
with
313 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a href="data:application/octet-stream;base64,TVpQAAIAAAAEAA8A//8AALgAAAAhAAAAQAAaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAALtxEEAAM8BQUIvzU1NQsClAMARmrHn5ujEAeA2tUP9mcA4fvjEA6eX/tAnNIbRMzSFiDAoBAnB2FwIeTgwEL9rMEAAAAAAAAAAAAAAAAAAAwBAAAIAQAAAAAAAAAAAAAAAAAADaEAAA9BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAS0VSTkVMMzIuRExMAABFeGl0UHJvY2VzcwBVU0VSMzIuRExMAENMQU1lc3NhZ2VCb3hBAOYQAAAAAAAAPz8/P1BFAABMAQEAYUNhQgAAAAAAAAAA4ACOgQsBAhkABAAAAAYAAAAAAABAEAAAABAAAEAAAAAAAEAAABAAAAACAAABAAAAAAAAAAMACgAAAAAAACAAAAAEAAAAAAAAAgAAAAAAEAAAIAAAAAAQAAAQAAAAAAAAEAAAAAAAAAAAAAAAhBAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAW0NMQU1BVl0AEAAAABAAAAACAAABAAAAAAAAAAAAAAAAAAAAAAAAwA==">t</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,9 +51,9 @@ CONFIG_HEADER = $(top_builddir)/clamav-config.h | |
CONFIG_CLEAN_FILES = | ||
am__EXEEXT_1 = check_clamav$(EXEEXT) | ||
am__check_clamav_SOURCES_DIST = check_clamav_skip.c check_clamav.c \ | ||
check_jsnorm.c check_str.c check_regex.c checks.h \ | ||
$(top_builddir)/libclamav/clamav.h check_disasm.c check_uniq.c \ | ||
check_matchers.c | ||
checks.h $(top_builddir)/libclamav/clamav.h check_jsnorm.c \ | ||
check_str.c check_regex.c check_disasm.c check_uniq.c \ | ||
check_matchers.c check_htmlnorm.c | ||
@HAVE_LIBCHECK_FALSE@am_check_clamav_OBJECTS = \ | ||
@HAVE_LIBCHECK_FALSE@ check_clamav-check_clamav_skip.$(OBJEXT) | ||
@HAVE_LIBCHECK_TRUE@am_check_clamav_OBJECTS = \ | ||
|
@@ -63,7 +63,8 @@ am__check_clamav_SOURCES_DIST = check_clamav_skip.c check_clamav.c \ | |
@HAVE_LIBCHECK_TRUE@ check_clamav-check_regex.$(OBJEXT) \ | ||
@HAVE_LIBCHECK_TRUE@ check_clamav-check_disasm.$(OBJEXT) \ | ||
@HAVE_LIBCHECK_TRUE@ check_clamav-check_uniq.$(OBJEXT) \ | ||
@HAVE_LIBCHECK_TRUE@ check_clamav-check_matchers.$(OBJEXT) | ||
@HAVE_LIBCHECK_TRUE@ check_clamav-check_matchers.$(OBJEXT) \ | ||
@HAVE_LIBCHECK_TRUE@ check_clamav-check_htmlnorm.$(OBJEXT) | ||
check_clamav_OBJECTS = $(am_check_clamav_OBJECTS) | ||
@HAVE_LIBCHECK_TRUE@check_clamav_DEPENDENCIES = \ | ||
@HAVE_LIBCHECK_TRUE@ $(top_builddir)/libclamav/libclamav.la | ||
|
@@ -234,7 +235,11 @@ scripts = check_clamd.sh check_freshclam.sh check_sigtool.sh check_clamscan.sh\ | |
TESTS_ENVIRONMENT = export abs_srcdir=$(abs_srcdir) AWK=$(AWK); | ||
check_SCRIPTS = $(scripts) | ||
@HAVE_LIBCHECK_FALSE@check_clamav_SOURCES = check_clamav_skip.c | ||
@HAVE_LIBCHECK_TRUE@check_clamav_SOURCES = check_clamav.c check_jsnorm.c check_str.c check_regex.c checks.h $(top_builddir)/libclamav/clamav.h check_disasm.c check_uniq.c check_matchers.c | ||
@HAVE_LIBCHECK_TRUE@check_clamav_SOURCES = check_clamav.c checks.h $(top_builddir)/libclamav/clamav.h\ | ||
@HAVE_LIBCHECK_TRUE@ check_jsnorm.c check_str.c check_regex.c\ | ||
@HAVE_LIBCHECK_TRUE@ check_disasm.c check_uniq.c check_matchers.c\ | ||
@HAVE_LIBCHECK_TRUE@ check_htmlnorm.c | ||
|
||
@HAVE_LIBCHECK_TRUE@check_clamav_CPPFLAGS = @CHECK_CPPFLAGS@ -DSRCDIR=\"$(abs_srcdir)\" | ||
@HAVE_LIBCHECK_TRUE@check_clamav_LDADD = $(top_builddir)/libclamav/libclamav.la @THREAD_LIBS@ @CHECK_LIBS@ | ||
CLEANFILES = lcov.out *.gcno *.gcda *.log $(FILES) test-stderr.log clamscan.log valgrind-*.log duma.log duma2.log | ||
|
@@ -298,6 +303,7 @@ distclean-compile: | |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_clamav.Po@am__quote@ | ||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_clamav_skip.Po@am__quote@ | ||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_disasm.Po@am__quote@ | ||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_htmlnorm.Po@am__quote@ | ||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_jsnorm.Po@am__quote@ | ||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_matchers.Po@am__quote@ | ||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_clamav-check_regex.Po@am__quote@ | ||
|
@@ -437,6 +443,20 @@ check_clamav-check_matchers.obj: check_matchers.c | |
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_clamav_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o check_clamav-check_matchers.obj `if test -f 'check_matchers.c'; then $(CYGPATH_W) 'check_matchers.c'; else $(CYGPATH_W) '$(srcdir)/check_matchers.c'; fi` | ||
|
||
check_clamav-check_htmlnorm.o: check_htmlnorm.c | ||
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_clamav_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT check_clamav-check_htmlnorm.o -MD -MP -MF $(DEPDIR)/check_clamav-check_htmlnorm.Tpo -c -o check_clamav-check_htmlnorm.o `test -f 'check_htmlnorm.c' || echo '$(srcdir)/'`check_htmlnorm.c | ||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/check_clamav-check_htmlnorm.Tpo $(DEPDIR)/check_clamav-check_htmlnorm.Po | ||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_htmlnorm.c' object='check_clamav-check_htmlnorm.o' libtool=no @AMDEPBACKSLASH@ | ||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_clamav_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o check_clamav-check_htmlnorm.o `test -f 'check_htmlnorm.c' || echo '$(srcdir)/'`check_htmlnorm.c | ||
|
||
check_clamav-check_htmlnorm.obj: check_htmlnorm.c | ||
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_clamav_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT check_clamav-check_htmlnorm.obj -MD -MP -MF $(DEPDIR)/check_clamav-check_htmlnorm.Tpo -c -o check_clamav-check_htmlnorm.obj `if test -f 'check_htmlnorm.c'; then $(CYGPATH_W) 'check_htmlnorm.c'; else $(CYGPATH_W) '$(srcdir)/check_htmlnorm.c'; fi` | ||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/check_clamav-check_htmlnorm.Tpo $(DEPDIR)/check_clamav-check_htmlnorm.Po | ||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_htmlnorm.c' object='check_clamav-check_htmlnorm.obj' libtool=no @AMDEPBACKSLASH@ | ||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(check_clamav_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o check_clamav-check_htmlnorm.obj `if test -f 'check_htmlnorm.c'; then $(CYGPATH_W) 'check_htmlnorm.c'; else $(CYGPATH_W) '$(srcdir)/check_htmlnorm.c'; fi` | ||
|
||
mostlyclean-libtool: | ||
-rm -f *.lo | ||
|
||
|
@@ -710,7 +730,7 @@ $(top_builddir)/test/clam.exe: | |
@ENABLE_COVERAGE_TRUE@lcov: $(LCOV_HTML) | ||
@[email protected]/check_clamav.gcda: $(TESTS) | ||
@ENABLE_COVERAGE_TRUE@ $(LCOV_LCOV) $(DIRECTORIES) --zerocounters | ||
@ENABLE_COVERAGE_TRUE@ @$(MAKE) check VALGRIND= | ||
@ENABLE_COVERAGE_TRUE@ @$(MAKE) check VALGRIND= LIBDUMA=no LIBEFENCE=no | ||
|
||
@ENABLE_COVERAGE_TRUE@$(LCOV_OUTPUT): .libs/check_clamav.gcda | ||
@ENABLE_COVERAGE_TRUE@ $(LCOV_LCOV) --capture $(DIRECTORIES) --output-file $@ | ||
|
Oops, something went wrong.