2014-03-26 05:01:17 +00:00
|
|
|
/*
|
2016-11-18 23:13:20 +00:00
|
|
|
This file is part of solidity.
|
2014-03-26 05:01:17 +00:00
|
|
|
|
2016-11-18 23:13:20 +00:00
|
|
|
solidity is free software: you can redistribute it and/or modify
|
2014-03-26 05:01:17 +00:00
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
2016-11-18 23:13:20 +00:00
|
|
|
solidity is distributed in the hope that it will be useful,
|
2014-03-26 05:01:17 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2016-11-18 23:13:20 +00:00
|
|
|
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
2014-03-26 05:01:17 +00:00
|
|
|
*/
|
|
|
|
/** @file TestHelper.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-02-22 16:21:26 +00:00
|
|
|
#include <libsolidity/interface/EVMVersion.h>
|
|
|
|
|
2014-11-03 15:33:02 +00:00
|
|
|
#include <boost/test/unit_test.hpp>
|
2015-04-20 20:48:53 +00:00
|
|
|
#include <boost/filesystem.hpp>
|
2015-10-24 21:11:01 +00:00
|
|
|
#include <boost/version.hpp>
|
2015-02-09 16:31:04 +00:00
|
|
|
|
2018-02-22 16:21:26 +00:00
|
|
|
#include <functional>
|
|
|
|
|
2014-09-05 15:09:58 +00:00
|
|
|
namespace dev
|
|
|
|
{
|
2014-10-29 16:25:02 +00:00
|
|
|
namespace test
|
|
|
|
{
|
|
|
|
|
2016-08-06 09:37:52 +00:00
|
|
|
struct Options: boost::noncopyable
|
|
|
|
{
|
|
|
|
std::string ipcPath;
|
2018-03-12 12:33:37 +00:00
|
|
|
boost::filesystem::path testPath;
|
2016-12-06 17:38:59 +00:00
|
|
|
bool showMessages = false;
|
2016-11-23 14:14:25 +00:00
|
|
|
bool optimize = false;
|
2017-04-26 09:53:44 +00:00
|
|
|
bool disableIPC = false;
|
2017-09-28 08:28:41 +00:00
|
|
|
bool disableSMT = false;
|
2016-08-06 09:37:52 +00:00
|
|
|
|
2018-03-14 11:04:04 +00:00
|
|
|
void validate() const;
|
2018-02-23 10:42:53 +00:00
|
|
|
solidity::EVMVersion evmVersion() const;
|
|
|
|
|
2016-08-06 09:55:37 +00:00
|
|
|
static Options const& get();
|
2016-08-06 09:37:52 +00:00
|
|
|
|
|
|
|
private:
|
2018-02-23 10:42:53 +00:00
|
|
|
std::string evmVersionString;
|
|
|
|
|
2016-08-06 09:37:52 +00:00
|
|
|
Options();
|
|
|
|
};
|
2016-08-02 16:32:03 +00:00
|
|
|
|
2014-03-26 05:01:17 +00:00
|
|
|
}
|
2014-09-05 15:09:58 +00:00
|
|
|
}
|