]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add ability to have unit tests for ROCKSDB_PLUGINS (#11052)
authormrambacher <mrambach@gmail.com>
Sat, 31 Dec 2022 00:55:58 +0000 (16:55 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 31 Dec 2022 00:55:58 +0000 (16:55 -0800)
commit559aaa35771e88cd0f8a64a19f534097709e221f
treeac81cefe4503a30d8ee52fa8e030e9d06d2e19af
parent7f71880de918e182a16223cb50114f0764106ac4
Add ability to have unit tests for ROCKSDB_PLUGINS (#11052)

Summary:
This is based on speedb PR [143](https://github.com/speedb-io/speedb/pull/143).

This PR adds the ability to add a xxx_TESTS variable to the make or cmake files for a plugin.  When set, those files will be added to the unit tests built and executed by the corresponding make system.

Note that the rule for building plugin tests via make could be expanded to almost every other unit test in RocksDB.  This expansion would allow for a much smaller/simpler Makefile and make it easier to add new test files to RocksDB.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11052

Reviewed By: cbi42

Differential Revision: D42212269

Pulled By: ajkr

fbshipit-source-id: d02668f7f4466900d63c90bb4f7962d23fcc7114
CMakeLists.txt
Makefile