File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ jobs:
6767 run : |
6868 cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
6969 -DUSE_LUA=ON -DENABLE_BUILD_PROTOBUF=OFF \
70- -DENABLE_INTERNAL_TESTS=ON \
70+ -DENABLE_INTERNAL_TESTS=ON -DENABLE_LAPI_TESTS=ON \
7171 -G Ninja -S . -B build
7272 if : ${{ matrix.LUA == 'lua' }}
7373
7474 - name : Running CMake (LuaJIT -current)
7575 run : |
7676 cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
7777 -DUSE_LUAJIT=ON -DENABLE_BUILD_PROTOBUF=OFF \
78- -DENABLE_INTERNAL_TESTS=ON \
78+ -DENABLE_INTERNAL_TESTS=ON -DENABLE_LAPI_TESTS=ON \
7979 -G Ninja -S . -B build
8080 if : ${{ matrix.LUA == 'luajit' }}
8181
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ option(OSS_FUZZ "Enable support of OSS Fuzz" OFF)
2525option (ENABLE_BUILD_PROTOBUF "Enable building Protobuf library" ON )
2626option (ENABLE_BONUS_TESTS "Enable bonus tests" OFF )
2727option (ENABLE_INTERNAL_TESTS "Enable internal tests" OFF )
28+ option (ENABLE_LAPI_TESTS "Enable Lua API tests" OFF )
2829
2930set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" ${CMAKE_MODULE_PATH} )
3031set (CMAKE_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" ${CMAKE_INCLUDE_PATH} )
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ is LuaJIT-specific.
4949- ` ENABLE_BUILD_PROTOBUF ` enables building Protobuf library, otherwise system
5050 library is used.
5151- ` ENABLE_INTERNAL_TESTS ` enables internal tests.
52+ - ` ENABLE_LAPI_TESTS ` enables Lua API tests.
5253
5354### Running
5455
Original file line number Diff line number Diff line change 11add_subdirectory (capi)
2- add_subdirectory (lapi)
2+ if (ENABLE_LAPI_TESTS)
3+ add_subdirectory (lapi)
4+ endif ()
You can’t perform that action at this time.
0 commit comments