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>
This commit is contained in:
36
buildroot/support/testing/tests/package/test_luvi.py
Normal file
36
buildroot/support/testing/tests/package/test_luvi.py
Normal file
@@ -0,0 +1,36 @@
|
||||
import os
|
||||
|
||||
import infra.basetest
|
||||
|
||||
|
||||
class TestLuvi(infra.basetest.BRTest):
|
||||
config = infra.basetest.BASIC_TOOLCHAIN_CONFIG + \
|
||||
"""
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
# BR2_TARGET_ROOTFS_TAR is not set
|
||||
BR2_PACKAGE_LUAJIT=y
|
||||
BR2_PACKAGE_LUVI=y
|
||||
BR2_PACKAGE_OPENSSL=y
|
||||
BR2_PACKAGE_PCRE=y
|
||||
BR2_PACKAGE_ZLIB=y
|
||||
"""
|
||||
|
||||
def login(self):
|
||||
cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio")
|
||||
self.emulator.boot(arch="armv7",
|
||||
kernel="builtin",
|
||||
options=["-initrd", cpio_file])
|
||||
self.emulator.login()
|
||||
|
||||
def version_test(self):
|
||||
cmd = "luvi -v"
|
||||
output, exit_code = self.emulator.run(cmd)
|
||||
self.assertIn('luvi', output[0])
|
||||
self.assertIn('zlib', output[1])
|
||||
self.assertIn('rex', output[2])
|
||||
self.assertIn('libuv', output[3])
|
||||
self.assertIn('ssl', output[4])
|
||||
|
||||
def test_run(self):
|
||||
self.login()
|
||||
self.version_test()
|
||||
Reference in New Issue
Block a user