news test

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@64 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-04-06 22:47:09 +00:00
parent 6c619b7c47
commit f1cd737005
3 changed files with 10 additions and 3 deletions

View file

@ -1,8 +1,8 @@
VERSION=$(shell ./setup.py -V)
HOST=treasure.calvinsplayground.de
#HOST=treasure.calvinsplayground.de
PROXY=
#PROXY=-P$(HOST):5050
#HOST=fsinfo.cs.uni-sb.de
HOST=fsinfo.cs.uni-sb.de
#PROXY=-Pwww-proxy.uni-sb.de:3128
PACKAGE = linkchecker
DEBPACKAGE = $(PACKAGE)_$(VERSION)_i386.deb
@ -42,5 +42,5 @@ test:
rm -f test/*.result
@for i in test/*.html; do \
echo "Testing $$i. Results are in $$i.result"; \
./$(PACKAGE) -t0 -v -a $$i > $$i.result 2>&1; \
./$(PACKAGE) -t0 -N"news.rz.uni-sb.de" -v -a $$i > $$i.result 2>&1; \
done

View file

@ -185,6 +185,7 @@ class Configuration(UserDict.UserDict):
timeout = 0
except nntplib.error_perm:
value = sys.exc_info()[1]
self.debug(value)
if re.compile("^505").search(str(value)):
import whrandom,time
time.sleep(whrandom.randint(30,60))

6
test/news.html Normal file
View file

@ -0,0 +1,6 @@
<a href="news:comp.os.linux.misc">
<a href="news:de.comp.os.unix.linux.misc">
<a href="news:comp.lang.python">
<a href="news:ist.garantiert.nix">
<a href="news:">
<a href="news:§$%&/´`(§%">