added warning if isoltest gas-cost-expectations are not enforced

This commit is contained in:
nishant-sachdeva 2021-12-24 23:23:51 +05:30
parent 692614df72
commit bd819c87fa
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;