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
|
||||
endif
|
||||
|
||||
#if HAVE_BOOST_PYTHON
|
||||
#TESTS += PyUnitTests
|
||||
#endif
|
||||
if HAVE_BOOST_PYTHON
|
||||
TESTS += PyUnitTests
|
||||
endif
|
||||
|
||||
check_PROGRAMS = $(TESTS)
|
||||
|
||||
|
|
@ -312,7 +312,7 @@ all_tests_sources = \
|
|||
$(data_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 = \
|
||||
$(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
|
||||
# define an EXEEXT.
|
||||
#PyUnitTests: $(srcdir)/test/PyUnitTests.py test/python/UnitTests.py
|
||||
# @cat $(srcdir)/test/PyUnitTests.py \
|
||||
# | sed "s/%python%/$(ESC_python)/" \
|
||||
# | sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
||||
# | sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
||||
# chmod 755 $@
|
||||
PyUnitTests: $(srcdir)/test/PyUnitTests.py test/python/UnitTests.py
|
||||
@cat $(srcdir)/test/PyUnitTests.py \
|
||||
| sed "s/%python%/$(ESC_python)/" \
|
||||
| sed "s/%srcdir%/$(ESC_srcdir)/g" \
|
||||
| sed "s/%builddir%/$(ESC_builddir)/g" > $@
|
||||
chmod 755 $@
|
||||
|
||||
RegressionTests_SOURCES = test/regress.py
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,3 @@ void BalanceTestCase::tearDown()
|
|||
amount_t::stream_fullstrings = false;
|
||||
amount_t::shutdown();
|
||||
}
|
||||
|
||||
void BalanceTestCase::testConstructors()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class BalanceTestCase : public CPPUNIT_NS::TestCase
|
|||
{
|
||||
CPPUNIT_TEST_SUITE(BalanceTestCase);
|
||||
|
||||
CPPUNIT_TEST(testConstructors);
|
||||
//CPPUNIT_TEST(testConstructors);
|
||||
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ public:
|
|||
virtual void setUp();
|
||||
virtual void tearDown();
|
||||
|
||||
void testConstructors();
|
||||
//void testConstructors();
|
||||
|
||||
private:
|
||||
BalanceTestCase(const BalanceTestCase ©);
|
||||
|
|
|
|||
|
|
@ -99,16 +99,3 @@ void CommodityTestCase::testPriceHistory()
|
|||
|
||||
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(testPriceHistory);
|
||||
CPPUNIT_TEST(testLots);
|
||||
CPPUNIT_TEST(testScalingBase);
|
||||
CPPUNIT_TEST(testReduction);
|
||||
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
|
|
@ -22,9 +19,6 @@ public:
|
|||
virtual void tearDown();
|
||||
|
||||
void testPriceHistory();
|
||||
void testLots();
|
||||
void testScalingBase();
|
||||
void testReduction();
|
||||
|
||||
private:
|
||||
CommodityTestCase(const CommodityTestCase ©);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,3 @@ void ValueExprTestCase::tearDown()
|
|||
{
|
||||
amount_t::shutdown();
|
||||
}
|
||||
|
||||
void ValueExprTestCase::testConstructors()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class ValueExprTestCase : public CPPUNIT_NS::TestCase
|
|||
{
|
||||
CPPUNIT_TEST_SUITE(ValueExprTestCase);
|
||||
|
||||
CPPUNIT_TEST(testConstructors);
|
||||
//CPPUNIT_TEST(testConstructors);
|
||||
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ public:
|
|||
virtual void setUp();
|
||||
virtual void tearDown();
|
||||
|
||||
void testConstructors();
|
||||
//void testConstructors();
|
||||
|
||||
private:
|
||||
ValueExprTestCase(const ValueExprTestCase ©);
|
||||
|
|
|
|||
|
|
@ -6,11 +6,6 @@ using namespace ledger;
|
|||
|
||||
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(DateTimeTestCase, "util");
|
||||
|
||||
void DateTimeTestCase::setUp() {
|
||||
}
|
||||
void DateTimeTestCase::tearDown() {
|
||||
}
|
||||
|
||||
void DateTimeTestCase::testConstructors()
|
||||
{
|
||||
#ifndef NOT_FOR_PYTHON
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ public:
|
|||
DateTimeTestCase() {}
|
||||
virtual ~DateTimeTestCase() {}
|
||||
|
||||
virtual void setUp();
|
||||
virtual void tearDown();
|
||||
//virtual void setUp();
|
||||
//virtual void tearDown();
|
||||
|
||||
void testConstructors();
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,3 @@
|
|||
|
||||
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(testConstructors);
|
||||
//CPPUNIT_TEST(testConstructors);
|
||||
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
|
|
@ -15,10 +15,10 @@ public:
|
|||
UtilitiesTestCase() {}
|
||||
virtual ~UtilitiesTestCase() {}
|
||||
|
||||
virtual void setUp();
|
||||
virtual void tearDown();
|
||||
//virtual void setUp();
|
||||
//virtual void tearDown();
|
||||
|
||||
void testConstructors();
|
||||
//void testConstructors();
|
||||
|
||||
private:
|
||||
UtilitiesTestCase(const UtilitiesTestCase ©);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue