* [Buildroot] [PATCH 1/1] support/testing: add vorbis-tools runtime test
@ 2024-08-07 19:57 Julien Olivain
2024-08-07 21:08 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain @ 2024-08-07 19:57 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Patch tested in:
https://gitlab.com/jolivain/buildroot/-/jobs/7530002562
---
DEVELOPERS | 1 +
.../tests/package/test_vorbis_tools.py | 20 +++++++++++++++++++
2 files changed, 21 insertions(+)
create mode 100644 support/testing/tests/package/test_vorbis_tools.py
diff --git a/DEVELOPERS b/DEVELOPERS
index c472aa4c53..7eba595ed9 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1976,6 +1976,7 @@ F: support/testing/tests/package/test_trace_cmd.py
F: support/testing/tests/package/test_trace_cmd/
F: support/testing/tests/package/test_usbutils.py
F: support/testing/tests/package/test_usbutils/
+F: support/testing/tests/package/test_vorbis_tools.py
F: support/testing/tests/package/test_weston.py
F: support/testing/tests/package/test_weston/
F: support/testing/tests/package/test_wine.py
diff --git a/support/testing/tests/package/test_vorbis_tools.py b/support/testing/tests/package/test_vorbis_tools.py
new file mode 100644
index 0000000000..edf186f31d
--- /dev/null
+++ b/support/testing/tests/package/test_vorbis_tools.py
@@ -0,0 +1,20 @@
+from tests.package.test_audio_codec_base import TestAudioCodecBase
+
+
+class TestVorbisTools(TestAudioCodecBase):
+ __test__ = True
+ config = TestAudioCodecBase.config + \
+ """
+ BR2_PACKAGE_VORBIS_TOOLS=y
+ """
+ encoded_file = "encoded.ogg"
+
+ def encode_test(self, input_filename):
+ cmd = "oggenc"
+ cmd += f" -o {self.encoded_file} {input_filename}"
+ self.assertRunOk(cmd)
+
+ def decode_test(self, output_filename):
+ cmd = "oggdec"
+ cmd += f" -o {output_filename} {self.encoded_file}"
+ self.assertRunOk(cmd)
--
2.46.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] support/testing: add vorbis-tools runtime test
2024-08-07 19:57 [Buildroot] [PATCH 1/1] support/testing: add vorbis-tools runtime test Julien Olivain
@ 2024-08-07 21:08 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-07 21:08 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
On Wed, 7 Aug 2024 21:57:36 +0200
Julien Olivain <ju.o@free.fr> wrote:
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
> Patch tested in:
> https://gitlab.com/jolivain/buildroot/-/jobs/7530002562
> ---
> DEVELOPERS | 1 +
> .../tests/package/test_vorbis_tools.py | 20 +++++++++++++++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 support/testing/tests/package/test_vorbis_tools.py
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-07 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 19:57 [Buildroot] [PATCH 1/1] support/testing: add vorbis-tools runtime test Julien Olivain
2024-08-07 21:08 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox