Prep VTK C++ tests to run in browsers
- enablesr Rendering{Core, OpenGL}CxxTests in browser with vtk.wasm. - upgrades to CI can be found in the next commit. - all C++ tests are run with a python script Testing/WebAssembly/runner.py. This script coordinates the entire wasm testing process. - the runner.py script generates a html file per unit test at runtime, serves the html, js and wasm files with a http server and opens the URL in a browser. It implements some usefule POST/GET actions which enable C++ tests to preload/dump files and forward stdout/stderr/exit codes to the python process. - this commit introduces vtkEmscriptenTestUtilities which can load data files and baseline images required by a c++ unit test from a browser sandbox.
Showing
- CMake/CTestCustom.cmake.in 9 additions, 0 deletionsCMake/CTestCustom.cmake.in
- CMake/FindNodeJS.cmake 1 addition, 0 deletionsCMake/FindNodeJS.cmake
- CMake/vtkModuleTesting.cmake 33 additions, 32 deletionsCMake/vtkModuleTesting.cmake
- CMakeLists.txt 11 additions, 3 deletionsCMakeLists.txt
- IO/Import/Testing/Cxx/CMakeLists.txt 1 addition, 1 deletionIO/Import/Testing/Cxx/CMakeLists.txt
- Imaging/Core/Testing/Cxx/CMakeLists.txt 33 additions, 3 deletionsImaging/Core/Testing/Cxx/CMakeLists.txt
- Rendering/Core/Testing/Cxx/CMakeLists.txt 20 additions, 0 deletionsRendering/Core/Testing/Cxx/CMakeLists.txt
- Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt 19 additions, 0 deletionsRendering/OpenGL2/Testing/Cxx/CMakeLists.txt
- Rendering/OpenGL2/Testing/Cxx/TestTessellationShader.cxx 4 additions, 0 deletionsRendering/OpenGL2/Testing/Cxx/TestTessellationShader.cxx
- Rendering/WebGPU/Testing/Cxx/CMakeLists.txt 4 additions, 4 deletionsRendering/WebGPU/Testing/Cxx/CMakeLists.txt
- Testing/Core/CMakeLists.txt 14 additions, 3 deletionsTesting/Core/CMakeLists.txt
- Testing/Core/vtkEmscriptenTestUtilities.cxx 93 additions, 0 deletionsTesting/Core/vtkEmscriptenTestUtilities.cxx
- Testing/Core/vtkEmscriptenTestUtilities.h 37 additions, 0 deletionsTesting/Core/vtkEmscriptenTestUtilities.h
- Testing/Core/vtkEmscriptenTestUtilities.js 60 additions, 0 deletionsTesting/Core/vtkEmscriptenTestUtilities.js
- Testing/Core/vtkTestUtilities.h 21 additions, 0 deletionsTesting/Core/vtkTestUtilities.h
- Testing/Rendering/vtkTesting.cxx 105 additions, 9 deletionsTesting/Rendering/vtkTesting.cxx
- Testing/WebAssembly/runner.py 302 additions, 0 deletionsTesting/WebAssembly/runner.py
- Testing/WebAssembly/templates/index.html 191 additions, 0 deletionsTesting/WebAssembly/templates/index.html
- Web/WebAssembly/CMakeLists.txt 5 additions, 3 deletionsWeb/WebAssembly/CMakeLists.txt
- Web/WebAssembly/Testing/JavaScript/CMakeLists.txt 5 additions, 2 deletionsWeb/WebAssembly/Testing/JavaScript/CMakeLists.txt
Loading
Please register or sign in to comment