solidity/test/Options.h

59 lines
1.3 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
#include <liblangutil/EVMVersion.h>
2018-02-22 16:21:26 +00:00
#include <boost/test/unit_test.hpp>
2015-04-20 20:48:53 +00:00
#include <boost/filesystem.hpp>
#include <boost/version.hpp>
2018-10-15 16:08:41 +00:00
#include <boost/noncopyable.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;
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;
bool disableIPC = false;
2017-09-28 08:28:41 +00:00
bool disableSMT = false;
bool useABIEncoderV2 = false;
2016-08-06 09:37:52 +00:00
void validate() const;
solidity::EVMVersion evmVersion() const;
static Options const& get();
2016-08-06 09:37:52 +00:00
private:
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
}
}