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

Add optional test executable and enable Substrait C API tests #121

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

anshuldata
Copy link
Contributor

  • This allows running C Unit tests
  • Added an option ENABLE_TEST_EXE to build an optional test executable in test/c/CMakeLists.txt
  • Created a new main.cpp file to run C tests.
  • Updated test_substrait_c_api.cpp to fix build errors and remove unused includes.
  • Included the new test directory in the main CMakeLists.txt.

@jacques-n
Copy link
Contributor

Why are some of the checks failing?

test/c/CMakeLists.txt Outdated Show resolved Hide resolved
test/c/test_substrait_c_api.cpp Show resolved Hide resolved
@anshuldata
Copy link
Contributor Author

Why are some of the checks failing?

It is failing in unchanged file and this PR doesn't change workflow. So don't have a clue based on failure. I will debug it.

@anshuldata
Copy link
Contributor Author

anshuldata commented Nov 13, 2024

Why are some of the checks failing?

Issue was workflow refers to latest main instead of a specific commit. Duckdb moved ahead with breaking change. I will raise another PR to fix it

@anshuldata anshuldata changed the title Add optional test executable and enable Substrait C API tests Fixup: Add optional test executable and enable Substrait C API tests Nov 13, 2024
@anshuldata anshuldata changed the title Fixup: Add optional test executable and enable Substrait C API tests Add optional test executable and enable Substrait C API tests Nov 13, 2024
@anshuldata
Copy link
Contributor Author

Raised #122 to fix Workflow to run with a particular commit of duckdb. Once it is merged, I will rebase this one

- Added an option `ENABLE_TEST_EXE` to build an optional test executable in `test/c/CMakeLists.txt`
- Created a new `main.cpp` file to run C tests.
- Updated `test_substrait_c_api.cpp` to fix build errors and remove unused includes.
- Included the new test directory in the main `CMakeLists.txt`.
@jacques-n jacques-n merged commit 65c6b3e into substrait-io:main Nov 13, 2024
9 checks passed
@anshuldata anshuldata deleted the anshul/EnableCTest branch November 14, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants