Merge pull request #12456 from nishant-sachdeva/generate_warning_if_isoltest_gas_cost_expectations_not_enforced

added warning if isoltest gas-cost-expectations are not enforced
This commit is contained in:
chriseth 2021-12-30 14:59:45 +01:00 committed by GitHub
commit 6849774bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -191,6 +191,9 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
if (solidity::test::CommonOptions::get().disableSemanticTests)
cout << endl << "--- SKIPPING ALL SEMANTICS TESTS ---" << endl << endl;
if (!solidity::test::CommonOptions::get().enforceGasTest)
cout << endl << "WARNING :: Gas Cost Expectations are not being enforced" << endl << endl;
// Include the interactive tests in the automatic tests as well
for (auto const& ts: g_interactiveTestsuites)
{

View File

@ -437,6 +437,9 @@ int main(int argc, char const *argv[])
if (options.disableSemanticTests)
cout << endl << "--- SKIPPING ALL SEMANTICS TESTS ---" << endl << endl;
if (!options.enforceGasTest)
cout << "WARNING :: Gas Cost Expectations are not being enforced" << endl << endl;
TestStats global_stats{0, 0};
cout << "Running tests..." << endl << endl;