Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
fix testeth --help output
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Jun 14, 2019
1 parent 505aead commit 678fe6c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Fixed: [#5581](https://github.com/ethereum/aleth/pull/5581) Fixed finding neighbour nodes in Discovery.
- Fixed: [#5599](https://github.com/ethereum/aleth/pull/5600) Prevent aleth from attempting concurrent connection to node which results in disconnect of original connection.
- Fixed: [#5609](https://github.com/ethereum/aleth/pull/5609) Log valid local enode-address when external IP is not known.
- Fixed: [#5627](https://github.com/ethereum/aleth/pull/5627) Correct testeth --help log output indentation

## [1.6.0] - 2019-04-16

Expand Down
58 changes: 29 additions & 29 deletions test/tools/libtesteth/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,42 +39,42 @@ void printHelp()
cout << "Usage: \n";
cout << std::left;
cout << "\nSetting test suite\n";
cout << setw(30) << "-t <TestSuite>" << setw(25) << "Execute test operations\n";
cout << setw(30) << "-t <TestSuite>/<TestCase>\n";
cout << setw(30) << "--testpath <PathToTheTestRepo>\n";
cout << setw(35) << "-t <TestSuite>" << setw(0) << "Execute test operations\n";
cout << setw(0) << "-t <TestSuite>/<TestCase>\n";
cout << setw(35) << "--testpath <PathToTheTestRepo>" << setw(0) << "Set path to the test folder\n";

cout << "\nDebugging\n";
cout << setw(30) << "-d <index>" << setw(25) << "Set the transaction data array index when running GeneralStateTests\n";
cout << setw(30) << "-g <index>" << setw(25) << "Set the transaction gas array index when running GeneralStateTests\n";
cout << setw(30) << "-v <index>" << setw(25) << "Set the transaction value array index when running GeneralStateTests\n";
cout << setw(30) << "--singletest <TestName>" << setw(25) << "Run on a single test\n";
cout << setw(30) << "--singletest <TestFile> <TestName>\n";
cout << setw(30) << "--singlenet <networkId>" << setw(25) << "Run tests for a specific network (Frontier|Homestead|EIP150|EIP158|Byzantium|Constantinople|ConstantinopleFix)\n";
cout << setw(30) << "--verbosity <level>" << setw(25) << "Set logs verbosity. 0 - silent, 1 - only errors, 2 - informative, >2 - detailed\n";
cout << setw(30) << "--vm <name|path> (=legacy)" << setw(25) << "Set VM type for VMTests suite. Available options are: interpreter, legacy.\n";
cout << setw(30) << "--evmc <option>=<value>" << setw(25) << "EVMC option\n";
cout << setw(30) << "--vmtrace" << setw(25) << "Enable VM trace for the test. (Require build with VMTRACE=1)\n";
cout << setw(30) << "--jsontrace <Options>" << setw(25) << "Enable VM trace to stdout in json format. Argument is a json config: '{ \"disableStorage\" : false, \"disableMemory\" : false, \"disableStack\" : false, \"fullStorage\" : true }'\n";
cout << setw(30) << "--stats <OutFile>" << setw(25) << "Output debug stats to the file\n";
cout << setw(30) << "--exectimelog" << setw(25) << "Output execution time for each test suite\n";
cout << setw(30) << "--statediff" << setw(25) << "Trace state difference for state tests\n";
cout << setw(35) << "-d <index>" << setw(25) << "Set the transaction data array index when running GeneralStateTests\n";
cout << setw(35) << "-g <index>" << setw(25) << "Set the transaction gas array index when running GeneralStateTests\n";
cout << setw(35) << "-v <index>" << setw(25) << "Set the transaction value array index when running GeneralStateTests\n";
cout << setw(35) << "--singletest <TestName>" << setw(0) << "Run on a single test\n";
cout << setw(35) << "--singletest <TestFile> <TestName>\n";
cout << setw(35) << "--singlenet <networkId>" << setw(25) << "Run tests for a specific network (Frontier|Homestead|EIP150|EIP158|Byzantium|Constantinople|ConstantinopleFix)\n";
cout << setw(35) << "--verbosity <level>" << setw(25) << "Set logs verbosity. 0 - silent, 1 - only errors, 2 - informative, >2 - detailed\n";
cout << setw(35) << "--vm <name|path> (=legacy)" << setw(25) << "Set VM type for VMTests suite. Available options are: interpreter, legacy.\n";
cout << setw(35) << "--evmc <option>=<value>" << setw(0) << "EVMC option\n";
cout << setw(35) << "--vmtrace" << setw(25) << "Enable VM trace for the test. (Require build with VMTRACE=1)\n";
cout << setw(35) << "--jsontrace <Options>" << setw(25) << "Enable VM trace to stdout in json format. Argument is a json config: '{ \"disableStorage\" : false, \"disableMemory\" : false, \"disableStack\" : false, \"fullStorage\" : true }'\n";
cout << setw(35) << "--stats <OutFile>" << setw(25) << "Output debug stats to the file\n";
cout << setw(35) << "--exectimelog" << setw(25) << "Output execution time for each test suite\n";
cout << setw(35) << "--statediff" << setw(25) << "Trace state difference for state tests\n";

cout << "\nAdditional Tests\n";
cout << setw(30) << "--all" << setw(25) << "Enable all tests\n";
cout << setw(35) << "--all" << setw(25) << "Enable all tests\n";

cout << "\nTest Generation\n";
cout << setw(30) << "--filltests" << setw(25) << "Run test fillers\n";
cout << setw(30) << "--fillchain" << setw(25) << "When filling the state tests, fill tests as blockchain instead\n";
cout << setw(30) << "--showhash" << setw(25) << "Show filler hash debug information\n";
cout << setw(30) << "--randomcode <MaxOpcodeNum>" << setw(25) << "Generate smart random EVM code\n";
cout << setw(30) << "--createRandomTest" << setw(25) << "Create random test and output it to the console\n";
cout << setw(30) << "--createRandomTest <PathToOptions.json>" << setw(25) << "Use following options file for random code generation\n";
cout << setw(30) << "--seed <uint>" << setw(25) << "Define a seed for random test\n";
cout << setw(30) << "--options <PathTo.json>" << setw(25) << "Use following options file for random code generation\n";
cout << setw(35) << "--filltests" << setw(0) << "Run test fillers\n";
cout << setw(35) << "--fillchain" << setw(25) << "When filling the state tests, fill tests as blockchain instead\n";
cout << setw(35) << "--showhash" << setw(25) << "Show filler hash debug information\n";
cout << setw(35) << "--randomcode <MaxOpcodeNum>" << setw(25) << "Generate smart random EVM code\n";
cout << setw(35) << "--createRandomTest" << setw(25) << "Create random test and output it to the console\n";
cout << setw(35) << "--createRandomTest <PathToOptions.json>" << setw(25) << "Use following options file for random code generation\n";
cout << setw(35) << "--seed <uint>" << setw(25) << "Define a seed for random test\n";
cout << setw(35) << "--options <PathTo.json>" << setw(25) << "Use following options file for random code generation\n";
//cout << setw(30) << "--fulloutput" << setw(25) << "Disable address compression in the output field\n";
cout << setw(30) << "--db <name> (=memorydb)" << setw(25) << "Use the supplied database for the block and state databases. Valid options: leveldb, rocksdb, memorydb\n";
cout << setw(30) << "--help" << setw(25) << "Display list of command arguments\n";
cout << setw(30) << "--version" << setw(25) << "Display build information\n";
cout << setw(35) << "--db <name> (=memorydb)" << setw(25) << "Use the supplied database for the block and state databases. Valid options: leveldb, rocksdb, memorydb\n";
cout << setw(35) << "--help" << setw(25) << "Display list of command arguments\n";
cout << setw(35) << "--version" << setw(25) << "Display build information\n";
}

void printVersion()
Expand Down

0 comments on commit 678fe6c

Please sign in to comment.