Files
buildroot/support/testing/tests/package/sample_python_snappy.py
Flaviu Nistor 02201ecb44 support/testing: add snappy test
Add a simple test case that imports the module and does a simple
compress decompress routine.

Signed-off-by: Flaviu Nistor <flaviu.nistor@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2026-10-19 19:15:03 +02:00

6 lines
150 B
Python

import snappy
payload = b"Buildroot python-snappy runtime test\n"
compressed = snappy.compress(payload)
decompressed = snappy.uncompress(compressed)