summaryrefslogtreecommitdiff
path: root/tests/streamhtmlparser
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-08-12 10:40:23 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-08-12 10:40:23 +0200
commitfe4e07657381e7db947630981a1d34410e4753e3 (patch)
tree7daf065a73ab29fd954f81e40dfde9f6e66a022a /tests/streamhtmlparser
parentb2f35389b68fb1e58ea13dc273fdebaf534a325c (diff)
downloadcrawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.gz
crawler-fe4e07657381e7db947630981a1d34410e4753e3.tar.bz2
streamhtmlparser works on Windows
Diffstat (limited to 'tests/streamhtmlparser')
-rwxr-xr-xtests/streamhtmlparser/Makefile.W3253
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/streamhtmlparser/Makefile.W32 b/tests/streamhtmlparser/Makefile.W32
new file mode 100755
index 0000000..dcd2b5f
--- /dev/null
+++ b/tests/streamhtmlparser/Makefile.W32
@@ -0,0 +1,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