Commit 6fed959d authored by Ben Boeckel's avatar Ben Boeckel
Browse files

tests: port paraview autodeploy test

parent 2f2e6e1f
include(CMakeDependentOption)
# cmake_dependent_option(TEST_REMOTE_PARAVIEW_WEB
# "When enabled, tests a live instance of ParaViewWeb." OFF
# BUILD_TESTING OFF)
#cmake_dependent_option(TEST_NIGHTLY_BINARIES
# "When enabled, tests are run on binaries downloaded from the specified URL rather than generated binaries" OFF
# BUILD_TESTING OFF)
# mark_as_advanced(TEST_REMOTE_PARAVIEW_WEB TEST_NIGHTLY_BINARIES)
mark_as_advanced(TEST_NIGHTLY_BINARIES)
if (NOT BUILD_TESTING)
return()
endif()
# set(REMOTE_PVWEB_VISUALIZER_URLS
# http://pvw-test.kitware.com/sbtest
# http://pvw.kitware.com/sbtest
# http://paraviewweb.kitware.com/sbtest
# CACHE STRING "A list of urls against which to run a simple Web Visualizer test.")
# set(REMOTE_PVWEB_TEST_BROWSER firefox
# CACHE STRING "Which browser to use during testing, either chrome or firefox")
# mark_as_advanced(REMOTE_PVWEB_VISUALIZER_URLS REMOTE_PVWEB_TEST_BROWSER)
include(${CMAKE_CURRENT_SOURCE_DIR}/tests.cmake)
......@@ -51,25 +51,6 @@ add_test(NAME TestUI
set_tests_properties(TestUI PROPERTIES
LABELS "PARAVIEW" DEPENDS "PrepareBinariesForTesting")
#------------------------------------------------------------------------------
# Simple test of a public, automatically deployed version of paraviewweb. If
# system python does not have selenium, test will still be added and run, but
# will be allowed to pass only in the case of missing python modules. In the
# future we can set here a SKIP_RETURN_CODE to allow the test to return a
# value which will indicate to CTest that some dependencies were not met.
#
# if(ENABLE_REMOTE_PVWEB_TEST)
# find_package(PythonInterp 2.7)
# if(PYTHON_EXECUTABLE)
# add_test(NAME Test-pvweb-autodeploy
# COMMAND "${PYTHON_EXECUTABLE}"
# "${CMAKE_CURRENT_SOURCE_DIR}/../Scripts/pvweb/auto_pvweb_test.py"
# "--testurls=${REMOTE_PVWEB_VISUALIZER_URLS}"
# "--browser=${REMOTE_PVWEB_TEST_BROWSER}")
# set_tests_properties(Test-pvweb-autodeploy PROPERTIES LABELS "PARAVIEW")
# endif()
# endif()
#------------------------------------------------------------------------------
# Simple test to test paraviewweb.
#
......
cmake_dependent_option(PARAVIEW_WEB_TEST_REMOTE "" OFF
"paraview_enabled" OFF)
if (PARAVIEW_TEST_REMOTE_WEB)
include("${CMAKE_CURRENT_LIST_DIR}/paraview.test.web.cmake")
endif ()
set(PARAVIEW_WEB_REMOTE_URLS
http://pvw-test.kitware.com/sbtest
http://pvw.kitware.com/sbtest
http://paraviewweb.kitware.com/sbtest
CACHE STRING "A list of urls against which to run a simple Web Visualizer test.")
set(PARAVIEW_WEB_BROWSER firefox
CACHE STRING "Which browser to use during testing, either chrome or firefox")
set_properties(CACHE PARAVIEW_WEB_BROWSER
PROPERTY
STRINGS firefox chrome)
mark_as_advanced(PARAVIEW_WEB_REMOTE_URLS PARAVIEW_WEB_BROWSER)
#------------------------------------------------------------------------------
# Simple test of a public, automatically deployed version of paraviewweb. If
# system python does not have selenium, test will still be added and run, but
# will be allowed to pass only in the case of missing python modules.
# TODO: In the future we can set here a SKIP_RETURN_CODE to allow the test to
# return a value which will indicate to CTest that some dependencies were not
# met.
find_package(PythonInterp 2.7)
if (PYTHON_EXECUTABLE)
add_test(
NAME paraview-web-autodeploy
COMMAND "${PYTHON_EXECUTABLE}"
"${CMAKE_CURRENT_SOURCE_DIR}/../Scripts/pvweb/auto_pvweb_test.py"
"--testurls=${PARAVIEW_WEB_REMOTE_URLS}"
"--browser=${PARAVIEW_WEB_BROWSER}")
set_tests_properties(paraview-web-autodeploy
PROPERTIES
LABELS "PARAVIEW")
endif ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment