diff options
author | chriseth <c@ethdev.com> | 2015-04-21 18:04:12 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-04-21 18:04:12 +0800 |
commit | ddbaa99056b10052f0539a0afdffab53cc941dab (patch) | |
tree | 24888094abc1918b779043512893d82b3251ed43 /TestHelper.cpp | |
parent | 8caf1f723ffe9c8592e995f6e82571fbe2185fd0 (diff) | |
parent | e375612a7ecbab9ad33a6a40df1c722a82e07630 (diff) | |
download | dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.tar dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.tar.gz dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.tar.bz2 dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.tar.lz dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.tar.xz dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.tar.zst dexon-solidity-ddbaa99056b10052f0539a0afdffab53cc941dab.zip |
Merge remote-tracking branch 'ethereum/develop' into sol_overloadingFunctions
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index ed844e96..1419afde 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -23,9 +23,6 @@ #include <thread> #include <chrono> - -#include <boost/filesystem/path.hpp> - #include <libethereum/Client.h> #include <liblll/Compiler.h> #include <libevm/VMFactory.h> @@ -592,7 +589,7 @@ void userDefinedTest(string testTypeFlag, std::function<void(json_spirit::mValue } } -void executeTests(const string& _name, const string& _testPathAppendix, std::function<void(json_spirit::mValue&, bool)> doTests) +void executeTests(const string& _name, const string& _testPathAppendix, const boost::filesystem::path _pathToFiller, std::function<void(json_spirit::mValue&, bool)> doTests) { string testPath = getTestPath(); testPath += _testPathAppendix; @@ -607,9 +604,8 @@ void executeTests(const string& _name, const string& _testPathAppendix, std::fun cnote << "Populating tests..."; json_spirit::mValue v; boost::filesystem::path p(__FILE__); - boost::filesystem::path dir = p.parent_path(); - string s = asString(dev::contents(dir.string() + "/" + _name + "Filler.json")); - BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of " + dir.string() + "/" + _name + "Filler.json is empty."); + string s = asString(dev::contents(_pathToFiller.string() + "/" + _name + "Filler.json")); + BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of " + _pathToFiller.string() + "/" + _name + "Filler.json is empty."); json_spirit::read_string(s, v); doTests(v, true); writeFile(testPath + "/" + _name + ".json", asBytes(json_spirit::write_string(v, true))); |