aboutsummaryrefslogtreecommitdiffstats
path: root/test/boostTest.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-12 20:33:37 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-13 18:20:11 +0800
commit3232561d979954f0625102d33cf042fc5eda7211 (patch)
treed2551396fd88e5e4c7658e4a13791976ac82cb4b /test/boostTest.cpp
parent317c1f7fa36a24259a3c678fad255406df9da64d (diff)
downloaddexon-solidity-3232561d979954f0625102d33cf042fc5eda7211.tar.gz
dexon-solidity-3232561d979954f0625102d33cf042fc5eda7211.tar.zst
dexon-solidity-3232561d979954f0625102d33cf042fc5eda7211.zip
Refactoring; fuse SyntaxTestParser and SyntaxTester to SyntaxTest.
Diffstat (limited to 'test/boostTest.cpp')
-rw-r--r--test/boostTest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/boostTest.cpp b/test/boostTest.cpp
index fa9df3fd..e557ff95 100644
--- a/test/boostTest.cpp
+++ b/test/boostTest.cpp
@@ -36,7 +36,7 @@
#pragma GCC diagnostic pop
#include <test/TestHelper.h>
-#include <test/libsolidity/SyntaxTester.h>
+#include <test/libsolidity/SyntaxTest.h>
using namespace boost::unit_test;
@@ -55,7 +55,11 @@ test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
{
master_test_suite_t& master = framework::master_test_suite();
master.p_name.value = "SolidityTests";
- dev::solidity::test::SyntaxTester::registerTests();
+ solAssert(dev::solidity::test::SyntaxTest::registerTests(
+ master,
+ dev::test::Options::get().testPath / "libsolidity",
+ "syntaxTests"
+ ) > 0, "no syntax tests found");
if (dev::test::Options::get().disableIPC)
{
for (auto suite: {