1. 14 May, 2013 1 commit
    • Brad King's avatar
      Use vtk_add_test_cxx function · 5b018861
      Brad King authored
      Refactor */*/Testing/Cxx/CMakeLists.txt to use the vtk_add_test_cxx
      function instead of direct add_test calls.
      Change-Id: I73dee627fa87a399c48b409af046b116fc75a0fd
  2. 08 Apr, 2013 1 commit
  3. 03 Apr, 2013 1 commit
    • Sean McBride's avatar
      Removed VS6 and VS7 workarounds · de8eae2b
      Sean McBride authored
      Assume that if _MSC_VER is defined that it is >= 1310
      (ie VS7.1).
      This improves the readability of the code, and slightly
      improved code coverage.
      Change-Id: Iffc601f4cff53c4e267835e39b2b17a3adf74494
  4. 16 Mar, 2013 1 commit
    • Sean McBride's avatar
      Removed workarounds for old gcc's · 214c83d3
      Sean McBride authored
      Removed gcc 2 workaround, as there are no other comparisons
      of __GNUC__ against the number 2 (except KWSys and 3rd party).
      Removed broken VTK_CXX_GCC_3 since __GNUC__ can't be equal to
      and less than 3 at the same time.
      Change-Id: Iefdbb1a417fac120ce74ed91d030e4f7dbcdfd0f
  5. 13 Mar, 2013 3 commits
  6. 21 Feb, 2013 3 commits
    • Bill Lorensen's avatar
      COMP: Change to tclsh does not work on windows · 13ab3b0e
      Bill Lorensen authored
      The change to use tclsh rather than the vtk executable does not work
      on windows.
      This patch reverts that change.
      Change-Id: I048e8c62a547a2a04a2923df084016b451c636d3
    • Bill Lorensen's avatar
      ENH: Use TCL_TCLSH versus VTK_TCL_EXE · 9b78526a
      Bill Lorensen authored
      For tcl tests that do no graphics there is no need to use
      VTK_TCL_EXE. TCL_TCLSH works as long as the auto_path is set
      corrrectly. This may help solve some timeouts on a few MAC builds.
      Change-Id: I209e569af190dd90d78615fec92fb227149dbbc1
    • Bill Lorensen's avatar
      ENH: Reduce the output of TestSetGet.tcl · d09b4fa7
      Bill Lorensen authored
      TestSetGet.tcl produces over 6 meg of output. This patch reduces that
      to 50k. This should speed up the test and may stop timeouts on some
      Mac systems.
      Change-Id: I102f85bb8bcd4985e1d7ee2c66361da4ddaeb242
  7. 13 Feb, 2013 1 commit
    • Dave DeMarle's avatar
      Add tests that make it easier to take the pulse of vtk on cdash · 2bc6f2df
      Dave DeMarle authored
      One script just summarizes what is going on, so that you
      can see what tests fail the most and focus on them.
      The other scrapes the dashboard results for relevant results from
      testsysteminformation so that you can determine what we cover and
      what we don't.
      Change-Id: I142f829a5d362f66799b9bdacd2ac7d513d69b3f
  8. 12 Feb, 2013 1 commit
    • David C. Lonie's avatar
      Exclude text rendering classes from Tcl smoke tests. · 8a40614e
      David C. Lonie authored
      The MatplotlibMathText utilities New() method performs a runtime
      check for a valid python environment that has matplotlib installed.
      If not found, the New() method returns NULL, which is causing a segfault
      on these classes, since the class is not meant to be used directly, but
      through the vtkTextRenderer layer.
      Change-Id: Ie6a831b1a245969033538f9f3b8013702baeaecc
  9. 08 Feb, 2013 1 commit
  10. 07 Feb, 2013 1 commit
    • Bill Lorensen's avatar
      BUG: TestSetGet crashes · 13544910
      Bill Lorensen authored
      TestSetGet tries to test the singleton vtkTextRenderer. This causes
      segfaults on some systems. This patch exempts vtkTextRenderer from the
      Change-Id: I751b8016ea1339715a4c588954f7320e17f7deb4
  11. 06 Feb, 2013 1 commit
    • Bill Lorensen's avatar
      BUG: AMR Readers crash TestEmptyInput test · 4e1473a5
      Bill Lorensen authored
      The AMR readers are crashing the TestEmptyInput test. This patch
      exempts those readers from the test since they do not have a
      SetInputData method. Other readers have been exempted in the past.
      Change-Id: I5da9f7e9fdc97f0fe578f02e606c2f6209f432c3
  12. 25 Jan, 2013 1 commit
  13. 19 Dec, 2012 1 commit
  14. 14 Nov, 2012 1 commit
    • David Thompson's avatar
      Exhaustive and sampled distinct-value detection. · 5c7b5731
      David Thompson authored
      This change renames "unique" value detection to "prominent"
      value detection, since we now allow both exhaustive detection
      of every unique value in an array as well as a statistical
      approximation to this which may miss rare values but for which
      we have a statistical parameterization of the confidence that
      non-rare (i.e., prominent) values will be detected.
      Thanks to Sesh Comandur, Janine Bennett, and Ali Pinar (Sandia
      National Labs) for the parameterization of sample size by
      uncertainty and rarity.
      Change-Id: Ia35dd897be18bada177184515e18bcb9298360ff
  15. 01 Nov, 2012 1 commit
    • David Thompson's avatar
      More realistic bounds on samples required... · 92995913
      David Thompson authored
      ... for determining whether an array behaves like a discrete set or not.
      We require 32*log2(N) samples instead of just log2(N). This commit
      adjusts the test so that it continues to perform random sampling of an
      array with the increased minimum number of samples required.
      Change-Id: Ia26c3ca0570ac718626c6897cd48bacd4c44bae5
  16. 30 Oct, 2012 1 commit
  17. 26 Oct, 2012 2 commits
    • David Thompson's avatar
      Unit test new `vtkVariant` information key classes. · b7fd2a71
      David Thompson authored
      ... and unit test the double and string information key
      classes while we're at it.
      Change-Id: I886973eda75bfe7d080e1f1446d4a6124e72c823
    • David Thompson's avatar
      Methods to compute and return unique array values. · 1df5d6a2
      David Thompson authored
      Determining unique values is the "abstract" (or categorical)
      equivalent of determining the range of interval-valued array.
      It only makes sense for arrays with a small number of distinct
      values, and this also happens to be when it is computationally
      efficient to compute.
      This adds methods `GetUniqueComponentValues` and
      `UpdateDiscreteValueSet` to `vtkAbstractArray`.
      The `GetUniqueComponentValues` method populates a `vtkVariantArray`
      you pass with a list of unique values taken on by a component, or,
      clears it to an empty array if there are more than
      `vtkAbstractArray::MAX_DISCRETE_VALUES` distinct values present.
      The unique values are identified by sampling at most log2(n)
      tuples for large arrays, so obtaining the summary information --
      which is cached once computed -- is an inexpensive operation.
      This does mean that rare observations will go undetected.
      You may also obtain a list of unique *tuples* instead of unique
      component values by passing -1 for the component number.
      Unique values are cached in the `vtkInformation` associated with the array.
      This commit also adds 2 new key types: one for storing `vtkVariant`
      objects as values, and another for storing vectors of variants.
      A variant vector is used to store unique tuples and unique component values.
      Change-Id: I241cf61372966bba381eb28d14bdc043a54ba197
  18. 24 Oct, 2012 1 commit
  19. 07 Oct, 2012 1 commit
    • Bill Lorensen's avatar
      BUG: Floating point precision issues · b2a4f837
      Bill Lorensen authored
      Testing two floating point numbers for equality (or inequality) is
      system dependent. The TestsDataArray was failing inequlity tests on some
      platforms. Multiple solution are possible:
      1) Use a std::numeric_limits<double>::epsilon() for comparision. But
      2) Use fixed point comparisions
      3) Ensure that the fractional numbers being compared can be
      represented exactly in IEEE floating point.
      This patch uses 3. Each fractional number is a multiple of
      1/16. For example, .1 is replaced by .125, .3 by .375.
      Change-Id: I8e172a1d0c53e3dc576eac236b4fd9b139a855bb
  20. 05 Oct, 2012 1 commit
  21. 03 Oct, 2012 1 commit
    • Bill Lorensen's avatar
      BUG: Memory leak in test · de1653f6
      Bill Lorensen authored
      vtkTimePointUtility::TimePointToISO8601() returns a char * that the
      application must delete.
      Change-Id: I4f662cb38afa23727f4eb7a33d59a0bf590142cb
  22. 01 Oct, 2012 2 commits
    • Bill Lorensen's avatar
      ENH: Full coverage for SparseArray · 5610dee6
      Bill Lorensen authored
      Extend the unit test for SparseArray to cover all code that can be
      reached in normal usage.
      NOTE: Some of the const methods cannot be covered because they need to
      be applied in a class' const methods.
      The original code coverage was 71%. This includes all tests that
      exercised SparseArray. But this number is misleading since SparseArray
      is template code. Code that is not instantiated is not reported by
      code coverage.
      For example, these methods were not considered as code by coverage:
      Also, none of the error conditions were covered by the tests. The unit
      test now exercises the error codes and validates the error messages.
      The coverage was verified using:
      ../VTK/Utilities/Maintenance/computeCodeCoverageLocallyForOneTest.sh Common/Core/ -V -R TestArrayAPISparse
      Change-Id: I24168f9b157541e28efdfeca7caadfad6fe7b239
    • Zack Galbreath's avatar
      Fix Infovis IO classes that fail TestEmptyInput · 0c920e23
      Zack Galbreath authored
      vtkNewickTreeReader and vtkBiomTableReader would segfault in RequestData()
      if the FileName had not been set yet.  This commit also re-enables the
      testing of these two classes wihin TestEmptyInput.
      Change-Id: I3de9a98ce8993cdbf4e67f165799b84dab00f5ea
  23. 29 Sep, 2012 1 commit
  24. 28 Sep, 2012 2 commits
  25. 26 Sep, 2012 1 commit
  26. 22 Sep, 2012 1 commit
  27. 21 Sep, 2012 1 commit
    • David Thompson's avatar
      Fix floating-point vtkVariant comparison and test. · 3f256bd1
      David Thompson authored
      In theory, all of these variants should compare as equal:
         vtkVariant flt(0.583f);
         vtkVariant dbl(0.583);
         vtkVariant str("0.583");
      Currently, they do not because the 32-bit float is promoted
      to a 64-bit double instead of the other way around.
      This commit demotes doubles to floats when one operand is a float
      and tests the result.
      It also enables the `TestVariant.cxx` test, which was in the
      repository but not being built or run.
      Change-Id: I9f2c2cc04ff1ee6961b92f44045c54797e5fe011
  28. 20 Sep, 2012 1 commit
    • Bill Lorensen's avatar
      ENH: 100% coverage. · 3c419686
      Bill Lorensen authored
      TimePointUtility had zero coverge.
      This patch provides a unit test to cover 100% of the code.
      There are some issues in the current code witth converions of
      negative years. This should be addressed in future patches.
      Change-Id: I1651df55f9acbdc84d6e6374b260dabebd71b505
  29. 11 Sep, 2012 2 commits
  30. 05 Sep, 2012 1 commit
  31. 03 Sep, 2012 1 commit
    • David Gobbi's avatar
      BUG 13409: Break python observer reference cycles. · 0ed9cde3
      David Gobbi authored
      The vtkPythonCommand owns a PyObject pointer and can therefore
      participate in reference cycles.  The PyVTKObject must keep track
      of any observers that use a vtkPythonCommand so that the python
      garbage collector can find and break any cycles that occur.
      Change-Id: Ie1465e117929aa4a8f91d877a48abffc1ba81bec
  32. 31 Aug, 2012 1 commit