-
Notifications
You must be signed in to change notification settings - Fork 117
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
Cannot execute beakerlib library self-tests #391
Comments
@sopos, do you think that this could/should be handled on the |
Yes I think so. It might be worked around using Currently the search in libraries root tries following locations
During upwards traversal following are tried
In the traversal the $DIRECTORY/$COMPONENT/$LIBRARY/lib.sh is missing. Adding it would solve this issue, I guess. |
Thanks for the detailed description, @sopos. Thinking about it a bit more: Would it make sense for |
There's a problem with it. There's no defined way how the library should specify its own name but directory structure. So beakerlib cannot tell what's the library in current WD without looking at the directories above. |
I see. So what about checking for |
That's basically the same as extending the upwards traversal with |
We've agreed with @sopos that this will be fixed on |
I'm reopening that after a discussion with @sopos This still doesn't work for me:
From the logs I can see that cwd is Note how the cwd doesn't contain the "component component" ( |
@psss had an idea to use However, what currently work is |
The beakerlib support for |
Beakerlib libraries usually have
lib.sh
torlImport
from tests andruntest.sh
containing self-tests for the library.runtest.sh
thusrlImport
s the appropriate lib.sh, and, worst of all it does it by name.For example, https://github.com/beakerlib/openssl/tree/master/certgen contains
lib.sh
andruntest.sh
withrlImport openssl/certgen
. My attempts to execute it withtmt
end up withrlImport: Could not find library openssl/certgen
, as the test itself is not onrlImport
lookup path.I also advise against solving that with self-dependencies in metadata, because that'd require some way to prevent version discrepancies between
lib.sh
andruntest.sh
. My guess is that we'll have to resort to some trick to enable beakerlib tests with torlImport
theirlib.sh
.The text was updated successfully, but these errors were encountered: