-
Notifications
You must be signed in to change notification settings - Fork 170
Add a CMake based system for integration tests #565
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
Conversation
It tests CPython, LPython/LLVM and LPython/C. One invokes it using: * CPython: cmake . * LPython/LLVM: cmake -DLPYTHON_BACKEND=llvm . * LPython/C: cmake -DLPYTHON_BACKEND=c . Then one does `make` and `ctest`.
@czgdp1807 After this is merged, simply add If you want, you can try to get as many tests working with |
@czgdp1807 regarding this PR, would you mind please testing locally by hand as well? This is a big change in our infrastructure, so to ensure it works. |
Cool. Sounds good.
Okay. On it right now. |
The failure on Linux and macOS at the CI is:
Not sure if this path is not there at the CI anymore, or what the problem could be. |
Works on my mac as well. All tests pass. |
This comment was marked as outdated.
This comment was marked as outdated.
I check the CI on my debug commit and found out the following, Inside, See the logs at https://github.com/lcompilers/lpython/runs/6814568188?check_suite_focus=true |
I see, thanks! I think we are executing LPython from the wrong directory it seems, which then causes it to prepend wrong paths. |
Tests pass. 🎉. |
It tests CPython, LPython/LLVM and LPython/C. One invokes it using:
Then one does
make
andctest
.It should be equivalent to the previous testing script.