1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-02-24 19:56:46 +00:00
Files
operating-system/buildroot/support/testing/tests/package/test_lua_http.py
Pascal Vizeli 5a6678147e Update buildroot 2020.02.01 (#622)
* Update buildroot 2020.02.01

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix LN

* Fix wpa

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix lint

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* fix-network

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>

* Fix script

Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-04-16 20:03:01 +02:00

38 lines
1.1 KiB
Python

from tests.package.test_lua import TestLuaBase
class TestLuaHttp(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUA=y
BR2_PACKAGE_LUA_HTTP=y
"""
def test_run(self):
self.login()
self.module_test("http.version", script="local ver=require[[http.version]]; print(ver.name, ver.version)")
self.module_test("http.client")
self.module_test("http.cookie")
self.module_test("http.proxies")
self.module_test("http.server")
self.module_test("http.socks")
self.module_test("http.websocket")
class TestLuajitHttp(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUAJIT=y
BR2_PACKAGE_LUA_HTTP=y
"""
def test_run(self):
self.login()
self.module_test("http.version", script="local ver=require[[http.version]]; print(ver.name, ver.version)")
self.module_test("http.client")
self.module_test("http.cookie")
self.module_test("http.proxies")
self.module_test("http.server")
self.module_test("http.socks")
self.module_test("http.websocket")