|
|
@ -23,14 +23,14 @@ |
|
|
|
#include <boost/filesystem/operations.hpp> |
|
|
|
#include <boost/test/unit_test.hpp> |
|
|
|
|
|
|
|
#include "JsonSpiritHeaders.h" |
|
|
|
#include "../JsonSpiritHeaders.h" |
|
|
|
#include <libdevcore/CommonIO.h> |
|
|
|
#include <libethereum/CanonBlockChain.h> |
|
|
|
#include <libethereum/State.h> |
|
|
|
#include <libethereum/ExtVM.h> |
|
|
|
#include <libethereum/Defaults.h> |
|
|
|
#include <libevm/VM.h> |
|
|
|
#include "TestHelper.h" |
|
|
|
#include "../TestHelper.h" |
|
|
|
|
|
|
|
using namespace std; |
|
|
|
using namespace json_spirit; |
|
|
@ -106,79 +106,79 @@ BOOST_AUTO_TEST_SUITE(StateTests) |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stExample) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stExample", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stExample", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stSystemOperationsTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stSystemOperationsTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stSystemOperationsTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stCallCreateCallCodeTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stCallCreateCallCodeTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stCallCreateCallCodeTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stPreCompiledContracts) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stPreCompiledContracts", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stPreCompiledContracts", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stLogTests) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stLogTests", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stLogTests", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stRecursiveCreate) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stRecursiveCreate", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stRecursiveCreate", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stInitCodeTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stInitCodeTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stInitCodeTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stTransactionTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stTransactionTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stTransactionTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stSpecialTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stSpecialTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stSpecialTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stRefundTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stRefundTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stRefundTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stBlockHashTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stBlockHashTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest) |
|
|
|
{ |
|
|
|
if (test::Options::get().quadratic) |
|
|
|
dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stQuadraticComplexityTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stMemoryStressTest) |
|
|
|
{ |
|
|
|
if (test::Options::get().memory) |
|
|
|
dev::test::executeTests("stMemoryStressTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stMemoryStressTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stSolidityTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stSolidityTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stSolidityTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(stMemoryTest) |
|
|
|
{ |
|
|
|
dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests); |
|
|
|
dev::test::executeTests("stMemoryTest", "/StateTests",dev::test::getFolder(__FILE__) + "/StateTestsFiller", dev::test::doStateTests); |
|
|
|
} |
|
|
|
|
|
|
|
|