mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump from 6.3.3 to 6.5.5. Add a basic test.sh that imports the tornado module and verifies Application/RequestHandler can be instantiated. Changelog: https://www.tornadoweb.org/en/stable/releases.html Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
20 lines
452 B
Bash
Executable File
20 lines
452 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "$1" = python3-tornado ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import tornado
|
|
assert tornado.version, "tornado version is empty"
|
|
|
|
from tornado.web import Application, RequestHandler
|
|
from tornado.httpserver import HTTPServer
|
|
from tornado.ioloop import IOLoop
|
|
|
|
class TestHandler(RequestHandler):
|
|
def get(self):
|
|
self.write("ok")
|
|
|
|
app = Application([(r"/", TestHandler)])
|
|
assert app is not None, "failed to create tornado Application"
|
|
EOF
|