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:
$ cd build/
$ cmake -DFLB_RUNTIME_TESTS=ON ../
Running Tests
To run the tests just issue the following command:
$ make test
当前内容版权归 fluentbit.io 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 fluentbit.io .