/[escript]/trunk/pyvisi/test/python/all_test.py
ViewVC logotype

Annotation of /trunk/pyvisi/test/python/all_test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1211 - (hide annotations)
Wed Jul 4 05:16:46 2007 UTC (14 years ago) by jongui
File MIME type: text/x-python
File size: 7650 byte(s)
- Fixed some minor bugs.
- Added a new feature called 'MapOnScalarClipWithRotation' that clips a two-dimensional data with a scalar value and subsequently rotating it to create a three-dimensional effect.
- Corresponding examples, test cases and documentation of the new module have also been added.
1 jongui 1162 from run_camera import TestCamera2D, TestCamera3D
2     from run_carpet import TestCarpetScalarWarp, TestCarpetVectorWarp
3     from run_carpet_with_lazy_evaluation import TestCarpet
4     from run_contour import TestContour
5     from run_contour_with_lazy_evaluation import TestContourGenerate, \
6     TestContourOnPlaneCut, TestContourOnPlaneClip
7     from run_datacollector import TestSourceXml2DPointData, \
8     TestSourceXml2DCellData,TestSourceXml3DPointData, \
9     TestSourceXml3DCellData
10     from run_ellipsoid import TestEllipsoid
11     from run_ellipsoid_with_lazy_evaluation import TestEllipsoidScaleResolution, \
12     TestEllipsoidOnPlaneCut, TestEllipsoidOnPlaneClip
13     from run_escript_with_lazy_evaluation import TestEscriptMap, \
14     TestEscriptVelocity, TestEscriptEllipsoid
15     from run_image import TestImageOnAMap
16     from run_image_with_lazy_evaluation import TestImage
17     from run_light import TestLight2D, TestLight3D
18     from run_logo import TestAccessLogo
19     from run_logo_with_lazy_evaluation import TestLogo
20     from run_map import TestMapOneViewport, TestMapFourViewports, \
21     TestMap2DCellDataWithCellToPointConversion, \
22     TestMap2DCellDataWithoutCellToPointConversion, TestMap3DPointData, \
23     TestMap3DCellDataWithCellToPointConversion, \
24     TestMap3DCellDataWithoutCellToPointConversion, TestMap3DSecondOrder, \
25     TestMapGreyScaleLut, TestMapOnPlaneCut, TestMapOnPlaneClip, \
26 jongui 1211 TestMapOnScalarClip, \
27     TestMapOnScalarClipWithRotation
28 jongui 1162 from run_map_with_lazy_evaluation import TestMapLazy, TestMapOnPlaneCutLazy, \
29 jongui 1211 TestMapOnPlaneClipLazy, TestMapOnScalarClipLazy, \
30     TestMapOnScalarClipWithRotationLazy
31 jongui 1162 from run_scene import TestSceneOneViewport, TestSceneFourViewports
32     from run_streamline import TestStreamLinePointSource, TestStreamLineModule, \
33     TestStreamLineTube
34     from run_streamline_with_lazy_evaluation import TestStreamLine
35     from run_text import TestText2D
36     from run_velocity import TestVelocity2DArrowVectorColor, \
37     TestVelocity2DArrowScalarColor, TestVelocity3DSecondOrder
38     from run_velocity_with_lazy_evaluation import TestVelocity, TestVelocityOnPlaneCut, TestVelocityOnPlaneClip
39 jongui 1168 from run_exporter import TestVRMLExporter, TestIVExporter
40 jongui 1189 from run_legend import TestLegend
41     from run_legend_with_lazy_evaluation import TestLegendWithLazyEvaluation
42 jongui 1191 from run_movie_with_lazy_evaluation import TestGenerateMovie
43 jongui 1205 from run_rectangle import TestRectangleOnAMap
44 jongui 1162
45 jongui 1211
46 jongui 1162 import unittest
47    
48     if __name__ == '__main__':
49     suite = unittest.TestSuite()
50     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestCamera2D))
51     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestCamera3D))
52     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestCarpetScalarWarp))
53     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestCarpetVectorWarp))
54     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestCarpet))
55     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContour))
56     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourGenerate))
57     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourOnPlaneCut))
58     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourOnPlaneClip))
59     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSourceXml2DPointData))
60     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSourceXml2DCellData))
61     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSourceXml3DPointData))
62     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSourceXml3DCellData))
63     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEllipsoid))
64     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEllipsoidScaleResolution))
65     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEllipsoidOnPlaneCut))
66     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEllipsoidOnPlaneClip))
67     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestImageOnAMap))
68     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestImage))
69     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestLight2D))
70     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestLight3D))
71     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestAccessLogo))
72     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestLogo))
73     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOneViewport))
74     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapFourViewports))
75     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap2DCellDataWithCellToPointConversion))
76     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap2DCellDataWithoutCellToPointConversion))
77     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap3DPointData))
78     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap3DCellDataWithCellToPointConversion))
79     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap3DCellDataWithoutCellToPointConversion))
80     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapGreyScaleLut))
81     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneCut))
82     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneClip))
83     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnScalarClip))
84 jongui 1211 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnScalarClipWithRotation))
85 jongui 1162 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap3DSecondOrder))
86     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapLazy))
87     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneCutLazy))
88     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneClipLazy))
89     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnScalarClipLazy))
90 jongui 1211 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnScalarClipWithRotationLazy))
91 jongui 1162 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSceneOneViewport))
92     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestSceneFourViewports))
93     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestText2D))
94     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVelocity2DArrowVectorColor))
95     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVelocity2DArrowScalarColor))
96     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVelocity3DSecondOrder))
97     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVelocity))
98     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVelocityOnPlaneCut))
99     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVelocityOnPlaneClip))
100     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestStreamLinePointSource))
101     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestStreamLineModule))
102     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestStreamLineTube))
103     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestStreamLine))
104     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEscriptMap))
105     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEscriptVelocity))
106     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestEscriptEllipsoid))
107 jongui 1168 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestVRMLExporter))
108     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestIVExporter))
109 jongui 1189 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestLegend))
110     suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestLegendWithLazyEvaluation))
111 jongui 1191 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestGenerateMovie))
112 jongui 1205 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestRectangleOnAMap))
113 jongui 1162
114    
115     unittest.TextTestRunner(verbosity=2).run(suite)
116    

  ViewVC Help
Powered by ViewVC 1.1.26