kumquat-buildroot/support/testing/tests/package/test_lua_sdl2.py
Francois Perrad d1e01107a7 support/testing: add lua-sdl2 test
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-10-26 16:31:36 +02:00

42 lines
1.0 KiB
Python

from tests.package.test_lua import TestLuaBase
class TestLuaLuaSDL2(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUA=y
BR2_PACKAGE_LUA_SDL2=y
BR2_PACKAGE_SDL2_IMAGE=y
BR2_PACKAGE_SDL2_MIXER=y
BR2_PACKAGE_SDL2_NET=y
BR2_PACKAGE_SDL2_TTF=y
"""
def test_run(self):
self.login()
self.module_test("SDL")
self.module_test("SDL.image")
self.module_test("SDL.mixer")
self.module_test("SDL.net")
self.module_test("SDL.ttf")
class TestLuajitLuaSDL2(TestLuaBase):
config = TestLuaBase.config + \
"""
BR2_PACKAGE_LUAJIT=y
BR2_PACKAGE_LUA_SDL2=y
BR2_PACKAGE_SDL2_IMAGE=y
BR2_PACKAGE_SDL2_MIXER=y
BR2_PACKAGE_SDL2_NET=y
BR2_PACKAGE_SDL2_TTF=y
"""
def test_run(self):
self.login()
self.module_test("SDL")
self.module_test("SDL.image")
self.module_test("SDL.mixer")
self.module_test("SDL.net")
self.module_test("SDL.ttf")