Browse Source

optional wallet blockChain tests, beacuse it takes a while

cl-refactor
CJentzsch 10 years ago
parent
commit
fa69d6a529
  1. 3
      test/TestHelper.cpp
  2. 1
      test/TestHelper.h
  3. 3
      test/libethereum/blockchain.cpp

3
test/TestHelper.cpp

@ -732,6 +732,8 @@ Options::Options()
bigData = true; bigData = true;
else if (arg == "--checkstate") else if (arg == "--checkstate")
checkState = true; checkState = true;
else if (arg == "--wallet")
wallet = true;
else if (arg == "--all") else if (arg == "--all")
{ {
performance = true; performance = true;
@ -739,6 +741,7 @@ Options::Options()
memory = true; memory = true;
inputLimits = true; inputLimits = true;
bigData = true; bigData = true;
wallet= true;
} }
else if (arg == "--singletest" && i + 1 < argc) else if (arg == "--singletest" && i + 1 < argc)
{ {

1
test/TestHelper.h

@ -195,6 +195,7 @@ public:
bool memory = false; bool memory = false;
bool inputLimits = false; bool inputLimits = false;
bool bigData = false; bool bigData = false;
bool wallet = false;
/// @} /// @}
/// Get reference to options /// Get reference to options

3
test/libethereum/blockchain.cpp

@ -787,7 +787,8 @@ BOOST_AUTO_TEST_CASE(bcGasPricerTest)
BOOST_AUTO_TEST_CASE(bcWalletTest) BOOST_AUTO_TEST_CASE(bcWalletTest)
{ {
dev::test::executeTests("bcWalletTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests); if (test::Options::get().wallet)
dev::test::executeTests("bcWalletTest", "/BlockTests",dev::test::getFolder(__FILE__) + "/BlockTestsFiller", dev::test::doBlockchainTests);
} }
BOOST_AUTO_TEST_CASE(userDefinedFile) BOOST_AUTO_TEST_CASE(userDefinedFile)

Loading…
Cancel
Save