# HG changeset patch # User Markus Mützel # Date 1631727374 -7200 # Node ID 00c30b1c8250044ea88005b8012171dc5b51bc1d # Parent ec834eea1b82091d209d1e9d6fdbc4109c19e74f Skip tests for jupyter-notebook if compiled without RapidJSON. * test/jupyter-notebook/JupyterNotebook.tst: Remove unused junks. Depend on HAVE_RAPIDJSON. diff -r ec834eea1b82 -r 00c30b1c8250 test/jupyter-notebook/JupyterNotebook.tst --- a/test/jupyter-notebook/JupyterNotebook.tst Wed Sep 15 18:01:59 2021 +0200 +++ b/test/jupyter-notebook/JupyterNotebook.tst Wed Sep 15 19:36:14 2021 +0200 @@ -23,39 +23,8 @@ ## ######################################################################## - - - - -%! visibility = get (0, "defaultfigurevisible"); -%! toolkit = graphics_toolkit (); -%! unwind_protect -%! if (! __have_feature__ ("QT_OFFSCREEN") -%! || ! strcmp (graphics_toolkit (), "qt")) -%! try -%! graphics_toolkit ("gnuplot"); -%! catch -%! ## The system doesn't support gnuplot for drawing hidden -%! ## figures. Just return and have test marked as passing. -%! return; -%! end_try_catch -%! endif -%! set (0, "defaultfigurevisible", "off"); -%! - - -%! unwind_protect_cleanup -%! set (0, "defaultfigurevisible", visibility); -%! graphics_toolkit (toolkit); -%! end_unwind_protect - - - - - - ## Test running a single cell -%!test +%!testif HAVE_RAPIDJSON %! visibility = get (0, "defaultfigurevisible"); %! toolkit = graphics_toolkit (); %! unwind_protect @@ -90,7 +59,7 @@ %! end_unwind_protect ## Test running all cells -%!test +%!testif HAVE_RAPIDJSON %! visibility = get (0, "defaultfigurevisible"); %! toolkit = graphics_toolkit (); %! unwind_protect @@ -129,7 +98,7 @@ %! end_unwind_protect ## Test plot magic -%!test +%!testif HAVE_RAPIDJSON %! visibility = get (0, "defaultfigurevisible"); %! toolkit = graphics_toolkit (); %! unwind_protect @@ -173,7 +142,7 @@ %! end_unwind_protect ## Test errors -%!test +%!testif HAVE_RAPIDJSON %! visibility = get (0, "defaultfigurevisible"); %! toolkit = graphics_toolkit (); %! unwind_protect