[tracker-miners: 3/4] add test fixture for gps location
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners: 3/4] add test fixture for gps location
- Date: Mon, 3 Feb 2020 19:18:07 +0000 (UTC)
commit 0d17a7897a75661c733cb93f97f477bc1ba76dea
Author: Viktor Gal <viktor gal maeth com>
Date: Mon Feb 3 16:51:06 2020 +0100
add test fixture for gps location
tests/functional-tests/meson.build | 1 +
.../images/jpeg-gps-location.expected.json | 25 +++++++++++++++++++++
.../images/jpeg-gps-location.jpg | Bin 0 -> 7684 bytes
3 files changed, 26 insertions(+)
---
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index 523a3906e..d009bb877 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -38,6 +38,7 @@ if libjpeg.found() and exempi.found() and libexif.found()
extractor_tests += [
'images/jpeg-basic',
'images/jpeg-region-of-interest',
+ 'images/jpeg-gps-location',
]
if libiptcdata.found()
diff --git a/tests/functional-tests/test-extraction-data/images/jpeg-gps-location.expected.json
b/tests/functional-tests/test-extraction-data/images/jpeg-gps-location.expected.json
new file mode 100644
index 000000000..a2feae5cb
--- /dev/null
+++ b/tests/functional-tests/test-extraction-data/images/jpeg-gps-location.expected.json
@@ -0,0 +1,25 @@
+{
+ "test": {
+ "Filename": "jpeg-gps-location.jpg",
+ "Comment": "Basic jpeg example"
+ },
+ "metadata": {
+ "@type": "nmm:Photo",
+ "nfo:width": "699",
+ "nfo:height": "464",
+ "nie:title": "Kid",
+ "nmm:fnumber": "5.0",
+ "nmm:focalLength": "5.0",
+ "nie:comment": "This is a for tracker test",
+ "slo:location": {
+ "slo:latitude": "-35.253368",
+ "slo:longitude": "149.112579",
+ "slo:postalAddress": {
+ "nco:locality": "Tig",
+ "nco:country": "Banglore"
+ }
+ },
+ "nfo:horizontalResolution": "20.0",
+ "nfo:verticalResolution": "20.0"
+ }
+}
diff --git a/tests/functional-tests/test-extraction-data/images/jpeg-gps-location.jpg
b/tests/functional-tests/test-extraction-data/images/jpeg-gps-location.jpg
new file mode 100644
index 000000000..3e248a834
Binary files /dev/null and b/tests/functional-tests/test-extraction-data/images/jpeg-gps-location.jpg differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]