mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-22 07:14:56 -09:00
Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
21 lines
566 B
Python
21 lines
566 B
Python
from tests.package.test_audio_codec_base import TestAudioCodecBase
|
|
|
|
|
|
class TestFlac(TestAudioCodecBase):
|
|
__test__ = True
|
|
config = TestAudioCodecBase.config + \
|
|
"""
|
|
BR2_PACKAGE_FLAC=y
|
|
"""
|
|
encoded_file = "encoded.flac"
|
|
|
|
def encode_test(self, input_filename):
|
|
cmd = "flac"
|
|
cmd += f" -o {self.encoded_file} {input_filename}"
|
|
self.assertRunOk(cmd)
|
|
|
|
def decode_test(self, output_filename):
|
|
cmd = "flac -d"
|
|
cmd += f" -o {output_filename} {self.encoded_file}"
|
|
self.assertRunOk(cmd)
|