Move paths so default build dir is cpp-ethereum/build.

This commit is contained in:
Gav Wood 2014-05-13 16:05:27 +01:00
parent 87d48881d8
commit ebf6d65d92

6
vm.cpp
View File

@ -472,11 +472,11 @@ BOOST_AUTO_TEST_CASE(vm_tests)
{ {
cnote << "Populating VM tests..."; cnote << "Populating VM tests...";
json_spirit::mValue v; json_spirit::mValue v;
string s = asString(contents("../../cpp-ethereum/test/vmtests.json")); string s = asString(contents("../../../cpp-ethereum/test/vmtests.json"));
BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of 'vmtests.json' is empty."); BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of 'vmtests.json' is empty.");
json_spirit::read_string(s, v); json_spirit::read_string(s, v);
eth::test::doTests(v, true); eth::test::doTests(v, true);
writeFile("../../tests/vmtests.json", asBytes(json_spirit::write_string(v, true))); writeFile("../../../tests/vmtests.json", asBytes(json_spirit::write_string(v, true)));
} }
catch( std::exception& e) catch( std::exception& e)
{ {
@ -488,7 +488,7 @@ BOOST_AUTO_TEST_CASE(vm_tests)
{ {
cnote << "Testing VM..."; cnote << "Testing VM...";
json_spirit::mValue v; json_spirit::mValue v;
string s = asString(contents("../../tests/vmtests.json")); string s = asString(contents("../../../tests/vmtests.json"));
BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of 'vmtests.json' is empty. Have you cloned the 'tests' repo branch develop?"); BOOST_REQUIRE_MESSAGE(s.length() > 0, "Contents of 'vmtests.json' is empty. Have you cloned the 'tests' repo branch develop?");
json_spirit::read_string(s, v); json_spirit::read_string(s, v);
eth::test::doTests(v, false); eth::test::doTests(v, false);