Merge pull request #3731 from ethereum/errorNoTestPath

soltest: force the use of the --testpath option for soltest with an e…
This commit is contained in:
chriseth 2018-03-14 11:42:41 +01:00 committed by GitHub
commit a5d9b05acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,10 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
{ {
master_test_suite_t& master = framework::master_test_suite(); master_test_suite_t& master = framework::master_test_suite();
master.p_name.value = "SolidityTests"; master.p_name.value = "SolidityTests";
solAssert(
!dev::test::Options::get().testPath.empty(),
"No test path specified. The --testpath argument is required."
);
solAssert(dev::solidity::test::SyntaxTest::registerTests( solAssert(dev::solidity::test::SyntaxTest::registerTests(
master, master,
dev::test::Options::get().testPath / "libsolidity", dev::test::Options::get().testPath / "libsolidity",