External plugin do not support testing with baseline
It looks like external plugin cannot have baseline XML tests.
The following testing CMakeLists.txt :
enable_testing()
ExternalData_Add_Target(TestPluginData)
ExternalData_Expand_Arguments(TestPluginData
"DATA{Data/Baseline/Test.png}"
)
paraview_add_client_tests(
LOAD_PLUGIN "OverrideXMLOnly"
BASELINE_DIR "/home/glow/tmp/OverrideXMLOnly/Plugin/Testing/Data/Baseline"
TEST_DATA_TARGET TestPluginData
TEST_SCRIPTS Test.xml)
Result to the following smTestDriver command :
/home/glow/work/paraview/paraviewSecondary/paraview_build/bin/smTestDriver-pv5.7 "--enable-bt" "--client" "/home/glow/work/paraview/paraviewSecondary/paraview_build/bin/paraview" "--enable-bt" "--test-plugin=OverrideXMLOnly" "--test-script=/home/glow/tmp/OverrideXMLOnly/Plugin/Testing/Test.xml" "--test-directory=/home/glow/tmp/OverrideXMLOnly/build/Testing/Temporary" "--test-baseline=/home/glow/tmp/OverrideXMLOnly/build/ExternalData/Plugin/Testing/Data/Baseline/Test.png" "-dr" "--exit"
The incorrect part is
--test-baseline=/home/glow/tmp/OverrideXMLOnly/build/ExternalData/Plugin/Testing/Data/Baseline/PanoramicProjectionEquirectangular.png
When it would be expected to be
--test-baseline="/home/glow/tmp/OverrideXMLOnly/Plugin/Testing/Data/Baseline/PanoramicProjectionEquirectangular.png"
Notes :
- Here is the full plugin if needed, A lightly modified OverrideXMLOnly.tgz.
- Tests must be run from build/Plugin/Testing, unexpected and not really practical
- I'm not sure about the ExternalData part. is it needed ? Is it done correctly ?
- The build directory contains an ExternalData directory, with only an empty Object directory inside.
- During configuration, I see this :
-- Linked Plugin/Testing/Data/Baseline/Test.png.sha512 to ExternalData SHA512/22efa16a9a46ccf58de47a36c568521b6dd3737533ded2bfee979a3da11936fbe923a6a9dae25cfb14a135223ecc1a7e4a45fa0ce4b926d43bc112b55f115c71
Which results to a sha512 and object file in src/Plugin/Testing/Data/Baseline/, I do not want that.