Unit Tests

Fluent Bit comes with some unit test programs that uses the library mode to ingest data and test the output.

In the source code, we provide two kinds of tests:

  • internal
  • runtime

Internal tests are unit tests that runs isolated from the engine, their target is mostly to validate specific functions from the core. In the other side, runtime tests runs in with the engine in library mode.

By default only internal tests are enabled

Enable Runtime Tests

By default Fluent Bit have runtime tests disabled, you need to append the option -DFLB_RUNTIME_TESTS=on to your cmake line, e.g:

  1. $ cd build/
  2. $ cmake -DFLB_RUNTIME_TESTS=ON ../

Running Tests

To run the tests just issue the following command:

  1. $ make test