Browse Source

sceneconverter: verify also the unimplemented case for 1D images.

pull/601/head
Vladimír Vondruš 3 years ago
parent
commit
b38b05cae1
  1. 1
      src/Magnum/SceneTools/Test/CMakeLists.txt
  2. 10
      src/Magnum/SceneTools/Test/SceneConverterTest.cpp
  3. BIN
      src/Magnum/SceneTools/Test/SceneConverterTestFiles/1d.ktx2

1
src/Magnum/SceneTools/Test/CMakeLists.txt

@ -91,6 +91,7 @@ if(CORRADE_TARGET_UNIX AND NOT CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT)
# executable so plugin existence checks are consistent between the two
${MAGNUM_SCENECONVERTER_STATIC_PLUGINS}
FILES
SceneConverterTestFiles/1d.ktx2
SceneConverterTestFiles/blue4x4.png
# magnum-imageconverter --layers blue4x4.png --array blue4x4x1.ktx2 -c writerName=
SceneConverterTestFiles/blue4x4x1.ktx2

10
src/Magnum/SceneTools/Test/SceneConverterTest.cpp

@ -968,6 +968,16 @@ const struct {
"\n" /* Just a suffix */
"Trade::GltfSceneConverter::add(): can't load NonexistentImageConverter for image conversion\n"
"Cannot add 3D image 0\n"},
{"1D image processing not implemented", {InPlaceInit, {
/* Faking an image-only importer which is fine, it's failing right
after anyway; also not supplying any size to the resize plugin */
"-I" "KtxImporter", "-P" "StbResizeImageConverter",
Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/1d.ktx2"),
Utility::Path::join(SCENETOOLS_TEST_OUTPUT_DIR, "SceneConverterTestFiles/whatever.gltf")
}},
nullptr, "KtxImporter", nullptr,
nullptr,
"Sorry, 1D image conversion is not implemented yet\n"},
};
SceneConverterTest::SceneConverterTest() {

BIN
src/Magnum/SceneTools/Test/SceneConverterTestFiles/1d.ktx2

Binary file not shown.
Loading…
Cancel
Save