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

Refactor r-tests for C-bindings interfaces #148

Merged
merged 12 commits into from
Mar 27, 2025

Conversation

faisal-bhuiyan
Copy link
Contributor

Major refactor of the driver codes for Python-based libraries to the C-bindings interfaces. These driver codes are essentially regression tests for several modules of OpenFAST. Following tests were refactored in this work

Test project /Users/fbhuiyan/dev/fb-openfast/build
    Start  81: py_ad_5MW_OC4Semi_WSt_WavesWN
1/5 Test  #81: py_ad_5MW_OC4Semi_WSt_WavesWN ....   Passed    1.04 sec
    Start  82: py_ad_B1n2_OLAF
2/5 Test  #82: py_ad_B1n2_OLAF ..................   Passed    1.06 sec
    Start 114: py_hd_5MW_OC4Semi_WSt_WavesWN
3/5 Test #114: py_hd_5MW_OC4Semi_WSt_WavesWN ....   Passed    6.25 sec
    Start 134: py_ifw_turbsimff
4/5 Test #134: py_ifw_turbsimff .................   Passed    0.32 sec
    Start 155: py_md_5MW_OC4Semi
5/5 Test #155: py_md_5MW_OC4Semi ................   Passed    2.10 sec

"moordyn": "libmoordyn_c_binding"
}
basename = module_map.get(module_name.lower(), f"lib{module_name}_c_binding")
build_path = Path("..").joinpath(*[".."] * 4, "build")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer we didn't hard code this to the build directory. But I think that is what we already had.

@andrew-platt andrew-platt merged commit 8be1913 into OpenFAST:dev-cbind Mar 27, 2025
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.

None yet

2 participants