Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cmake magic to test readme #68

merged 1 commit into from Jan 15, 2020


Copy link

sheredom commented Jan 14, 2020

No description provided.

@sheredom sheredom force-pushed the use_cmake_magic_to_test_readme branch 3 times, most recently from 5513619 to 45353b9 Jan 14, 2020
I've always marvelled at how Rust can automatically test code samples, and worried that my C examples were not being tested. So I performed some demonology and managed to scrape the with CMake and fire it into a header that I can include in a test. Quite disgusting and brilliant!

I also added some nice little helper functions to aid parsing of the source.
@sheredom sheredom force-pushed the use_cmake_magic_to_test_readme branch from 45353b9 to 7f0c2d0 Jan 15, 2020
@sheredom sheredom merged commit eeb1c14 into master Jan 15, 2020
4 checks passed
4 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
continuous-integration/travis-ci/push The Travis CI build passed
@sheredom sheredom deleted the use_cmake_magic_to_test_readme branch Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.