diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ad2e1467b..d5680044a13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Added: [#5699](https://github.com/ethereum/aleth/pull/5699) EIP 2046: Reduced gas cost for static calls made to precompiles. - Added: [#5741](https://github.com/ethereum/aleth/pull/5741) Support for individual EIP activation to facilitate EIP-centric network upgrade process. - Added: [#5752](https://github.com/ethereum/aleth/pull/5752) [#5753](https://github.com/ethereum/aleth/pull/5753) Implement EIP1380 (reduced gas costs for call-to-self). +- Changed: [#5750](https://github.com/ethereum/aleth/pull/5750) Use `testeth -t -- --testfile ` to run the tests from file at any path. Use `testeth -t -- --testfile --singletest ` to run only single test from any file. - Changed: [#5801](https://github.com/ethereum/aleth/pull/5801) `testeth -t BlockchainTests` command now doesn't run the tests for the forks before Istanbul. To run those tests use a separate LegacyTests suite with command `testeth -t LegacyTests/Constantinople/BlockchainTests`. - Changed: [#5807](https://github.com/ethereum/aleth/pull/5807) Optimize selfdestruct opcode in LegacyVM by reducing state accesses in certain out-of-gas scenarios. - Changed: [#5806](https://github.com/ethereum/aleth/pull/5806) Optimize selfdestruct opcode in aleth-interpreter by reducing state accesses in certain out-of-gas scenarios. diff --git a/test/tools/jsontests/BlockChainTests.cpp b/test/tools/jsontests/BlockChainTests.cpp index ff557d2a6c2..cd86690e8f4 100644 --- a/test/tools/jsontests/BlockChainTests.cpp +++ b/test/tools/jsontests/BlockChainTests.cpp @@ -122,7 +122,8 @@ json_spirit::mValue doBCTest( Options const& opt = test::Options::get(); // Select BC Test by singleTest - if (opt.singleTest && !boost::algorithm::starts_with(testname, opt.singleTestName)) + if (!opt.singleTestName.empty() && + !boost::algorithm::starts_with(testname, opt.singleTestName)) continue; // Select BC Test by singleNet diff --git a/test/tools/libtesteth/Options.cpp b/test/tools/libtesteth/Options.cpp index 2e6848ed972..fe890fdff53 100644 --- a/test/tools/libtesteth/Options.cpp +++ b/test/tools/libtesteth/Options.cpp @@ -34,8 +34,11 @@ void printHelp() cout << setw(35) << "-g " << setw(25) << "Set the transaction gas array index when running GeneralStateTests\n"; cout << setw(35) << "-v " << setw(25) << "Set the transaction value array index when running GeneralStateTests\n"; cout << setw(35) << "--singletest " << "Run on a single test\n"; - cout << setw(35) << "--singletest " << "Run on a single test from file\n"; cout << setw(35) << "--singlenet " << setw(25) << "Run tests for a specific network (Frontier|Homestead|EIP150|EIP158|Byzantium|Constantinople|ConstantinopleFix)\n"; + cout << setw(35) << "--testfile " + << "Run tests from a file. Requires -t \n"; + cout << setw(35) << "--testfile --singletest " + << "Run on a single test from a file. Requires -t \n"; cout << setw(35) << "--verbosity " << setw(25) << "Set logs verbosity. 0 - silent, 1 - only errors, 2 - informative, >2 - detailed\n"; cout << setw(35) << "--vm (=legacy)" << setw(25) << "Set VM type for VMTests suite. Available options are: interpreter, legacy.\n"; cout << setw(35) << "--evmc