test: Rename test/TestHelper.* to test/Options.* and add Options::validate().

This commit is contained in:
Daniel Kirchner committed 2018-03-14 12:04:04 +01:00
1 parent a5d9b05acb
commit d63d41b3b5
33 files changed
+51 -39

No files matched your search

+2 -5
View File
@@ -35,7 +35,7 @@
#pragma GCC diagnostic pop
#include <test/TestHelper.h>
#include <test/Options.h>
#include <test/libsolidity/SyntaxTest.h>
using namespace boost::unit_test;
@@ -55,10 +55,7 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
{
master_test_suite_t& master = framework::master_test_suite();
master.p_name.value = "SolidityTests";
solAssert(
!dev::test::Options::get().testPath.empty(),
"No test path specified. The --testpath argument is required."
);
dev::test::Options::get().validate();
solAssert(dev::solidity::test::SyntaxTest::registerTests(
master,
dev::test::Options::get().testPath / "libsolidity",