blob: dcd2b5f04997b870dcb5e7d5505d471f8644cab2 (
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
|
TOPDIR = ..\..
SUBDIRS =
!INCLUDE $(TOPDIR)\makefiles\nmake\platform.mk
INCLUDE_CXXFLAGS = \
/D_WIN32_WINNT=0x504
INCLUDE_DIRS = \
/I. \
/I$(TOPDIR)\streamhtmlparser
INCLUDE_LDFLAGS = \
INCLUDE_LIBS = \
$(TOPDIR)\streamhtmlparser\streamhtmlparser.lib
TEST_CPP_BINS = \
test1.exe \
test2.exe
OBJS =
!INCLUDE $(TOPDIR)\makefiles\nmake\sub.mk
test1.exe: test1.obj
test2.exe: test2.obj
local_all:
local_clean:
@-erase -f *.RES *.DIFF *.ERR 2>NUL
local_distclean:
local_test:
dummy:
@-for %%m in ( simple google ) 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
|