-
Notifications
You must be signed in to change notification settings - Fork 162
Allow beakerlib library without url/path #4427
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
|
after testing, name work as design. More test log please check attachment. |
|
Ok @HouMinXi ready for a second try. To elaborate on the requirement. Let's say you have a repo $ tree -a .
.
├── .fmf
│ └── version
├── my_lib
│ ├── lib.sh
│ └── main.fmf
├── plans
│ └── main.fmf
└── tests
├── my_lib.fmf
└── test.sh
5 directories, 6 filesThen what you care about is how you define the tests, e.g. in this case it is summary: Test the my_lib beakerlib library
test: test.sh
require:
- type: library
name: /my_lib
nick: some_repo
and the tests file #!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "rlImport some_repo/my_lib"
rlPhaseEnd
rlPhaseStartTest
rlRun "..."
rlPhaseEnd
rlPhaseStartCleanup
rlPhaseEnd
rlJournalEndParticularly see the Hope this breakdown makes sense? |
|
Here is my test topo My simplified file-topology is as follows: in /networking/openvswitch/topo/main.fmf, I define the local file library as below: In plan-level I define discover as below: run the tmt with debug mode, raise error |
skycastlelily
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, besides the nitpick and Therese's comment
bd968c1 to
c7fe256
Compare
tcornell-bus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The kernel example run successfully discovers the library now!
therazix
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
psss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me and works as documented. Regarding the example, I'd suggest to explicitly mention how the rlImport command would look like and where the library is copied.
Without those keys we take the tmt tree to be the default value for the `path` Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Without those keys we take the tmt tree to be the default value for the
pathPull Request Checklist
Fixes #4422