diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-07 11:16:16 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-07 11:16:16 +0200 |
commit | d61420eab67f2acab8ea6e3b51a4e763a3259569 (patch) | |
tree | 79c51b14700bf6f08c7cc76f7e5e9bed8aef15f2 /tests/url/GNUmakefile | |
parent | 6e2469e60215d7d3d2557ce74370ff32d4442d7c (diff) | |
download | crawler-d61420eab67f2acab8ea6e3b51a4e763a3259569.tar.gz crawler-d61420eab67f2acab8ea6e3b51a4e763a3259569.tar.bz2 |
combined the two url normalizer tests
Diffstat (limited to 'tests/url/GNUmakefile')
-rw-r--r-- | tests/url/GNUmakefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/tests/url/GNUmakefile b/tests/url/GNUmakefile index 5a3ca08..df37f62 100644 --- a/tests/url/GNUmakefile +++ b/tests/url/GNUmakefile @@ -11,8 +11,7 @@ INCLUDE_LIBS = \ $(TOPDIR)/src/libcrawlingwolf.a TEST_CPP_BINS = \ - test1$(EXE) \ - test2$(EXE) + test1$(EXE) OBJS = @@ -29,16 +28,16 @@ local_distclean: local_test: @-for METHOD in simple google; do \ echo "Using URL normalizer '$$METHOD'.." ; \ - ./exec_test test1 test1 "parse illegal protocol" $$METHOD www.andreasbaumann.cc ; \ - ./exec_test test1 test2 "parse normal start URL without slash" $$METHOD http://www.andreasbaumann.cc ; \ - ./exec_test test1 test3 "parse normal start URL with slash" $$METHOD http://www.andreasbaumann.cc/ ; \ - ./exec_test test1 test4 "parse normal URL" $$METHOD http://www.andreasbaumann.cc/index.html ; \ - ./exec_test test1 test5 "parse normal URL with default port" $$METHOD http://www.andreasbaumann.cc:80/index.html ; \ - ./exec_test test1 test6 "parse normal URL with non-standard port" $$METHOD http://www.andreasbaumann.cc:8080/index.html ; \ - ./exec_test test2 test100 "normalize a relative URL" $$METHOD http://www.andreasbaumann.cc/index.html /software.html ; \ - ./exec_test test2 test101 "absolute URL in HTML content" $$METHOD http://www.andreasbaumann.cc/index.html http://www.yahoo.com/page.html ; \ - ./exec_test test2 test102 "path normalization, relative path" $$METHOD http://www.andreasbaumann.cc/adir/index.html bdir/page.html ; \ - ./exec_test test2 test103 "path normalization, absolute path" $$METHOD http://www.andreasbaumann.cc/adir/index.html /bdir/page.html ; \ - ./exec_test test2 test104 "path normalization, current dir" $$METHOD http://www.andreasbaumann.cc/adir/index.html ./bdir/page.html ; \ - ./exec_test test2 test105 "path normalization, previous dir" $$METHOD http://www.andreasbaumann.cc/adir/index.html ../bdir/page.html ; \ + ./exec_test test1 test1 "parse illegal protocol" $$METHOD parse www.andreasbaumann.cc ; \ + ./exec_test test1 test2 "parse normal start URL without slash" $$METHOD parse http://www.andreasbaumann.cc ; \ + ./exec_test test1 test3 "parse normal start URL with slash" $$METHOD parse http://www.andreasbaumann.cc/ ; \ + ./exec_test test1 test4 "parse normal URL" $$METHOD parse http://www.andreasbaumann.cc/index.html ; \ + ./exec_test test1 test5 "parse normal URL with default port" $$METHOD parse http://www.andreasbaumann.cc:80/index.html ; \ + ./exec_test test1 test6 "parse normal URL with non-standard port" $$METHOD parse http://www.andreasbaumann.cc:8080/index.html ; \ + ./exec_test test1 test100 "normalize a relative URL" $$METHOD normalize http://www.andreasbaumann.cc/index.html /software.html ; \ + ./exec_test test1 test101 "absolute URL in HTML content" $$METHOD normalize http://www.andreasbaumann.cc/index.html http://www.yahoo.com/page.html ; \ + ./exec_test test1 test102 "path normalization, relative path" $$METHOD normalize http://www.andreasbaumann.cc/adir/index.html bdir/page.html ; \ + ./exec_test test1 test103 "path normalization, absolute path" $$METHOD normalize http://www.andreasbaumann.cc/adir/index.html /bdir/page.html ; \ + ./exec_test test1 test104 "path normalization, current dir" $$METHOD normalize http://www.andreasbaumann.cc/adir/index.html ./bdir/page.html ; \ + ./exec_test test1 test105 "path normalization, previous dir" $$METHOD normalize http://www.andreasbaumann.cc/adir/index.html ../bdir/page.html ; \ done |