[cig-commits] r13194 - in cs/cigma/trunk: src tests/libcigma tests/pytests
luis at geodynamics.org
luis at geodynamics.org
Wed Oct 29 15:22:01 PDT 2008
Author: luis
Date: 2008-10-29 15:22:01 -0700 (Wed, 29 Oct 2008)
New Revision: 13194
Added:
cs/cigma/trunk/src/Field.cpp
cs/cigma/trunk/src/Field.h
cs/cigma/trunk/src/py_Common.cpp
cs/cigma/trunk/src/py_Common.h
cs/cigma/trunk/src/py_CompareOp.cpp
cs/cigma/trunk/src/py_DofHandler.cpp
cs/cigma/trunk/src/py_DofHandler.h
cs/cigma/trunk/src/py_EvalOp.cpp
cs/cigma/trunk/src/py_ExtractOp.cpp
cs/cigma/trunk/src/py_FE.cpp
cs/cigma/trunk/src/py_FE.h
cs/cigma/trunk/src/py_Field.cpp
cs/cigma/trunk/src/py_Field.h
cs/cigma/trunk/src/py_ListOp.cpp
cs/cigma/trunk/src/py_Residuals.cpp
cs/cigma/trunk/src/py_Residuals.h
cs/cigma/trunk/tests/libcigma/CompareOpTest.cpp
cs/cigma/trunk/tests/libcigma/CompareOpTest.h
cs/cigma/trunk/tests/libcigma/EvalOpTest.cpp
cs/cigma/trunk/tests/libcigma/EvalOpTest.h
cs/cigma/trunk/tests/libcigma/ExtractOpTest.cpp
cs/cigma/trunk/tests/libcigma/ExtractOpTest.h
cs/cigma/trunk/tests/libcigma/FE_Test.cpp
cs/cigma/trunk/tests/libcigma/FE_Test.h
cs/cigma/trunk/tests/libcigma/FieldTest.cpp
cs/cigma/trunk/tests/libcigma/FieldTest.h
cs/cigma/trunk/tests/libcigma/ResidualsTest.cpp
cs/cigma/trunk/tests/libcigma/ResidualsTest.h
cs/cigma/trunk/tests/pytests/skel.py
cs/cigma/trunk/tests/pytests/test_compare.py
cs/cigma/trunk/tests/pytests/test_dof_handler.py
cs/cigma/trunk/tests/pytests/test_eval.py
cs/cigma/trunk/tests/pytests/test_extract.py
cs/cigma/trunk/tests/pytests/test_fe.py
cs/cigma/trunk/tests/pytests/test_field.py
cs/cigma/trunk/tests/pytests/test_residuals.py
Log:
Python bindings for everything else
Added: cs/cigma/trunk/src/Field.cpp
===================================================================
--- cs/cigma/trunk/src/Field.cpp (rev 0)
+++ cs/cigma/trunk/src/Field.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,27 @@
+#include "Field.h"
+using namespace cigma;
+using boost::shared_ptr;
+
+Field::Field()
+{
+}
+
+Field::~Field()
+{
+}
+
+void Field::setMesh(const shared_ptr<MeshPart> mesh)
+{
+ this->mesh = mesh;
+}
+
+void Field::setFE(const shared_ptr<FE> fe)
+{
+ this->fe = fe;
+}
+
+void Field::setDofHandler(const shared_ptr<DofHandler> dofs)
+{
+ this->dofs = dofs;
+}
+
Added: cs/cigma/trunk/src/Field.h
===================================================================
--- cs/cigma/trunk/src/Field.h (rev 0)
+++ cs/cigma/trunk/src/Field.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,33 @@
+#ifndef __CIGMA_FIELD_H__
+#define __CIGMA_FIELD_H__
+
+#include <boost/noncopyable.hpp>
+#include <boost/shared_ptr.hpp>
+
+#include "MeshPart.h"
+#include "FE.h"
+#include "DofHandler.h"
+
+namespace cigma
+{
+ class Field;
+}
+
+class cigma::Field : private boost::noncopyable
+{
+public:
+ Field();
+ ~Field();
+
+ void setMesh(const boost::shared_ptr<MeshPart> mesh);
+ void setFE(const boost::shared_ptr<FE> fe);
+ void setDofHandler(const boost::shared_ptr<DofHandler> dofs);
+
+public:
+ boost::shared_ptr<MeshPart> mesh;
+ boost::shared_ptr<FE> fe;
+ boost::shared_ptr<DofHandler> dofs;
+};
+
+
+#endif
Added: cs/cigma/trunk/src/py_Common.cpp
===================================================================
--- cs/cigma/trunk/src/py_Common.cpp (rev 0)
+++ cs/cigma/trunk/src/py_Common.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,6 @@
+#include "py_Common.h"
+
+void export_Common()
+{
+}
+
Added: cs/cigma/trunk/src/py_Common.h
===================================================================
--- cs/cigma/trunk/src/py_Common.h (rev 0)
+++ cs/cigma/trunk/src/py_Common.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,4 @@
+#ifndef __PY_COMMON_H__
+#define __PY_COMMON_H__
+
+#endif
Added: cs/cigma/trunk/src/py_CompareOp.cpp
===================================================================
--- cs/cigma/trunk/src/py_CompareOp.cpp (rev 0)
+++ cs/cigma/trunk/src/py_CompareOp.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,19 @@
+#include "numpy_util.h"
+#include "core_compare_op.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+struct pyCompareOp : CompareOp
+{
+ pyCompareOp() {}
+ ~pyCompareOp() {}
+};
+
+void export_CompareOp()
+{
+ class_<pyCompareOp, boost::noncopyable>("CompareOp")
+ .def("run", &pyCompareOp::run)
+ ;
+}
+
Added: cs/cigma/trunk/src/py_DofHandler.cpp
===================================================================
--- cs/cigma/trunk/src/py_DofHandler.cpp (rev 0)
+++ cs/cigma/trunk/src/py_DofHandler.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,20 @@
+#include "py_DofHandler.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+
+pyDofHandler::pyDofHandler()
+{
+}
+
+pyDofHandler::~pyDofHandler()
+{
+}
+
+void export_DofHandler()
+{
+ class_<pyDofHandler, boost::noncopyable>("DofHandler")
+ ;
+}
+
Added: cs/cigma/trunk/src/py_DofHandler.h
===================================================================
--- cs/cigma/trunk/src/py_DofHandler.h (rev 0)
+++ cs/cigma/trunk/src/py_DofHandler.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,13 @@
+#ifndef __PY_DOF_HANDLER_H__
+#define __PY_DOF_HANDLER_H__
+
+#include "numpy_util.h"
+#include "DofHandler.h"
+
+struct pyDofHandler : cigma::DofHandler
+{
+ pyDofHandler();
+ ~pyDofHandler();
+};
+
+#endif
Added: cs/cigma/trunk/src/py_EvalOp.cpp
===================================================================
--- cs/cigma/trunk/src/py_EvalOp.cpp (rev 0)
+++ cs/cigma/trunk/src/py_EvalOp.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,20 @@
+#include "numpy_util.h"
+#include "core_eval_op.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+struct pyEvalOp : EvalOp
+{
+ pyEvalOp() {}
+ ~pyEvalOp() {}
+};
+
+
+void export_EvalOp()
+{
+ class_<pyEvalOp, boost::noncopyable>("EvalOp")
+ .def("run", &pyEvalOp::run)
+ ;
+}
+
Added: cs/cigma/trunk/src/py_ExtractOp.cpp
===================================================================
--- cs/cigma/trunk/src/py_ExtractOp.cpp (rev 0)
+++ cs/cigma/trunk/src/py_ExtractOp.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,18 @@
+#include "numpy_util.h"
+#include "core_extract_op.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+struct pyExtractOp : ExtractOp
+{
+ pyExtractOp() {}
+ ~pyExtractOp() {}
+};
+
+void export_ExtractOp()
+{
+ class_<pyExtractOp, boost::noncopyable>("ExtractOp")
+ .def("run", &pyExtractOp::run)
+ ;
+}
Added: cs/cigma/trunk/src/py_FE.cpp
===================================================================
--- cs/cigma/trunk/src/py_FE.cpp (rev 0)
+++ cs/cigma/trunk/src/py_FE.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,19 @@
+#include "py_FE.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+pyFE::pyFE()
+{
+}
+
+pyFE::~pyFE()
+{
+}
+
+void export_FE()
+{
+ class_<pyFE, boost::noncopyable>("FE")
+ ;
+}
+
Added: cs/cigma/trunk/src/py_FE.h
===================================================================
--- cs/cigma/trunk/src/py_FE.h (rev 0)
+++ cs/cigma/trunk/src/py_FE.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,13 @@
+#ifndef __PY_FE_H__
+#define __PY_FE_H__
+
+#include "numpy_util.h"
+#include "FE.h"
+
+struct pyFE : cigma::FE
+{
+ pyFE();
+ ~pyFE();
+};
+
+#endif
Added: cs/cigma/trunk/src/py_Field.cpp
===================================================================
--- cs/cigma/trunk/src/py_Field.cpp (rev 0)
+++ cs/cigma/trunk/src/py_Field.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,19 @@
+#include "py_Field.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+pyField::pyField()
+{
+}
+
+pyField::~pyField()
+{
+}
+
+void export_Field()
+{
+ class_<pyField, boost::noncopyable>("Field")
+ ;
+}
+
Added: cs/cigma/trunk/src/py_Field.h
===================================================================
--- cs/cigma/trunk/src/py_Field.h (rev 0)
+++ cs/cigma/trunk/src/py_Field.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,13 @@
+#ifndef __PY_FIELD_H__
+#define __PY_FIELD_H__
+
+#include "numpy_util.h"
+#include "Field.h"
+
+struct pyField : cigma::Field
+{
+ pyField();
+ ~pyField();
+};
+
+#endif
Added: cs/cigma/trunk/src/py_ListOp.cpp
===================================================================
--- cs/cigma/trunk/src/py_ListOp.cpp (rev 0)
+++ cs/cigma/trunk/src/py_ListOp.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,13 @@
+#include "numpy_util.h"
+#include "core_list_op.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+void export_ListOp()
+{
+ class_<ListOp, boost::noncopyable>("ListOp")
+ .def("run", &ListOp::run)
+ ;
+}
+
Added: cs/cigma/trunk/src/py_Residuals.cpp
===================================================================
--- cs/cigma/trunk/src/py_Residuals.cpp (rev 0)
+++ cs/cigma/trunk/src/py_Residuals.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,14 @@
+#include "py_Residuals.h"
+
+using namespace cigma;
+using namespace boost::python;
+
+pyResiduals::pyResiduals() {}
+pyResiduals::~pyResiduals() {}
+
+void export_Residuals()
+{
+ class_<pyResiduals, boost::noncopyable>("Residuals")
+ ;
+}
+
Added: cs/cigma/trunk/src/py_Residuals.h
===================================================================
--- cs/cigma/trunk/src/py_Residuals.h (rev 0)
+++ cs/cigma/trunk/src/py_Residuals.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,13 @@
+#ifndef __PY_RESIDALS_H__
+#define __PY_RESIDALS_H__
+
+#include "numpy_util.h"
+#include "Residuals.h"
+
+struct pyResiduals : cigma::Residuals
+{
+ pyResiduals();
+ ~pyResiduals();
+};
+
+#endif
Added: cs/cigma/trunk/tests/libcigma/CompareOpTest.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/CompareOpTest.cpp (rev 0)
+++ cs/cigma/trunk/tests/libcigma/CompareOpTest.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,10 @@
+#include "CompareOpTest.h"
+using namespace libcigma;
+
+#include "core_compare_op.h"
+using namespace cigma;
+
+void CompareOpTest::test_something()
+{
+ CompareOp op;
+}
Added: cs/cigma/trunk/tests/libcigma/CompareOpTest.h
===================================================================
--- cs/cigma/trunk/tests/libcigma/CompareOpTest.h (rev 0)
+++ cs/cigma/trunk/tests/libcigma/CompareOpTest.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,23 @@
+#ifndef __COMPARE_OP_TEST_H__
+#define __COMPARE_OP_TEST_H__
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace libcigma
+{
+ class CompareOpTest : public CPPUNIT_NS::TestFixture
+ {
+ CPPUNIT_TEST_SUITE(CompareOpTest);
+ CPPUNIT_TEST(test_something);
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+ CompareOpTest() {}
+ ~CompareOpTest() {}
+ void test_something();
+ };
+};
+
+#endif
Added: cs/cigma/trunk/tests/libcigma/EvalOpTest.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/EvalOpTest.cpp (rev 0)
+++ cs/cigma/trunk/tests/libcigma/EvalOpTest.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,10 @@
+#include "EvalOpTest.h"
+using namespace libcigma;
+
+#include "core_eval_op.h"
+using namespace cigma;
+
+void EvalOpTest::test_something()
+{
+ EvalOp op;
+}
Added: cs/cigma/trunk/tests/libcigma/EvalOpTest.h
===================================================================
--- cs/cigma/trunk/tests/libcigma/EvalOpTest.h (rev 0)
+++ cs/cigma/trunk/tests/libcigma/EvalOpTest.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,23 @@
+#ifndef __EVAL_OP_TEST_H__
+#define __EVAL_OP_TEST_H__
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace libcigma
+{
+ class EvalOpTest : public CPPUNIT_NS::TestFixture
+ {
+ CPPUNIT_TEST_SUITE(EvalOpTest);
+ CPPUNIT_TEST(test_something);
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+ EvalOpTest() {}
+ ~EvalOpTest() {}
+ void test_something();
+ };
+};
+
+#endif
Added: cs/cigma/trunk/tests/libcigma/ExtractOpTest.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/ExtractOpTest.cpp (rev 0)
+++ cs/cigma/trunk/tests/libcigma/ExtractOpTest.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,10 @@
+#include "ExtractOpTest.h"
+using namespace libcigma;
+
+#include "core_extract_op.h"
+using namespace cigma;
+
+void ExtractOpTest::test_something()
+{
+ ExtractOp op;
+}
Added: cs/cigma/trunk/tests/libcigma/ExtractOpTest.h
===================================================================
--- cs/cigma/trunk/tests/libcigma/ExtractOpTest.h (rev 0)
+++ cs/cigma/trunk/tests/libcigma/ExtractOpTest.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,23 @@
+#ifndef __EXTRACT_OP_TEST_H__
+#define __EXTRACT_OP_TEST_H__
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace libcigma
+{
+ class ExtractOpTest : public CPPUNIT_NS::TestFixture
+ {
+ CPPUNIT_TEST_SUITE(ExtractOpTest);
+ CPPUNIT_TEST(test_something);
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+ ExtractOpTest() {}
+ ~ExtractOpTest() {}
+ void test_something();
+ };
+};
+
+#endif
Added: cs/cigma/trunk/tests/libcigma/FE_Test.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/FE_Test.cpp (rev 0)
+++ cs/cigma/trunk/tests/libcigma/FE_Test.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,7 @@
+#include "FE_Test.h"
+using namespace libcigma;
+
+void FE_Test::test_something()
+{
+}
+
Added: cs/cigma/trunk/tests/libcigma/FE_Test.h
===================================================================
--- cs/cigma/trunk/tests/libcigma/FE_Test.h (rev 0)
+++ cs/cigma/trunk/tests/libcigma/FE_Test.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,23 @@
+#ifndef __FE_TEST_H__
+#define __FE_TEST_H__
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace libcigma
+{
+ class FE_Test : public CPPUNIT_NS::TestFixture
+ {
+ CPPUNIT_TEST_SUITE(FE_Test);
+ CPPUNIT_TEST(test_something);
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+ FE_Test() {}
+ ~FE_Test() {}
+ void test_something();
+ };
+};
+
+#endif
Added: cs/cigma/trunk/tests/libcigma/FieldTest.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/FieldTest.cpp (rev 0)
+++ cs/cigma/trunk/tests/libcigma/FieldTest.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,6 @@
+#include "FieldTest.h"
+using namespace libcigma;
+
+void FieldTest::test_something()
+{
+}
Added: cs/cigma/trunk/tests/libcigma/FieldTest.h
===================================================================
--- cs/cigma/trunk/tests/libcigma/FieldTest.h (rev 0)
+++ cs/cigma/trunk/tests/libcigma/FieldTest.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,23 @@
+#ifndef __FIELD_TEST_H__
+#define __FIELD_TEST_H__
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace libcigma
+{
+ class FieldTest : public CPPUNIT_NS::TestFixture
+ {
+ CPPUNIT_TEST_SUITE(FieldTest);
+ CPPUNIT_TEST(test_something);
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+ FieldTest() {}
+ ~FieldTest() {}
+ void test_something();
+ };
+};
+
+#endif
Added: cs/cigma/trunk/tests/libcigma/ResidualsTest.cpp
===================================================================
--- cs/cigma/trunk/tests/libcigma/ResidualsTest.cpp (rev 0)
+++ cs/cigma/trunk/tests/libcigma/ResidualsTest.cpp 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,6 @@
+#include "ResidualsTest.h"
+using namespace libcigma;
+
+void ResidualsTest::test_something()
+{
+}
Added: cs/cigma/trunk/tests/libcigma/ResidualsTest.h
===================================================================
--- cs/cigma/trunk/tests/libcigma/ResidualsTest.h (rev 0)
+++ cs/cigma/trunk/tests/libcigma/ResidualsTest.h 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,23 @@
+#ifndef __RESIDUALS_TEST_H__
+#define __RESIDUALS_TEST_H__
+
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+
+
+namespace libcigma
+{
+ class ResidualsTest : public CPPUNIT_NS::TestFixture
+ {
+ CPPUNIT_TEST_SUITE(ResidualsTest);
+ CPPUNIT_TEST(test_something);
+ CPPUNIT_TEST_SUITE_END();
+
+ public:
+ ResidualsTest() {}
+ ~ResidualsTest() {}
+ void test_something();
+ };
+};
+
+#endif
Added: cs/cigma/trunk/tests/pytests/skel.py
===================================================================
--- cs/cigma/trunk/tests/pytests/skel.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/skel.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from _cigma import XYZ
+
+import unittest
+class XYZTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ pass
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(XYZTest))
+ return suite
Added: cs/cigma/trunk/tests/pytests/test_compare.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_compare.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_compare.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+from _cigma import CompareOp
+
+import unittest
+class CompareTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_compare_ab(self):
+ op = CompareOp()
+ def test_compare_bc(self):
+ pass
+ def test_compare_ac(self):
+ pass
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(CompareTest))
+ return suite
+
Added: cs/cigma/trunk/tests/pytests/test_dof_handler.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_dof_handler.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_dof_handler.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+from _cigma import DofHandler
+
+import unittest
+class DofHandlerTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ dofs = DofHandler()
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(DofHandlerTest))
+ return suite
+
Added: cs/cigma/trunk/tests/pytests/test_eval.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_eval.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_eval.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from _cigma import EvalOp
+
+import unittest
+class EvalTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ op = EvalOp()
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(EvalTest))
+ return suite
Added: cs/cigma/trunk/tests/pytests/test_extract.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_extract.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_extract.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from _cigma import ExtractOp
+
+import unittest
+class ExtractTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ op = ExtractOp()
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(ExtractTest))
+ return suite
Added: cs/cigma/trunk/tests/pytests/test_fe.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_fe.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_fe.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from _cigma import FE
+
+import unittest
+class FE_Test(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ fe = FE()
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(FE_Test))
+ return suite
Added: cs/cigma/trunk/tests/pytests/test_field.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_field.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_field.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from _cigma import Field
+
+import unittest
+class FieldTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ field = Field()
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(FieldTest))
+ return suite
Added: cs/cigma/trunk/tests/pytests/test_residuals.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_residuals.py (rev 0)
+++ cs/cigma/trunk/tests/pytests/test_residuals.py 2008-10-29 22:22:01 UTC (rev 13194)
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from _cigma import Residuals
+
+import unittest
+class ResidualsTest(unittest.TestCase):
+ def __init__(self, *args):
+ unittest.TestCase.__init__(self, *args)
+ def test_a(self):
+ residuals = Residuals()
+
+def create_suite():
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(ResidualsTest))
+ return suite
More information about the CIG-COMMITS
mailing list