[tracker-miners: 3/4] tracker-extract-vorbis.c: Add test for ogg extractor
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners: 3/4] tracker-extract-vorbis.c: Add test for ogg extractor
- Date: Thu, 6 Jun 2019 10:07:32 +0000 (UTC)
commit 062510c049862e76c9cc96c1ffb8a7c25ffd9434
Author: Sumaid Syed <sumaidsyed gmail com>
Date: Mon Jun 3 22:25:09 2019 +0530
tracker-extract-vorbis.c: Add test for ogg extractor
Test should check basic tags and MusicBrainz IDs.
Audio test file is audio-test-ogg-vorbis.ogg and corresponding
json file is audio-test-ogg-vorbis.expected.json
Related with https://gitlab.gnome.org/GNOME/tracker-miners/issues/70
tests/functional-tests/meson.build | 1 +
.../audio-test-vorbis-extractor.expected.json | 29 +++++++++++++++++++++
.../audio/audio-test-vorbis-extractor.ogg | Bin 0 -> 78716 bytes
3 files changed, 30 insertions(+)
---
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index 6b9ed4622..8a245fcbe 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -2,6 +2,7 @@ extractor_tests = [
'audio/audio-test-1',
'audio/empty_albumi_song3',
'audio/audio-test-2',
+ 'audio/audio-test-vorbis-extractor',
'images/test-image-1',
'images/xmp-loaded-1',
'images/test-image-3',
diff --git a/tests/functional-tests/test-extraction-data/audio/audio-test-vorbis-extractor.expected.json
b/tests/functional-tests/test-extraction-data/audio/audio-test-vorbis-extractor.expected.json
new file mode 100644
index 000000000..dbe2d9db5
--- /dev/null
+++ b/tests/functional-tests/test-extraction-data/audio/audio-test-vorbis-extractor.expected.json
@@ -0,0 +1,29 @@
+{
+ "test": {
+ "Filename": "audio-test-vorbis-extractor.ogg",
+ "Bugzilla": "",
+ "Comment": "Basic OGG example"
+ },
+ "metadata": {
+ "@type": "nmm:MusicPiece",
+ "nie:title": "Simply Juvenile",
+ "nfo:genre": "Pop",
+ "nie:copyright": "none",
+ "nie:comment": "I am for simple OGG testing",
+ "nmm:trackNumber": "18",
+ "nfo:duration": "15",
+ "nmm:mbTrackID": "123456",
+ "nmm:mbRecordingID": "456123",
+ "nmm:performer": {
+ "@type": "nmm:Artist",
+ "nmm:artistName": "AbBaby",
+ "nmm:mbArtistID": "234561"
+ },
+ "nmm:musicAlbum": {
+ "@type": "nmm:MusicAlbum",
+ "nie:title": "SinCos",
+ "nmm:mbReleaseGroupID": "561234",
+ "nmm:mbReleaseID": "345612"
+ }
+ }
+}
diff --git a/tests/functional-tests/test-extraction-data/audio/audio-test-vorbis-extractor.ogg
b/tests/functional-tests/test-extraction-data/audio/audio-test-vorbis-extractor.ogg
new file mode 100644
index 000000000..53538f3c1
Binary files /dev/null and
b/tests/functional-tests/test-extraction-data/audio/audio-test-vorbis-extractor.ogg differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]