mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
commit
a5d9b05acb
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user