support/testing: add python-msgpack runtime test
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu> Signed-off-by: Arnout Vandecappelle <arnout@mind.be> (cherry picked from commit d429d5d399acc9921a9a86f4ae3d589d599605e4) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
c657ece0cd
commit
e255cb1c26
5
support/testing/tests/package/sample_python_msgpack.py
Normal file
5
support/testing/tests/package/sample_python_msgpack.py
Normal file
@ -0,0 +1,5 @@
|
||||
import msgpack
|
||||
|
||||
packaed = msgpack.packb([1, 2, 3], use_bin_type=True)
|
||||
|
||||
assert msgpack.unpackb(packaed, raw=False) == [1, 2, 3]
|
12
support/testing/tests/package/test_python_msgpack.py
Normal file
12
support/testing/tests/package/test_python_msgpack.py
Normal file
@ -0,0 +1,12 @@
|
||||
from tests.package.test_python import TestPythonPackageBase
|
||||
|
||||
|
||||
class TestPythonPy3MsgPack(TestPythonPackageBase):
|
||||
__test__ = True
|
||||
config = TestPythonPackageBase.config + \
|
||||
"""
|
||||
BR2_PACKAGE_PYTHON3=y
|
||||
BR2_PACKAGE_PYTHON_MSGPACK=y
|
||||
"""
|
||||
sample_scripts = ["tests/package/sample_python_msgpack.py"]
|
||||
timeout = 40
|
Loading…
Reference in New Issue
Block a user