From 476e84b169be61da74a1aaccaceb7a44d8c8239b Mon Sep 17 00:00:00 2001 From: abv Date: Fri, 26 Sep 2014 13:11:01 +0400 Subject: [PATCH] Added info on VTK availability in dversion command; VTK tests are corrected to report SKIPPED status if VIS is not available --- src/Draw/Draw_BasicCommands.cxx | 5 +++++ tests/v3d/ivtk/parse.rules | 1 + 2 files changed, 6 insertions(+) create mode 100644 tests/v3d/ivtk/parse.rules diff --git a/src/Draw/Draw_BasicCommands.cxx b/src/Draw/Draw_BasicCommands.cxx index 4296fa5fd6..772f057880 100644 --- a/src/Draw/Draw_BasicCommands.cxx +++ b/src/Draw/Draw_BasicCommands.cxx @@ -292,6 +292,11 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c #else di << "OpenCL disabled\n"; #endif +#ifdef HAVE_VTK + di << "VTK enabled (HAVE_VTK)\n"; +#else + di << "VTK disabled\n"; +#endif #ifdef No_Exception di << "Exceptions disabled (No_Exception)\n"; #else diff --git a/tests/v3d/ivtk/parse.rules b/tests/v3d/ivtk/parse.rules new file mode 100644 index 0000000000..8ea9c895ea --- /dev/null +++ b/tests/v3d/ivtk/parse.rules @@ -0,0 +1 @@ +SKIPPED /Could not open: TKIVtkDraw/ VIS is not available