VTK
vtkRegressionTestImage.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRegressionTestImage.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkRegressionTestImage_h
16 #define vtkRegressionTestImage_h
17 
18 // Includes and a macro necessary for saving the image produced by a cxx
19 // example program. This capability is critical for regression testing.
20 // This function returns 1 if test passed, 0 if test failed.
21 
22 #include "vtkTesting.h"
23 
25 {
26 protected:
29 private:
30  vtkRegressionTester(const vtkRegressionTester&); // Not implemented.
31  void operator=(const vtkRegressionTester&); // Not implemented.
32 };
33 
34 #define vtkRegressionTestImage(rw) \
35 vtkTesting::Test(argc, argv, rw, 10)
36 
37 #define vtkRegressionTestImageThreshold(rw, t) \
38 vtkTesting::Test(argc, argv, rw, t)
39 
40 #endif // vtkRegressionTestImage_h
41 // VTK-HeaderTest-Exclude: vtkRegressionTestImage.h
a unified VTK regression testing framework
Definition: vtkTesting.h:79