diff options
author | chriseth <chris@ethereum.org> | 2018-12-05 19:02:49 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-06 21:43:14 +0800 |
commit | b7cfa499b0bd674b59284821e33349726cbc4299 (patch) | |
tree | b008fb966c8371a47d6610aa4c40ac8afe87ff19 /test/tools | |
parent | 3fc118ba21ea2731dff951e65bd103ef5c59b8fd (diff) | |
download | dexon-solidity-b7cfa499b0bd674b59284821e33349726cbc4299.tar.gz dexon-solidity-b7cfa499b0bd674b59284821e33349726cbc4299.tar.zst dexon-solidity-b7cfa499b0bd674b59284821e33349726cbc4299.zip |
Add tests.
Diffstat (limited to 'test/tools')
-rw-r--r-- | test/tools/CMakeLists.txt | 18 | ||||
-rw-r--r-- | test/tools/isoltest.cpp | 12 |
2 files changed, 27 insertions, 3 deletions
diff --git a/test/tools/CMakeLists.txt b/test/tools/CMakeLists.txt index 736212fc..da8e0b39 100644 --- a/test/tools/CMakeLists.txt +++ b/test/tools/CMakeLists.txt @@ -4,7 +4,19 @@ target_link_libraries(solfuzzer PRIVATE libsolc evmasm ${Boost_PROGRAM_OPTIONS_L add_executable(yulopti yulopti.cpp) target_link_libraries(yulopti PRIVATE solidity ${Boost_PROGRAM_OPTIONS_LIBRARIES} ${Boost_SYSTEM_LIBRARIES}) -add_executable(isoltest isoltest.cpp ../Options.cpp ../Common.cpp ../TestCase.cpp ../libsolidity/SyntaxTest.cpp - ../libsolidity/AnalysisFramework.cpp ../libsolidity/SolidityExecutionFramework.cpp ../ExecutionFramework.cpp - ../RPCSession.cpp ../libsolidity/ASTJSONTest.cpp ../libsolidity/SMTCheckerJSONTest.cpp ../libyul/YulOptimizerTest.cpp) +add_executable(isoltest + isoltest.cpp + ../Options.cpp + ../Common.cpp + ../TestCase.cpp + ../libsolidity/SyntaxTest.cpp + ../libsolidity/AnalysisFramework.cpp + ../libsolidity/SolidityExecutionFramework.cpp + ../ExecutionFramework.cpp + ../RPCSession.cpp + ../libsolidity/ASTJSONTest.cpp + ../libsolidity/SMTCheckerJSONTest.cpp + ../libyul/ObjectCompilerTest.cpp + ../libyul/YulOptimizerTest.cpp +) target_link_libraries(isoltest PRIVATE libsolc solidity evmasm ${Boost_PROGRAM_OPTIONS_LIBRARIES} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) diff --git a/test/tools/isoltest.cpp b/test/tools/isoltest.cpp index f8e2dc58..13585887 100644 --- a/test/tools/isoltest.cpp +++ b/test/tools/isoltest.cpp @@ -23,6 +23,7 @@ #include <test/libsolidity/ASTJSONTest.h> #include <test/libsolidity/SMTCheckerJSONTest.h> #include <test/libyul/YulOptimizerTest.h> +#include <test/libyul/ObjectCompilerTest.h> #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/replace.hpp> @@ -401,6 +402,17 @@ Allowed options)", else return 1; + if (auto stats = runTestSuite( + "Yul Object Compiler", + testPath / "libyul", + "objectCompiler", + yul::test::ObjectCompilerTest::create, + formatted + )) + global_stats += *stats; + else + return 1; + if (!disableSMT) { if (auto stats = runTestSuite( |