Vladimír Vondruš
6721c0e3b2
DebugTools: ugh WTF.
...
I really need to implement my own float printer already, this is a mess.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
88ec50127e
DebugTools: I'm starting to get tired of this.
6 years ago
Vladimír Vondruš
dc56bf413a
DebugTools: update test to pass on clang-cl.
...
NaN printing strikes again.
6 years ago
Vladimír Vondruš
f7f676e01d
DebugTools: remove unused declaration in a test.
...
THis one is split into imageFileZeroDelta() and imageFileNonZeroDelta().
6 years ago
Vladimír Vondruš
f077fc1ada
DebugTools: update test to pass with newer Emscripten on the CI.
6 years ago
Vladimír Vondruš
d89b74d40a
DebugTools: now it can happen that the pixel list is empty.
7 years ago
Vladimír Vondruš
5b1c521f99
DebugTools: provide verbose diagnostic from CompareImage.
7 years ago
Vladimír Vondruš
cb492f932a
DebugTools: don't print a newline after comparison delta image.
...
It makes other stuff too nasty.
7 years ago
Vladimír Vondruš
dbfc145362
DebugTools: copypaste oops, so this wasn't testing the correct thing.
7 years ago
Vladimír Vondruš
f84a91ea06
DebugTools: improve CompareImage failure message.
...
The comparison is <=, so if it passes, it's not "below".
7 years ago
Vladimír Vondruš
a0232e8506
DebugTools: CompareImage can now compare against pixel views.
...
This is getting too good.
7 years ago
Vladimír Vondruš
069c81b9cb
Deprecate passing nullptr to images.
...
Causes too much pain. Ugh.
7 years ago
Vladimír Vondruš
c6737e1958
DebugTools: PIMPL all CompareImage's state.
...
The distinction didn't make sense and we had to include more than
necessary. It's great how easy those refactorings are with the 100% code
coverage.
7 years ago
Vladimír Vondruš
ed6cde9536
DebugTools: support --save-diagnostic in CompareImage.
7 years ago
Vladimír Vondruš
f102b86645
DebugTools: prepare CompareImage for more than one plugin manager.
7 years ago
Vladimír Vondruš
9e0b24fa5b
DebugTools: doc++, minor cleanup.
7 years ago
Vladimír Vondruš
5d9fb386f5
DebugTools: make CompareImage work correctly with NaNs and infinities.
7 years ago
Vladimír Vondruš
3626562e1d
Adapted to Corrade changes.
...
Mostly missing includes now.
7 years ago
Vladimír Vondruš
e6fb085db7
DebugTools: minor cleanup.
7 years ago
Vladimír Vondruš
10fec86534
DebugTools: no need to use std::vector in CompareImage internals.
...
Containers::Array will do juust fine.
7 years ago
Vladimír Vondruš
930a323c05
GL: removed deprecated aliases to GL functionality in the root namespace.
...
Deprecated for 2018.04, it's been almost a year since. Whoever is using
Magnum regularly updated already, and who not can always upgrade
gradually (2018.02, 2018.04, 2018.10, 2019.01 etc.).
7 years ago
Vladimír Vondruš
8357442ad7
DebugTools: don't try to use system plugin dirs in CompareImage test.
...
Due to that, all the tests got skipped on the CI and moreover when ABI
was broken, tests were failing hard due to ABI mismatches with system
installed plugins. No good.
Some variants still need to access the system plugin dir (such as checks
for compressed data), but those are minimal. Sanitized them nevertheless
so a broken system-installed plugin doesn't break the test.
7 years ago
Vladimír Vondruš
24b8ff086c
Removed std::optional backwards compatibility.
...
This was a dirty mess. Good riddance. Also removing the include from the
header now, as it has a forward declaration and thus is not needed.
7 years ago
Vladimír Vondruš
2149f7b869
Wrap all tests in unnamed namespaces.
...
This makes the compiler warn about test cases that aren't ever used,
which is a good thing.
7 years ago
Vladimír Vondruš
e6b7aa12fa
Updated copyright year.
7 years ago
Vladimír Vondruš
7ad64bda2a
DebugTools: add CompareImageFile, CompareImageToFile + CompareFileToImage.
...
These provide more convenience for the usual cases of comparing a
generated image to a file and vice versa.
8 years ago
Vladimír Vondruš
4d565a8f73
DebugTools: CompareImage now supports only generic pixel formats.
8 years ago
Vladimír Vondruš
7785698d35
Split the OpenGL layer out, pt 21: adapted DebugTools.
8 years ago
Vladimír Vondruš
9dcaf23389
Split the OpenGL layer out, pt 4: new Magnum::GL namespace.
...
At the moment just the GL library itself w/o the tests, and without
backwards compatibility aliases. The following types were left in the
root namespace, despite being in the GL/ directory, as they will get
moved back soon:
* Image, CompressedImage and their dimensional typedefs
* ImageView, CompressedImageView and their dimensional typedefs
* PixelStorage
Not PixelFormat etc., that one will stay in the GL namespace and a
completely new PixelFormat enum will be provided in the root namespace.
8 years ago
Vladimír Vondruš
623fa97970
Updated copyright year.
8 years ago
Vladimír Vondruš
7a16273e5d
Updated copyright year.
9 years ago
Vladimír Vondruš
100405ec89
DebugTools: GCC 4.7 can't handle raw strings inside macros.
9 years ago
Vladimír Vondruš
c45472a0f0
DebugTools: initial implementation of CompareImage class.
...
Currently just does per-pixel comparison and calculates absolute delta,
failing the comparison if max/mean delta threshold is above specified
values. Useful enough for the case I have right now, might fail in other
case -- but still better than whatever else I was using before :)
9 years ago