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

Upgrade Testing Framework to support dlopen & all documentation #155

Open
Ulrond opened this issue Dec 9, 2024 · 0 comments
Open

Upgrade Testing Framework to support dlopen & all documentation #155

Ulrond opened this issue Dec 9, 2024 · 0 comments

Comments

@Ulrond
Copy link
Contributor

Ulrond commented Dec 9, 2024

Subject

Goal

  • Building the headers, including the testing suites and allow a currently unsupported function to be defined via stubs.

    • So that the testing suites can be written to the stubs, which will fail but will build.
    • Then the implementors of the new functions have a testing suite they can use to compare against implementation.
  • Upgrade the makefiles to build WEAK_SKELETON_SRC as a list of weak skeletons srcs that will be build into the main testing app, as real weak functions

  • Upgrade the makefile in the templates to support this

  • Upgrade the testing suites to test this

  • Upgrade the templates to also use dlopen as an example of how to remove the build time dependancy, and introduce a runtime dependancy.

  • Add a switch to disable the binary loading, and swap back to weak functions (by default the DLOpen will be used).

  • Add an option to if the library is not found, then use the weak functions, and display a warning? (Also a switch)

  • https://github.com/rdkcentral/ut-core/wiki/4.0.1:-Standards:-Dynamic-Library-Search-Order

    • Be aware that LD_LIBRARY_PATH should likely be used, because hardcoding the default paths may not be a good idea, considering the vendors are running the testing suites against their build system, and rootfs
    • Consider displaying the paths that your using to make it clear which libraries are being found.

Requirements

  • Upgrade the testing suites to support the new dlopen model
  • Upgrade all the testing suites makefiles to support the new model
  • Upgrade all the documentation to support the new model
  • Upgrade the checking scripts for missing functions, to ignore weak functions (New task)

Include the SKELETON_SRC as part of the ut-core build in both linux + arm building.
May need to separate as a SKELETON_SRC

Notes (Optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant