Restored the use of Python unit tests
This commit is contained in:
parent
07fcc3a08a
commit
d525db35d8
11 changed files with 20 additions and 60 deletions
20
Makefile.am
20
Makefile.am
|
|
@ -247,9 +247,9 @@ TESTS += \
|
||||||
report_tests
|
report_tests
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#if HAVE_BOOST_PYTHON
|
if HAVE_BOOST_PYTHON
|
||||||
#TESTS += PyUnitTests
|
TESTS += PyUnitTests
|
||||||
#endif
|
endif
|
||||||
|
|
||||||
check_PROGRAMS = $(TESTS)
|
check_PROGRAMS = $(TESTS)
|
||||||
|
|
||||||
|
|
@ -312,7 +312,7 @@ all_tests_sources = \
|
||||||
$(data_tests_SOURCES) \
|
$(data_tests_SOURCES) \
|
||||||
$(report_tests_SOURCES)
|
$(report_tests_SOURCES)
|
||||||
|
|
||||||
#PyUnitTests_SOURCES = test/__init__.py test/PyUnitTests.py
|
PyUnitTests_SOURCES = test/__init__.py test/PyUnitTests.py
|
||||||
|
|
||||||
all_py_tests_sources = \
|
all_py_tests_sources = \
|
||||||
$(patsubst test/unit/%.cc,$(top_builddir)/test/python/%.py, \
|
$(patsubst test/unit/%.cc,$(top_builddir)/test/python/%.py, \
|
||||||
|
|
@ -345,12 +345,12 @@ ESC_distdir=`echo "$(distdir)" | sed 's/\//\\\\\//g'`
|
||||||
|
|
||||||
# jww (2007-05-10): This rule will not be triggered on systems that
|
# jww (2007-05-10): This rule will not be triggered on systems that
|
||||||
# define an EXEEXT.
|
# define an EXEEXT.
|
||||||
#PyUnitTests: $(srcdir)/test/PyUnitTests.py test/python/UnitTests.py
|
PyUnitTests: $(srcdir)/test/PyUnitTests.py test/python/UnitTests.py
|
||||||
# @cat $(srcdir)/test/PyUnitTests.py \
|
@cat $(srcdir)/test/PyUnitTests.py \
|
||||||
# | sed "s/%python%/$(ESC_python)/" \
|
| sed "s/%python%/$(ESC_python)/" \
|
||||||
# | sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
| sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
||||||
# | sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
| sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
||||||
# chmod 755 $@
|
chmod 755 $@
|
||||||
|
|
||||||
RegressionTests_SOURCES = test/regress.py
|
RegressionTests_SOURCES = test/regress.py
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,3 @@ void BalanceTestCase::tearDown()
|
||||||
amount_t::stream_fullstrings = false;
|
amount_t::stream_fullstrings = false;
|
||||||
amount_t::shutdown();
|
amount_t::shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BalanceTestCase::testConstructors()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class BalanceTestCase : public CPPUNIT_NS::TestCase
|
||||||
{
|
{
|
||||||
CPPUNIT_TEST_SUITE(BalanceTestCase);
|
CPPUNIT_TEST_SUITE(BalanceTestCase);
|
||||||
|
|
||||||
CPPUNIT_TEST(testConstructors);
|
//CPPUNIT_TEST(testConstructors);
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_END();
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ public:
|
||||||
virtual void setUp();
|
virtual void setUp();
|
||||||
virtual void tearDown();
|
virtual void tearDown();
|
||||||
|
|
||||||
void testConstructors();
|
//void testConstructors();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BalanceTestCase(const BalanceTestCase ©);
|
BalanceTestCase(const BalanceTestCase ©);
|
||||||
|
|
|
||||||
|
|
@ -99,16 +99,3 @@ void CommodityTestCase::testPriceHistory()
|
||||||
|
|
||||||
assertValid(x1);
|
assertValid(x1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommodityTestCase::testLots()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CommodityTestCase::testScalingBase()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CommodityTestCase::testReduction()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@ class CommodityTestCase : public CPPUNIT_NS::TestCase
|
||||||
CPPUNIT_TEST_SUITE(CommodityTestCase);
|
CPPUNIT_TEST_SUITE(CommodityTestCase);
|
||||||
|
|
||||||
CPPUNIT_TEST(testPriceHistory);
|
CPPUNIT_TEST(testPriceHistory);
|
||||||
CPPUNIT_TEST(testLots);
|
|
||||||
CPPUNIT_TEST(testScalingBase);
|
|
||||||
CPPUNIT_TEST(testReduction);
|
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_END();
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
|
|
@ -22,9 +19,6 @@ public:
|
||||||
virtual void tearDown();
|
virtual void tearDown();
|
||||||
|
|
||||||
void testPriceHistory();
|
void testPriceHistory();
|
||||||
void testLots();
|
|
||||||
void testScalingBase();
|
|
||||||
void testReduction();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CommodityTestCase(const CommodityTestCase ©);
|
CommodityTestCase(const CommodityTestCase ©);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,3 @@ void ValueExprTestCase::tearDown()
|
||||||
{
|
{
|
||||||
amount_t::shutdown();
|
amount_t::shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ValueExprTestCase::testConstructors()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class ValueExprTestCase : public CPPUNIT_NS::TestCase
|
||||||
{
|
{
|
||||||
CPPUNIT_TEST_SUITE(ValueExprTestCase);
|
CPPUNIT_TEST_SUITE(ValueExprTestCase);
|
||||||
|
|
||||||
CPPUNIT_TEST(testConstructors);
|
//CPPUNIT_TEST(testConstructors);
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_END();
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
|
|
@ -18,7 +18,7 @@ public:
|
||||||
virtual void setUp();
|
virtual void setUp();
|
||||||
virtual void tearDown();
|
virtual void tearDown();
|
||||||
|
|
||||||
void testConstructors();
|
//void testConstructors();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ValueExprTestCase(const ValueExprTestCase ©);
|
ValueExprTestCase(const ValueExprTestCase ©);
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,6 @@ using namespace ledger;
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(DateTimeTestCase, "util");
|
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(DateTimeTestCase, "util");
|
||||||
|
|
||||||
void DateTimeTestCase::setUp() {
|
|
||||||
}
|
|
||||||
void DateTimeTestCase::tearDown() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void DateTimeTestCase::testConstructors()
|
void DateTimeTestCase::testConstructors()
|
||||||
{
|
{
|
||||||
#ifndef NOT_FOR_PYTHON
|
#ifndef NOT_FOR_PYTHON
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ public:
|
||||||
DateTimeTestCase() {}
|
DateTimeTestCase() {}
|
||||||
virtual ~DateTimeTestCase() {}
|
virtual ~DateTimeTestCase() {}
|
||||||
|
|
||||||
virtual void setUp();
|
//virtual void setUp();
|
||||||
virtual void tearDown();
|
//virtual void tearDown();
|
||||||
|
|
||||||
void testConstructors();
|
void testConstructors();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,3 @@
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(UtilitiesTestCase, "util");
|
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(UtilitiesTestCase, "util");
|
||||||
|
|
||||||
void UtilitiesTestCase::setUp() {
|
|
||||||
}
|
|
||||||
void UtilitiesTestCase::tearDown() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void UtilitiesTestCase::testConstructors()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class UtilitiesTestCase : public CPPUNIT_NS::TestCase
|
||||||
{
|
{
|
||||||
CPPUNIT_TEST_SUITE(UtilitiesTestCase);
|
CPPUNIT_TEST_SUITE(UtilitiesTestCase);
|
||||||
|
|
||||||
CPPUNIT_TEST(testConstructors);
|
//CPPUNIT_TEST(testConstructors);
|
||||||
|
|
||||||
CPPUNIT_TEST_SUITE_END();
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
|
|
@ -15,10 +15,10 @@ public:
|
||||||
UtilitiesTestCase() {}
|
UtilitiesTestCase() {}
|
||||||
virtual ~UtilitiesTestCase() {}
|
virtual ~UtilitiesTestCase() {}
|
||||||
|
|
||||||
virtual void setUp();
|
//virtual void setUp();
|
||||||
virtual void tearDown();
|
//virtual void tearDown();
|
||||||
|
|
||||||
void testConstructors();
|
//void testConstructors();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UtilitiesTestCase(const UtilitiesTestCase ©);
|
UtilitiesTestCase(const UtilitiesTestCase ©);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue