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

This commit is contained in:
nishant-sachdeva committed 2021-12-30 18:51:55 +05:30
1 parent 692614df72
commit bd819c87fa
2 files changed
+6

No files matched your search

+3
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)
{
+3
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;