mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Change output of random test to std::out instead of file
This commit is contained in:
parent
6c0b16bc03
commit
60a7ff58a1
@ -42,11 +42,7 @@ void doMyTests(json_spirit::mValue& v);
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
// if (argc != 2)
|
g_logVerbosity = 0;
|
||||||
// {
|
|
||||||
// cout << "usage: createRandomTest <filename>\n";
|
|
||||||
// return 0;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// create random code
|
// create random code
|
||||||
|
|
||||||
@ -114,16 +110,8 @@ int main(int argc, char *argv[])
|
|||||||
// execute code in vm
|
// execute code in vm
|
||||||
doMyTests(v);
|
doMyTests(v);
|
||||||
|
|
||||||
// // write new test
|
// stream to output for further handling by the bash script
|
||||||
// string filename = argv[1];
|
cout << json_spirit::write_string(v, true);
|
||||||
// writeFile(filename, asBytes(json_spirit::write_string(v, true)));
|
|
||||||
|
|
||||||
// write resultsing test to envirnoment variable
|
|
||||||
string str = "ETHEREUM_RANDOM_TEST=" + json_spirit::write_string(v, true);
|
|
||||||
char *cstr = new char[str.length() + 1];
|
|
||||||
strcpy(cstr, str.c_str());
|
|
||||||
putenv(cstr);
|
|
||||||
delete [] cstr;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user