mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 13:14:46 +00:00
added test suite files
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@234 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
c005ce79d1
commit
c64918774b
12 changed files with 129 additions and 4 deletions
|
|
@ -1,4 +0,0 @@
|
|||
<!-- base with href -->
|
||||
<base href="http://treasure.calvinsplayground.de/~calvin/">
|
||||
<!-- good url -->
|
||||
<a href="index.shtml">
|
||||
8
test/html/base1.html
Normal file
8
test/html/base1.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<!-- base without href -->
|
||||
<base target="_top">
|
||||
<!-- meta url -->
|
||||
<META HTTP-equiv="refresh" content="0; url=base2.html">
|
||||
<!-- spaces between key and value -->
|
||||
<a href
|
||||
=
|
||||
"base2.html">
|
||||
5
test/html/base2.html
Normal file
5
test/html/base2.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<!-- base with href -->
|
||||
<base href="..">
|
||||
<!-- good file -->
|
||||
<a href="html/base1.html">
|
||||
|
||||
4
test/html/base3.html
Normal file
4
test/html/base3.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!-- base with href -->
|
||||
<base href="..">
|
||||
<!-- just an url -->
|
||||
<a href="html/base1.html">
|
||||
14
test/test_file.py
Normal file
14
test/test_file.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('file.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_frames.py
Normal file
14
test/test_frames.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('frames.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_ftp.py
Normal file
14
test/test_ftp.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('ftp.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_http.py
Normal file
14
test/test_http.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('http.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_https.py
Normal file
14
test/test_https.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('https.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_mail.py
Normal file
14
test/test_mail.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('mail.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_misc.py
Normal file
14
test/test_misc.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('misc.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
14
test/test_news.py
Normal file
14
test/test_news.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import os,sys
|
||||
sys.path.append(os.getcwd())
|
||||
import linkcheck
|
||||
config = linkcheck.Config.Configuration()
|
||||
config['recursionlevel'] = 1
|
||||
config['log'] = config.newLogger('test')
|
||||
config["anchors"] = 1
|
||||
config["verbose"] = 1
|
||||
config.disableThreading()
|
||||
htmldir = "test/html"
|
||||
for file in ('news.html'):
|
||||
url = os.path.join(htmldir, file)
|
||||
config.appendUrl(linkcheck.UrlData.GetUrlDataFrom(url, 0))
|
||||
linkcheck.checkUrls(config)
|
||||
Loading…
Reference in a new issue