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 @@ -68,15 +68,15 @@ jobs:
6868 run : |
6969 cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
7070 -DUSE_LUA=ON -DENABLE_BUILD_PROTOBUF=OFF \
71- -DENABLE_INTERNAL_TESTS=ON \
71+ -DENABLE_INTERNAL_TESTS=ON -DENABLE_LAPI_TESTS=ON \
7272 -G Ninja -S . -B build
7373 if : ${{ matrix.LUA == 'lua' }}
7474
7575 - name : Running CMake (LuaJIT -current)
7676 run : |
7777 cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
7878 -DUSE_LUAJIT=ON -DENABLE_BUILD_PROTOBUF=OFF \
79- -DENABLE_INTERNAL_TESTS=ON \
79+ -DENABLE_INTERNAL_TESTS=ON -DENABLE_LAPI_TESTS=ON \
8080 -G Ninja -S . -B build
8181 if : ${{ matrix.LUA == 'luajit' }}
8282
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 @@ -18,4 +18,6 @@ if(IS_LUAJIT)
1818endif ()
1919
2020add_subdirectory (capi)
21- add_subdirectory (lapi)
21+ if (ENABLE_LAPI_TESTS)
22+ add_subdirectory (lapi)
23+ endif ()
You can’t perform that action at this time.
0 commit comments