Commit 5aeb9eb5 authored by Nikhil Shetty's avatar Nikhil Shetty Committed by Sebastien Jourdain

Adding option to load plugin at command line.

Two options are added to the command line namely --test-plugin and
--test-plugin-path. These will be used exclusively for loading and
testing individual plugins in paraview.

--test-plugin option takes the name of the plugin and loads it. The
  default plugin load paths are used with this option.

--test-plugin-path append the provided path to the actual search path.

Also adding two new cmake functions i.e add_client_plugin_tests and
add_client_server_plugin_tests which takes in Plugin name as an
additional option and passes it along with the --test-plugin command
line.

We are changing multiple plugin tests to use this options instead of
loading it in the test script. We also get rid of all xml code to load
the plugins from the test scripts.

Plugins have to be loaded on both client and server. The server-manager
on the client side typically helps load the plugin from default
location. However if the plugins were loaded from a different location
then the plugin-path needs to be specified not only at the client side
but also on the server side. This commit also achieves this.

The add_client[_server]_plugin test is extended to allow
plugin_path. The test driver is changed slightly to parse more options
sent to the server.

Change-Id: I15c26748979b280edae817cd34ea198cfe4a7bfe
parent 92bcf920
......@@ -65,6 +65,23 @@ MACRO(PV_PARSE_ARGUMENTS prefix arg_names option_names)
SET(${prefix}_${current_arg_name} ${current_arg_list})
ENDMACRO(PV_PARSE_ARGUMENTS)
#----------------------------------------------------------------------------
# Macro for extracting Plugin path and name from arguments
#----------------------------------------------------------------------------
MACRO(PV_EXTRACT_CLIENT_SERVER_ARGS)
set(options)
set(oneValueArgs LOAD_PLUGIN PLUGIN_PATH)
set(multiValueArgs )
cmake_parse_arguments(PV "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
set(CLIENT_SERVER_ARGS)
if(PV_PLUGIN_PATH)
set(CLIENT_SERVER_ARGS ${CLIENT_SERVER_ARGS} "--test-plugin-path=${PV_PLUGIN_PATH}")
endif()
if(PV_LOAD_PLUGIN)
set(CLIENT_SERVER_ARGS ${CLIENT_SERVER_ARGS} "--test-plugin=${PV_LOAD_PLUGIN}")
endif()
ENDMACRO(PV_EXTRACT_CLIENT_SERVER_ARGS)
#----------------------------------------------------------------------------
# Macro for setting values if a user did not overwrite them
#----------------------------------------------------------------------------
......
......@@ -19,7 +19,7 @@ ENDMACRO (process_args)
SET (TEST_GROUP_SIZE 3)
FUNCTION (add_pv_test prefix skip_test_flag_suffix)
PV_PARSE_ARGUMENTS(ACT "TEST_SCRIPTS;BASELINE_DIR;COMMAND" "" ${ARGN})
PV_PARSE_ARGUMENTS(ACT "TEST_SCRIPTS;BASELINE_DIR;COMMAND;LOAD_PLUGIN;PLUGIN_PATH" "" ${ARGN})
while (ACT_TEST_SCRIPTS)
set (counter 0)
set (extra_args)
......@@ -84,21 +84,28 @@ FUNCTION (add_pv_test prefix skip_test_flag_suffix)
ENDFUNCTION (add_pv_test)
# ----------------------------------------------------------------------------
# Test functions
FUNCTION (add_client_tests prefix)
PV_EXTRACT_CLIENT_SERVER_ARGS(${ARGN})
add_pv_test(${prefix} "_DISABLE_C"
COMMAND --client ${CLIENT_EXECUTABLE}
-dr
${CLIENT_SERVER_ARGS}
--disable-light-kit
--test-directory=${PARAVIEW_TEST_DIR}
${ARGN})
ENDFUNCTION (add_client_tests)
FUNCTION (add_client_server_tests prefix)
PV_EXTRACT_CLIENT_SERVER_ARGS(${ARGN})
add_pv_test(${prefix} "_DISABLE_CS"
COMMAND
--server $<TARGET_FILE:pvserver>
${CLIENT_SERVER_ARGS}
--client ${CLIENT_EXECUTABLE}
${CLIENT_SERVER_ARGS}
-dr
--disable-light-kit
--test-directory=${PARAVIEW_TEST_DIR}
......@@ -109,8 +116,11 @@ FUNCTION (add_client_render_server_tests prefix)
add_pv_test(${prefix} "_DISABLE_CRS"
COMMAND
--data-server $<TARGET_FILE:pvdataserver>
${CLIENT_SERVER_ARGS}
--render-server $<TARGET_FILE:pvrenderserver>
${CLIENT_SERVER_ARGS}
--client ${CLIENT_EXECUTABLE}
${CLIENT_SERVER_ARGS}
-dr
--disable-light-kit
--test-directory=${PARAVIEW_TEST_DIR}
......@@ -187,8 +197,8 @@ FUNCTION(add_multi_server_tests prefix nbServers)
ENDFUNCTION(add_multi_server_tests)
FUNCTION (add_tile_display_tests prefix tdx tdy )
PV_PARSE_ARGUMENTS(ACT "TEST_SCRIPTS;BASELINE_DIR" "" ${ARGN})
PV_PARSE_ARGUMENTS(ACT "TEST_SCRIPTS;BASELINE_DIR;LOAD_PLUGIN;PLUGIN_PATH" "" ${ARGN})
PV_EXTRACT_CLIENT_SERVER_ARGS(${ARGN})
MATH(EXPR REQUIRED_CPU '${tdx}*${tdy}-1') # -1 is for LESS
if (${PARAVIEW_USE_MPI})
......@@ -205,8 +215,9 @@ FUNCTION (add_tile_display_tests prefix tdx tdy )
COMMAND smTestDriver
--test-tiled ${tdx} ${tdy}
--server $<TARGET_FILE:pvserver>
${CLIENT_SERVER_ARGS}
--client ${CLIENT_EXECUTABLE}
${CLIENT_SERVER_ARGS}
-dr
--disable-light-kit
--test-directory=${PARAVIEW_TEST_DIR}
......
......@@ -46,6 +46,11 @@ vtkPVOptions::vtkPVOptions()
this->ParaViewDataName = 0;
this->StateFileName = 0;
this->TestPlugin = 0;
this->TestPluginPath = 0;
this->SetTestPlugin("");
this->SetTestPluginPath("");
this->TileDimensions[0] = 0;
this->TileDimensions[1] = 0;
this->TileMullions[0] = 0;
......@@ -99,6 +104,8 @@ vtkPVOptions::~vtkPVOptions()
this->SetStereoType(0);
this->SetParaViewDataName(0);
this->SetServerURL(0);
this->SetTestPlugin(0);
this->SetTestPluginPath(0);
}
//----------------------------------------------------------------------------
......@@ -244,6 +251,15 @@ void vtkPVOptions::Initialize()
"When specified, server side messages shown on client show rank of originating process",
vtkPVOptions::PVSERVER);
this->AddArgument("--test-plugin", 0, &this->TestPlugin,
"Specify the name of the plugin to load for testing",
vtkPVOptions::ALLPROCESS);
this->AddArgument("--test-plugin-path", 0, &this->TestPluginPath,
"Specify the path where more plugins can be found."
"This is typically used when testing plugins.",
vtkPVOptions::ALLPROCESS);
this->AddBooleanArgument("--print-monitors", 0, &this->PrintMonitors,
"Print detected monitors and exit (windows only).");
}
......
......@@ -134,6 +134,11 @@ public:
// Should this process just print monitor information and exit?
vtkGetMacro(PrintMonitors, int);
// Description:
// Adding ability to test plugins by loading them at command line
vtkGetStringMacro(TestPlugin);
vtkGetStringMacro(TestPluginPath);
enum ProcessTypeEnum
{
PARAVIEW = 0x2,
......@@ -196,6 +201,11 @@ protected:
vtkSetStringMacro(StateFileName);
char* StateFileName;
// Option to load plugins from command line for tests
vtkSetStringMacro(TestPlugin);
vtkSetStringMacro(TestPluginPath);
char* TestPlugin;
char* TestPluginPath;
private:
// Options:
......
......@@ -92,6 +92,13 @@ namespace
// On windows configuration files are in the parent directory
paths_to_search.push_back(app_dir + "/../");
// Add test plugin path into the search path.
std::string test_plugin_dir ( options->GetTestPluginPath());
if ( !test_plugin_dir.empty() )
{
paths_to_search.push_back( test_plugin_dir );
}
std::string name = plugin;
std::string filename = name;
if (add_extensions)
......
......@@ -86,10 +86,12 @@ IF (BUILD_TESTING)
# add it here as well. this test though is a subset of that test.
IF ( BUILD_SHARED_LIBS )
add_client_tests("pv"
LOAD_PLUGIN "CoProcessingPlugin"
TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/Testing/CoProcessingGUI.xml )
SET_TESTS_PROPERTIES(pv.CoProcessingGUI PROPERTIES RUN_SERIAL ON)
ELSE ( BUILD_SHARED_LIBS )
add_client_tests("pv"
LOAD_PLUGIN "CoProcessingPlugin"
TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/Testing/CoProcessingGUI-static.xml )
SET_TESTS_PROPERTIES(pv.CoProcessingGUI-static PROPERTIES RUN_SERIAL ON)
ENDIF ( BUILD_SHARED_LIBS )
......
......@@ -7,12 +7,6 @@
<pqevent object="pqClientMainWindow/pqLockViewSizeCustomDialog/Height" command="set_string" arguments="400" />
<pqevent object="pqClientMainWindow/pqLockViewSizeCustomDialog/ButtonBox/1QPushButton2" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/pqLockViewSizeCustomDialog/ButtonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="Moments" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="CoProcessingPlugin" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="RTAnalyticSource" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
......
......@@ -9,6 +9,7 @@ set (EyeDomeLighting_BREAK TRUE)
IF (PARAVIEW_DATA_ROOT AND PARAVIEW_BUILD_QT_GUI AND BUILD_SHARED_LIBS)
add_client_tests("pv"
LOAD_PLUGIN "EyeDomeLightingView"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${EYE_DOME_LIGHTING_TESTS}
)
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="EyeDomeLightingView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Close" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/pqRenderView" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
......
......@@ -4,10 +4,6 @@ SET(_SUFFIX "")
IF(VISIT_BUILD_READER_GMV)
SET(_SUFFIX "${_SUFFIX}_WithVisitBridge")
ENDIF(VISIT_BUILD_READER_GMV)
IF(NOT BUILD_SHARED_LIBS)
SET(_SUFFIX "${_SUFFIX}-static")
ENDIF(NOT BUILD_SHARED_LIBS)
SET(GMV_READER_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/GMVReaderBasicRead${_SUFFIX}.xml
......@@ -16,24 +12,18 @@ SET(GMV_READER_TESTS
SET(GMVReaderBasicRead${_SUFFIX}_BREAK TRUE)
SET(GMVReaderInvalidFiles${_SUFFIX}_BREAK TRUE)
SET(GMV_READER_SERVER_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/serverGMVReaderBasicRead${_SUFFIX}.xml
${CMAKE_CURRENT_SOURCE_DIR}/serverGMVReaderInvalidFiles${_SUFFIX}.xml
)
SET(serverGMVReaderBasicRead${_SUFFIX}_BREAK TRUE)
SET(serverGMVReaderInvalidFiles${_SUFFIX}_BREAK TRUE)
IF (PARAVIEW_DATA_ROOT AND PARAVIEW_BUILD_QT_GUI)
ADD_CLIENT_TESTS("pv"
add_client_tests("pv"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${GMV_READER_TESTS}
LOAD_PLUGIN "GMVReader"
)
SET_PROPERTY(TEST "pv.GMVReaderInvalidFiles${_SUFFIX}" PROPERTY PASS_REGULAR_EXPRESSION "client0 process exited with code 0")
ADD_CLIENT_SERVER_TESTS("pvcs"
add_client_server_tests("pvcs"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${GMV_READER_SERVER_TESTS}
TEST_SCRIPTS ${GMV_READER_TESTS}
LOAD_PLUGIN "GMVReader"
)
SET_PROPERTY(TEST "pvcs.serverGMVReaderInvalidFiles${_SUFFIX}" PROPERTY PASS_REGULAR_EXPRESSION "server process exited with code 0")
SET_PROPERTY(TEST "pvcs.GMVReaderInvalidFiles${_SUFFIX}" PROPERTY PASS_REGULAR_EXPRESSION "server process exited with code 0")
ENDIF (PARAVIEW_DATA_ROOT AND PARAVIEW_BUILD_QT_GUI)
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- Load the data -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/gmvtest.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- Extract unstructured grid and tracer data -->
......
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- Load the data -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
......
<?xml version="1.0" ?>
<pqevents>
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.ascii.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- file2 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.binary.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="set_string" arguments="200" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="key" arguments="16777221" />
<!-- file3 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/polygonal.mesh.definition.too.short.ascii.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="outputDialog/closeButton" command="activate" arguments="" />
<!-- To minimise tiny picture norm deviations among platforms: -->
<!-- a) disable orientation axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
<!-- b) disable center axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowCenterAxes" command="set_boolean" arguments="false" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
......
<?xml version="1.0" ?>
<pqevents>
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.ascii.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- file2 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.binary.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="set_string" arguments="200" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="key" arguments="16777221" />
<!-- file3 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/polygonal.mesh.definition.too.short.ascii.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="outputDialog/closeButton" command="activate" arguments="" />
<!-- To minimise tiny picture norm deviations among platforms: -->
<!-- a) disable orientation axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
<!-- b) disable center axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowCenterAxes" command="set_boolean" arguments="false" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
......
This diff is collapsed.
<?xml version="1.0" ?>
<pqevents>
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.ascii.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- file2 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.binary.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="set_string" arguments="200" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="key" arguments="16777221" />
<!-- file3 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/polygonal.mesh.definition.too.short.ascii.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="outputDialog/closeButton" command="activate" arguments="" />
<!-- To minimise tiny picture norm deviations among platforms: -->
<!-- a) disable orientation axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
<!-- b) disable center axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowCenterAxes" command="set_boolean" arguments="false" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/remotePlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/loadSelected_Remote" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.ascii.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- file2 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.binary.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="set_string" arguments="200" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="key" arguments="16777221" />
<!-- file3 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/polygonal.mesh.definition.too.short.ascii.gmv" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="outputDialog/closeButton" command="activate" arguments="" />
<!-- To minimise tiny picture norm deviations among platforms: -->
<!-- a) disable orientation axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
<!-- b) disable center axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowCenterAxes" command="set_boolean" arguments="false" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.ascii.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- file2 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.binary.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="set_string" arguments="200" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="key" arguments="16777221" />
<!-- file3 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/polygonal.mesh.definition.too.short.ascii.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="outputDialog/closeButton" command="activate" arguments="" />
<!-- To minimise tiny picture norm deviations among platforms: -->
<!-- a) disable orientation axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
<!-- b) disable center axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowCenterAxes" command="set_boolean" arguments="false" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
</pqevents>
<?xml version="1.0" ?>
<pqevents>
<!-- Load plugin and setup the view -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/remotePlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/remoteGroup/loadSelected_Remote" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="GMVReader" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- Test possible regressions of #13958 -->
<!-- file1 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.ascii.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- file2 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/variable.definition.too.short.binary.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="set_string" arguments="200" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/Position/LineEdit0" command="key" arguments="16777221" />
<!-- file3 -->
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/GMV/invalid/polygonal.mesh.definition.too.short.ascii.gmv" />
<pqevent object="pqSelectReaderDialog/listWidget" command="currentChangedbyItemName" arguments="GMV Binary/ASCII Files (Plugin)" />
<pqevent object="pqSelectReaderDialog/okButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="outputDialog/closeButton" command="activate" arguments="" />
<!-- To minimise tiny picture norm deviations among platforms: -->
<!-- a) disable orientation axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowOrientationAxes" command="set_boolean" arguments="false" />
<!-- b) disable center axes actor -->
<pqevent object="pqClientMainWindow/axesToolbar/actionShowCenterAxes" command="set_boolean" arguments="false" />
<!-- Change view orientation for screen capture -->
<pqevent object="pqClientMainWindow/cameraToolbar/actionNegativeY" command="activate" arguments="" />
</pqevents>
......@@ -2,6 +2,7 @@ include(ParaViewTestingMacros)
if (PARAVIEW_DATA_ROOT AND PARAVIEW_BUILD_QT_GUI AND BUILD_SHARED_LIBS)
add_client_tests("pv"
LOAD_PLUGIN "MantaView"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/MantaView.xml
)
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="MantaView" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Close" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/MantaView" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
......
......@@ -22,6 +22,7 @@ set(PrismScaleView1_USE_OLD_PANELS TRUE)
IF (PARAVIEW_DATA_ROOT AND BUILD_SHARED_LIBS)
add_client_tests("Prism"
LOAD_PLUGIN "PrismPlugin"
BASELINE_DIR ${PARAVIEW_DATA_ROOT}/Baseline
TEST_SCRIPTS ${PRISM_TESTS_WITH_BASELINES}
)
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PrismPlugin" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/PrismBrick.e" />
<pqevent object="pqClientMainWindow/objectInspectorDock/objectInspector/ScrollArea/qt_scrollarea_viewport/PanelArea/Editor/Variables" command="setCurrent" arguments="0.0" />
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PrismPlugin" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/PrismBrick.e" />
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PrismPlugin" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/PrismBrick.e" />
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PrismPlugin" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/PrismBrick.e" />
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="PrismPlugin" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileOpen" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/PrismBrick.e" />
......
......@@ -5,35 +5,20 @@ set(MULTI_SLICE_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/QuadViewSliceWavelet.xml
)
set(MULTI_SLICE_SERVER_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/serverQuadViewSliceMultiBlock.xml
${CMAKE_CURRENT_SOURCE_DIR}/serverQuadViewSliceWavelet.xml
)
set(MULTI_SLICE_STATIC_TESTS
${CMAKE_CURRENT_SOURCE_DIR}/QuadViewSliceMultiBlock-static.xml
${CMAKE_CURRENT_SOURCE_DIR}/QuadViewSliceWavelet-static.xml
)