bmp-basic-1 test fails on big-endian
- tracker-miners 3.7.beta
- Debian
It appears like the bmp-basic-1 build test fails on big endian architectures including Debian's s390x, ppc64. This test was added for 3.5.0.beta and has not passed on those architectures from that version up to tracker-miners 3.7.beta.
Build log excerpt
test: tracker-miners:extractor+images / bmp-basic-1
start time: 00:17:17
duration: 0.32s
result: exit status 1
command: TRACKER_FUNCTIONAL_TEST_CONFIG=
'/<<PKGBUILDDIR>>/obj-s390x-linux-gnu/tests/functional-tests/config/configuration.json'
TRACKER_EXTRACT_DEADLINE=5 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1
MALLOC_PERTURB_=172 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1
PYTHONPATH=/usr/lib/s390x-linux-gnu/tracker-3.0/ /usr/bin/python3
'/<<PKGBUILDDIR>>/tests/functional-tests/test_extractor_generic.py'
'/<<PKGBUILDDIR>>/tests/functional-tests/data/extractor-content/images/bmp-basic-1.expected.json'
----------------------------------- stdout -----------------------------------
tracker-extract returned: {
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"nao": "http://tracker.api.gnome.org/ontology/v3/nao#",
"nrl": "http://tracker.api.gnome.org/ontology/v3/nrl#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"fts": "http://tracker.api.gnome.org/ontology/v3/fts#",
"nmm": "http://tracker.api.gnome.org/ontology/v3/nmm#",
"slo": "http://tracker.api.gnome.org/ontology/v3/slo#",
"tracker": "http://tracker.api.gnome.org/ontology/v3/tracker#",
"dc": "http://purl.org/dc/elements/1.1/",
"nfo": "http://tracker.api.gnome.org/ontology/v3/nfo#",
"osinfo": "http://tracker.api.gnome.org/ontology/v3/osinfo#",
"nco": "http://tracker.api.gnome.org/ontology/v3/nco#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"nie": "http://tracker.api.gnome.org/ontology/v3/nie#",
"mfo": "http://tracker.api.gnome.org/ontology/v3/mfo#"
},
"@graph": [
{
"@id": "file:///<<PKGBUILDDIR>>/tests/functional-tests/data/extractor-content/images/bmp-basic-1.bmp",
"nfo:width": 16777216,
"nfo:height": 16777216,
"@type": [
"nfo:Image",
"nmm:Photo"
]
}
]
}
----------------------------------- stderr -----------------------------------
F
======================================================================
FAIL: ctional-tests/data/extractor-content/images/bmp-basic-1.expe
(__main__.GenericExtractionTestCase.ctional-tests/data/extractor-content/images/bmp-basic-1.expe)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/tests/functional-tests/test_extractor_generic.py", line 104, in generic_test_extraction
self.__assert_extraction_ok(jsonld)
File "/<<PKGBUILDDIR>>/tests/functional-tests/test_extractor_generic.py", line 128, in __assert_extraction_ok
self.assert_extract_result_matches_spec(
File "/<<PKGBUILDDIR>>/tests/functional-tests/fixtures.py", line 565, in assert_extract_result_matches_spec
self.assert_extract_result_matches_spec(
File "/<<PKGBUILDDIR>>/tests/functional-tests/fixtures.py", line 582, in assert_extract_result_matches_spec
self.assertEqual(
AssertionError: '1' != '16777216'
- 1
+ 16777216
: on property 'nfo:width' from file /<<PKGBUILDDIR>>/tests/functional-tests/data/extractor-content/images/bmp-basic-1.bmp
(requested on: '/<<PKGBUILDDIR>>/tests/functional-tests/data/extractor-content/images/bmp-basic-1.expected.json')
----------------------------------------------------------------------
Ran 1 test in 0.259s
FAILED (failures=1)
Full build log
- Click Maybe-Failed at https://buildd.debian.org/status/logs.php?pkg=tracker-miners&arch=s390x
- Compare with other architectures at https://buildd.debian.org/status/package.php?p=tracker-miners&suite=experimental