test: compare compiled modules with the Lua 5.4 interpreter
The generated code can only be trusted if it behaves like the reference implementation, so the same script runs both ways and the outputs are diffed.
This commit is contained in:
5 files changed
+250
No files matched your search
@@ -0,0 +1,8 @@
|
||||
add_lua_package(luacpp_conformance_lua
|
||||
ROOT "${CMAKE_CURRENT_SOURCE_DIR}/lua"
|
||||
MODULES core.lua)
|
||||
|
||||
add_executable(luacpp_conformance core_main.cpp)
|
||||
target_link_libraries(luacpp_conformance PRIVATE luacpp_conformance_lua)
|
||||
|
||||
add_test(NAME luacpp_conformance COMMAND luacpp_conformance)
|
||||
Reference in new issue
Block a user