add local web server to fuzzing_server

This commit is contained in:
Tobias Oberstein
2011-09-17 19:46:50 +02:00
parent 085e063a00
commit e38f7ec1af
2 changed files with 34 additions and 2 deletions

View File

@@ -19,12 +19,22 @@
import sys
from twisted.python import log
from twisted.internet import reactor
from twisted.web.server import Site
from twisted.web.static import File
from autobahn.fuzzing import FuzzingServerFactory
if __name__ == '__main__':
log.startLogging(sys.stdout)
factory = FuzzingServerFactory(debug = False, outdir = "reports/clients")
reactor.listenTCP(9001, factory)
## fuzzing server
fuzzer = FuzzingServerFactory(debug = False, outdir = "reports/clients")
reactor.listenTCP(9001, fuzzer)
## web server
webdir = File(".")
web = Site(webdir)
reactor.listenTCP(9090, web)
reactor.run()

View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style lang="css">
body {
font-family: Segoe UI,Tahoma,Arial,Verdana,sans-serif;
color: #333;
}
li {
padding: 0.4em;
}
</style>
</head>
<body>
<h1>Autobahn WebSockets Test Suite</h1>
<ul>
<li><a href="./clients/test_browser.html">Test your browser</a></li>
<li><a href="./reports/clients/index.html">Client reports</a></li>
<li><a href="./reports/servers/index.html">Server reports</a></li>
</ul>
</body>
</html>