|
|
|
@ -62,42 +62,51 @@ const struct { |
|
|
|
const char* requiresImageConverter; |
|
|
|
const char* requiresImageConverter; |
|
|
|
const char* expected; |
|
|
|
const char* expected; |
|
|
|
} InfoData[]{ |
|
|
|
} InfoData[]{ |
|
|
|
{"importer", Containers::array<Containers::String>({ |
|
|
|
{"importer", {InPlaceInit, { |
|
|
|
"--info-importer", "-i", "someOption=yes"}), |
|
|
|
"--info-importer", "-i", "someOption=yes" |
|
|
|
|
|
|
|
}}, |
|
|
|
"AnySceneImporter", nullptr, nullptr, |
|
|
|
"AnySceneImporter", nullptr, nullptr, |
|
|
|
"info-importer.txt"}, |
|
|
|
"info-importer.txt"}, |
|
|
|
{"converter", Containers::array<Containers::String>({ |
|
|
|
{"converter", {InPlaceInit, { |
|
|
|
"-C", "AnySceneConverter", "--info-converter", "-c", "someOption=yes"}), |
|
|
|
"-C", "AnySceneConverter", "--info-converter", "-c", "someOption=yes" |
|
|
|
|
|
|
|
}}, |
|
|
|
nullptr, "AnySceneConverter", nullptr, |
|
|
|
nullptr, "AnySceneConverter", nullptr, |
|
|
|
"info-converter.txt"}, |
|
|
|
"info-converter.txt"}, |
|
|
|
{"converter, implicit", Containers::array<Containers::String>({ |
|
|
|
{"converter, implicit", {InPlaceInit, { |
|
|
|
"--info-converter", "-c", "someOption=yes"}), |
|
|
|
"--info-converter", "-c", "someOption=yes" |
|
|
|
|
|
|
|
}}, |
|
|
|
nullptr, "AnySceneConverter", nullptr, |
|
|
|
nullptr, "AnySceneConverter", nullptr, |
|
|
|
"info-converter.txt"}, |
|
|
|
"info-converter.txt"}, |
|
|
|
{"image converter", Containers::array<Containers::String>({ |
|
|
|
{"image converter", {InPlaceInit, { |
|
|
|
"-P", "AnyImageConverter", "--info-image-converter", "-p", "someOption=yes"}), |
|
|
|
"-P", "AnyImageConverter", "--info-image-converter", "-p", "someOption=yes" |
|
|
|
|
|
|
|
}}, |
|
|
|
nullptr, nullptr, "AnyImageConverter", |
|
|
|
nullptr, nullptr, "AnyImageConverter", |
|
|
|
"info-image-converter.txt"}, |
|
|
|
"info-image-converter.txt"}, |
|
|
|
{"image converter, implicit", Containers::array<Containers::String>({ |
|
|
|
{"image converter, implicit", {InPlaceInit, { |
|
|
|
"--info-image-converter", "-p", "someOption=yes"}), |
|
|
|
"--info-image-converter", "-p", "someOption=yes" |
|
|
|
|
|
|
|
}}, |
|
|
|
nullptr, nullptr, "AnyImageConverter", |
|
|
|
nullptr, nullptr, "AnyImageConverter", |
|
|
|
"info-image-converter.txt"}, |
|
|
|
"info-image-converter.txt"}, |
|
|
|
{"importer, ignored input and output", Containers::array<Containers::String>({ |
|
|
|
{"importer, ignored input and output", {InPlaceInit, { |
|
|
|
"--info-importer", "input.obj", "output.ply"}), |
|
|
|
"--info-importer", "input.obj", "output.ply" |
|
|
|
|
|
|
|
}}, |
|
|
|
"AnySceneImporter", nullptr, nullptr, |
|
|
|
"AnySceneImporter", nullptr, nullptr, |
|
|
|
"info-importer-ignored-input-output.txt"}, |
|
|
|
"info-importer-ignored-input-output.txt"}, |
|
|
|
{"data", Containers::array<Containers::String>({ |
|
|
|
{"data", {InPlaceInit, { |
|
|
|
"-I", "ObjImporter", "--info", Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/point.obj")}), |
|
|
|
"-I", "ObjImporter", "--info", Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/point.obj") |
|
|
|
|
|
|
|
}}, |
|
|
|
"ObjImporter", nullptr, nullptr, |
|
|
|
"ObjImporter", nullptr, nullptr, |
|
|
|
"info-data.txt"}, |
|
|
|
"info-data.txt"}, |
|
|
|
{"data, map", Containers::array<Containers::String>({ |
|
|
|
{"data, map", {InPlaceInit, { |
|
|
|
"--map", "-I", "ObjImporter", "--info", Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/point.obj")}), |
|
|
|
"--map", "-I", "ObjImporter", "--info", Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/point.obj") |
|
|
|
|
|
|
|
}}, |
|
|
|
"ObjImporter", nullptr, nullptr, |
|
|
|
"ObjImporter", nullptr, nullptr, |
|
|
|
/** @todo change to something else once we have a plugin that can
|
|
|
|
/** @todo change to something else once we have a plugin that can
|
|
|
|
zero-copy pass the imported data */ |
|
|
|
zero-copy pass the imported data */ |
|
|
|
"info-data.txt"}, |
|
|
|
"info-data.txt"}, |
|
|
|
{"data, ignored output file", Containers::array<Containers::String>({ |
|
|
|
{"data, ignored output file", {InPlaceInit, { |
|
|
|
"-I", "ObjImporter", "--info", Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/point.obj"), "whatever.ply"}), |
|
|
|
"-I", "ObjImporter", "--info", Utility::Path::join(SCENETOOLS_TEST_DIR, "SceneConverterTestFiles/point.obj"), "whatever.ply" |
|
|
|
|
|
|
|
}}, |
|
|
|
"ObjImporter", nullptr, nullptr, |
|
|
|
"ObjImporter", nullptr, nullptr, |
|
|
|
"info-data-ignored-output.txt"} |
|
|
|
"info-data-ignored-output.txt"} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|