• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / luajit / 8511999542
93%

Build:
DEFAULT BRANCH: tarantool/master
Ran 01 Apr 2024 06:31PM UTC
Jobs 1
Files 89
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Apr 2024 06:17PM UTC coverage: 92.583% (+21.3%) from 71.279%
8511999542

push

github

Buristan
cmake: replace prove with CTest

The patch replaces the main test runner `prove(1)` with CTest, see [1]
and [2].

Build and test steps look the same as before:

$ cmake -S . -B build
$ cmake --build build --parallel
$ cmake --build build --target [LuaJIT-test, test]

CMake targets lua-Harness-tests, LuaJIT-tests, PUC-Rio-Lua-5.1-tests,
tarantool-tests and tarantool-c-tests are still operating.

The CMake custom target `test` was replaced by a target with the same
name that is automatically generated by CMake. It is not possible to
attach targets to this automatically generated `test` target.
It means that target `test` is now executing `LuaJIT-test`, but not
`LuaJIT-lint`. To mitigate this, a new target `LuaJIT-check-all` is
introduced. It has the same behaviour as an old `test` target: it runs
all functional tests and linters.

One could use `ctest` tool:

$ ctest --print-labels
Test project <snipped>
All Labels:
  LuaJIT-tests
  PUC-Rio-Lua-5.1-tests
  lua-Harness-tests
  tarantool-c-tests
  tarantool-tests
$ ctest                          # Run all tests.
$ ctest -L tarantool-tests       # Run tests by label.
$ ctest -L tarantool-c-tests     # Ditto.
$ ctest -L lua-Harness-tests     # Ditto.
$ ctest -L LuaJIT-tests          # Ditto.
$ ctest -L PUC-Rio-Lua-5.1-tests # Ditto.
$ ctest --rerun-fail             # Run only the tests
                                 # that failed previously.
$ ctest --verbose                # Print details to stdout.
$ ctest --output-on-failure      # Print details to stdout
                                 # on test failure only.

The benefits are:

- less external dependencies, `prove(1)` is gone, `ctest` is a part of
  CMake
- running tests by test title
- extended test running options in comparison to prove(1)
- unified test output (finally!)

Note that the testsuites in `test/LuaJIT-tests` and
`test/PUC-Rio-Lua-5.1` directories have their own test runners written
in Lua, and currently CTest runs these testsuites as s... (continued)

5659 of 6018 branches covered (94.03%)

Branch coverage included in aggregate %.

21592 of 23416 relevant lines covered (92.21%)

2827293.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8511999542.1 01 Apr 2024 06:31PM UTC 89
92.58
GitHub Action Run
Source Files on build 8511999542
  • Tree
  • List 89
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8511999542
  • 9f1137bc on github
  • Prev Build on tarantool/master (#8448035103)
  • Next Build on tarantool/master (#8511999598)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc