summaryrefslogtreecommitdiff
path: root/tests/url/Makefile.W32
blob: b4d51b409768d535e3047225ebfe54db6de489dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
TOPDIR = ..\..

SUBDIRS =

!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk

INCLUDE_CXXFLAGS = \
	/D_WIN32_WINNT=0x504 \
	/DUSE_MODULELOADER /DSHARED

INCLUDE_DIRS = \
	/I. \
	/I$(TOPDIR)\src \
	/I$(TOPDIR)\include \
	/I$(TOPDIR)\include\module \
	/I$(TOPDIR)\include\util \
	/I$(TOPDIR)\include\crawler \
	/I$(TOPDIR)\src\modules\urlnormalizer\simpleurl \
	/I$(TOPDIR)\src\modules\urlnormalizer\googleurl

INCLUDE_LDFLAGS = \

INCLUDE_LIBS = \
	$(TOPDIR)\src\libutil\util.lib \
	$(TOPDIR)\src\libcrawler\crawler.lib \
	$(TOPDIR)\src\modules\urlnormalizer\simpleurl\simpleurlnormalizer.lib \
	$(TOPDIR)\src\modules\urlnormalizer\googleurl\googleurlnormalizer.lib \
	$(TOPDIR)\googleurl\googleurl.lib \

!IFDEF DEBUG
INCLUDE_LIBS = $(INCLUDE_LIBS) \
	"$(ICU_DIR)\lib\icuucd.lib"
!ELSE
INCLUDE_LIBS = $(INCLUDE_LIBS) \
	"$(ICU_DIR)\lib\icuuc.lib"
!ENDIF

TEST_CPP_BINS = \
	test1.exe

OBJS =

!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk

test1.exe: test1.obj

local_all:

local_clean:
	@-erase -f *.RES *.DIFF *.ERR 2>NUL

local_distclean:

local_test:
	@-copy "$(ICU_DIR)\bin\icuuc52d.dll" . >NUL
 	@-copy "$(ICU_DIR)\bin\icudt52.dll" . >NUL
	@-for %%m in ( simple_urlnormalizer google_urlnormalizer ) do \
		@echo Using URL normalizer '%m'.. & \
		@exec_test test1 test1 "parse illegal protocol" %m parse www.andreasbaumann.cc & \
		@exec_test test1 test2 "parse normal start URL without slash" %m parse http://www.andreasbaumann.cc & \
		@exec_test test1 test3 "parse normal start URL with slash" %m parse http://www.andreasbaumann.cc/ & \
		@exec_test test1 test4 "parse normal URL" %m parse http://www.andreasbaumann.cc/index.html & \
		@exec_test test1 test5 "parse normal URL with default port" %m parse http://www.andreasbaumann.cc:80/index.html & \
		@exec_test test1 test6 "parse normal URL with non-standard port" %m parse http://www.andreasbaumann.cc:8080/index.html & \
		@exec_test test1 test100 "normalize a relative URL" %m normalize http://www.andreasbaumann.cc/index.html /software.html & \
		@exec_test test1 test101 "absolute URL in HTML content" %m normalize http://www.andreasbaumann.cc/index.html http://www.yahoo.com/page.html & \
		@exec_test test1 test102 "path normalization, relative path" %m normalize http://www.andreasbaumann.cc/adir/index.html bdir/page.html & \
		@exec_test test1 test103 "path normalization, absolute path" %m normalize http://www.andreasbaumann.cc/adir/index.html /bdir/page.html & \
		@exec_test test1 test104 "path normalization, current dir" %m normalize http://www.andreasbaumann.cc/adir/index.html ./bdir/page.html & \
		@exec_test test1 test105 "path normalization, previous dir" %m normalize http://www.andreasbaumann.cc/adir/index.html ../bdir/page.html