From 6c600550171ecec793c8ef1b05378ffd289681ac Mon Sep 17 00:00:00 2001 From: Kurt Pattyn Date: Fri, 1 Nov 2013 18:55:23 +0100 Subject: Remove unneeded files Change-Id: Iff3e9b3abdc3e9159ec75ca5466aad6f93314aa4 Reviewed-by: Kurt Pattyn --- tests/autobahn/scripts/echoserver.py | 58 ----------------------- tests/autobahn/scripts/start_basic_sockettests.sh | 10 ---- tests/autobahn/scripts/start_echo_server.sh | 1 - tests/autobahn/scripts/stop_echo_server.sh | 1 - 4 files changed, 70 deletions(-) delete mode 100644 tests/autobahn/scripts/echoserver.py delete mode 100755 tests/autobahn/scripts/start_basic_sockettests.sh delete mode 100755 tests/autobahn/scripts/start_echo_server.sh delete mode 100755 tests/autobahn/scripts/stop_echo_server.sh (limited to 'tests') diff --git a/tests/autobahn/scripts/echoserver.py b/tests/autobahn/scripts/echoserver.py deleted file mode 100644 index 5478eb2..0000000 --- a/tests/autobahn/scripts/echoserver.py +++ /dev/null @@ -1,58 +0,0 @@ -############################################################################### -## -## Copyright 2011,2012 Tavendo GmbH -## -## Licensed under the Apache License, Version 2.0 (the "License"); -## you may not use this file except in compliance with the License. -## You may obtain a copy of the License at -## -## http://www.apache.org/licenses/LICENSE-2.0 -## -## Unless required by applicable law or agreed to in writing, software -## distributed under the License is distributed on an "AS IS" BASIS, -## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -## See the License for the specific language governing permissions and -## limitations under the License. -## -############################################################################### - -import sys - -from twisted.internet import reactor -from twisted.python import log -from twisted.web.server import Site -from twisted.web.static import File - -from autobahn.websocket import WebSocketServerFactory, \ - WebSocketServerProtocol, \ - listenWS - - -class EchoServerProtocol(WebSocketServerProtocol): - - def onMessage(self, msg, binary): - self.sendMessage(msg, binary) - - -if __name__ == '__main__': - - if len(sys.argv) > 1 and sys.argv[1] == 'debug': - log.startLogging(sys.stdout) - debug = True - else: - debug = False - - factory = WebSocketServerFactory("ws://localhost:9000", - debug = debug, - debugCodePaths = debug) - - factory.protocol = EchoServerProtocol - factory.setProtocolOptions(allowHixie76 = True) - listenWS(factory) - - webdir = File(".") - web = Site(webdir) - reactor.listenTCP(8080, web) - - reactor.run() - diff --git a/tests/autobahn/scripts/start_basic_sockettests.sh b/tests/autobahn/scripts/start_basic_sockettests.sh deleted file mode 100755 index 4ba4896..0000000 --- a/tests/autobahn/scripts/start_basic_sockettests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#cd test -#/usr/local/bin/wstest -m echoserver -w ws://localhost:9000 & -#/usr/bin/python echoserver.py & - -./unittests -xunitxml -o ./unittest_result.xml - -#stop server -#pid=$(ps -eo pid,command,lstart | grep '/usr/bin/python' | tail -1 | grep -e '^ (\d+)' -E -o | grep -e '(\d+)' -E -o) -#kill -9 $pid - diff --git a/tests/autobahn/scripts/start_echo_server.sh b/tests/autobahn/scripts/start_echo_server.sh deleted file mode 100755 index c101287..0000000 --- a/tests/autobahn/scripts/start_echo_server.sh +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/python echoserver.py -w & diff --git a/tests/autobahn/scripts/stop_echo_server.sh b/tests/autobahn/scripts/stop_echo_server.sh deleted file mode 100755 index 8c8a2a4..0000000 --- a/tests/autobahn/scripts/stop_echo_server.sh +++ /dev/null @@ -1 +0,0 @@ -#wstest -m echoserver -w ws://localhost:9000 & -- cgit v1.2.1