Skip to content

Add Plugin Tests to builds - #143

Merged
isaac-io merged 2 commits into
mainfrom
plugin-tests
Sep 13, 2022
Merged

Add Plugin Tests to builds#143
isaac-io merged 2 commits into
mainfrom
plugin-tests

Conversation

@mrambacher

Copy link
Copy Markdown
Contributor

Add a xxx_TESTS variable that contains the tests to build for the plugin. Create rules in CMake and Make to build the corresponding tests.

Note that the same paradigm can be used to build most/all tests, but was left for a second PR (to not complicate the change)

@mrambacher mrambacher added the Upstreamable can be upstreamed to RocksDB label Aug 30, 2022
@mrambacher
mrambacher requested a review from isaac-io August 30, 2022 03:24
@mrambacher mrambacher self-assigned this Aug 30, 2022
Comment thread CMakeLists.txt
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread Makefile Outdated
Comment thread CMakeLists.txt Outdated
@isaac-io isaac-io linked an issue Aug 30, 2022 that may be closed by this pull request

@isaac-io isaac-io left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@isaac-io
isaac-io merged commit 4691752 into main Sep 13, 2022
@isaac-io
isaac-io deleted the plugin-tests branch September 13, 2022 16:31
facebook-github-bot pushed a commit to facebook/rocksdb that referenced this pull request Dec 31, 2022
Summary:
This is based on speedb PR [143](speedb-io/speedb#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: #11052

Reviewed By: cbi42

Differential Revision: D42212269

Pulled By: ajkr

fbshipit-source-id: d02668f7f4466900d63c90bb4f7962d23fcc7114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Upstreamable can be upstreamed to RocksDB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: allow running unit test from plugins as part of make check

2 participants