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

Test after install #4069

Closed
liyishuai opened this issue Jan 19, 2020 · 5 comments
Closed

Test after install #4069

liyishuai opened this issue Jan 19, 2020 · 5 comments

Comments

@liyishuai
Copy link

It seemed that run-test is performed before install.
Is there a packaging configuration that allows running some tests after installing the package?
If no, is it worth having one?

@rjbou
Copy link
Collaborator

rjbou commented Jan 20, 2020

Out of curiosity, why do you want test to be run after install ?
The idea is to test that package is fully functionnal (with checks) before installing it, in order to not install a broken library/progam.

@liyishuai
Copy link
Author

Say that my test suite assumes that the binary executable was installed in PATH, rather than pointing to a relative path where the program was built.

@rjbou
Copy link
Collaborator

rjbou commented Jan 27, 2020

On solution is to not use the run-test: field, but add you test in install:

install: [
    [ make "install"]
    [ "laucnh" "tests" ] {with-test}
]

@rjbou
Copy link
Collaborator

rjbou commented Feb 13, 2020

Were you able to sort this out ?

@liyishuai
Copy link
Author

Yes, solved.

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

No branches or pull requests

2 participants