@@ -1857,6 +1857,7 @@ F: support/testing/tests/package/test_ethtool.py
F: support/testing/tests/package/test_ethtool/
F: support/testing/tests/package/test_file.py
F: support/testing/tests/package/test_file/
+F: support/testing/tests/package/test_flac.py
F: support/testing/tests/package/test_fluidsynth.py
F: support/testing/tests/package/test_fluidsynth/
F: support/testing/tests/package/test_fping.py
new file mode 100644
@@ -0,0 +1,20 @@
+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)
Signed-off-by: Julien Olivain <ju.o@free.fr> --- Patch tested in: https://gitlab.com/jolivain/buildroot/-/jobs/7540310064 --- DEVELOPERS | 1 + support/testing/tests/package/test_flac.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 support/testing/tests/package/test_flac.py