You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checks for presence of certain named rpm's on the system before building ndctl. This approach has following disadvantages:
RPM names are not distro neutral as different distros choose different names for these build-dependencies.
This doesnt work if the build-deps have been manually built and installed on the system.
A better approach however can be to use pkg-confg(1) which maintains a registry of all the available libraries. For example simple test for existence of json-c devel would be to check if the following command returns a zero status: $ pkg-config --exists json-c
This would work both in case the build-deps were installed from the package-manager or manually by building locally.
The text was updated successfully, but these errors were encountered:
@vaibhav92 This is a good idea, we can take it forward with the avocado community by adding the needed APIs to the avocado framework so that the tests may choose to use it on need basis.
The code
avocado-misc-tests/memory/ndctl.py
Line 130 in 8c3d576
A better approach however can be to use pkg-confg(1) which maintains a registry of all the available libraries. For example simple test for existence of json-c devel would be to check if the following command returns a zero status:
$ pkg-config --exists json-c
This would work both in case the build-deps were installed from the package-manager or manually by building locally.
The text was updated successfully, but these errors were encountered: