solidity/test/TestHelper.h

52 lines
1.1 KiB
C
Raw Normal View History

2014-03-26 05:01:17 +00:00
/*
This file is part of solidity.
2014-03-26 05:01:17 +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.
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
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>
#include <boost/test/unit_test.hpp>
2015-04-20 20:48:53 +00:00
#include <boost/filesystem.hpp>
#include <boost/version.hpp>
2018-02-22 16:21:26 +00:00
#include <functional>
namespace dev
{
namespace test
{
2016-08-06 09:37:52 +00:00
struct Options: boost::noncopyable
{
std::string ipcPath;
2016-12-06 17:38:59 +00:00
bool showMessages = false;
2018-02-22 16:21:26 +00:00
std::string evmVersion;
2016-11-23 14:14:25 +00:00
bool optimize = false;
bool disableIPC = false;
2017-09-28 08:28:41 +00:00
bool disableSMT = false;
2016-08-06 09:37:52 +00:00
static Options const& get();
2016-08-06 09:37:52 +00:00
private:
Options();
};
2016-08-02 16:32:03 +00:00
2014-03-26 05:01:17 +00:00
}
}