Skip to content

Commit

Permalink
support/testing: add python-msgpack runtime test
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Hoffmann <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>
  • Loading branch information
Marcus Hoffmann authored and arnout committed Jul 14, 2024
1 parent 2da40a2 commit d429d5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions support/testing/tests/package/sample_python_msgpack.py
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions support/testing/tests/package/test_python_msgpack.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d429d5d

Please sign in to comment.