-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
CI: generic runtime tests #13785
base: master
Are you sure you want to change the base?
CI: generic runtime tests #13785
Conversation
4fd3b28
to
df3a23f
Compare
Most compiled programs offer a way to output the installed version, usually via arguments like `-v`, or `--version`. This fact can be used to runtime test compiled in a generic way. If the binary prints the compiled version it proves that the program loaded correctly on the specific architecture. While this obviously lacks testing of actual functionallity, it proves a package successfully compiled, installed and loaded related binaries. In cases where no package specific `test.sh` is found, try a variation of common way to print a programs version. Signed-off-by: Paul Spooren <mail@aparcar.org>
df3a23f
to
5366e19
Compare
@jefferyto Here we face the first problem. The
It seems to be something like this:
|
Signed-off-by: Paul Spooren <mail@aparcar.org>
I don't want to comment too much on the immediate issue with I suggest something like this (it doesn't need to be all done in one PR), for each package/subpackage:
This way the content of |
We expect contributor to be able to fix CI failure, so we need to be able to replicate what the CI does as easily as possible |
Sorry this slipped through my notifications.
Please elaborate what parts are too inflexible.
The We could use Makefile
How do you envision this to be implemented? Your host system is unlikely to support all these architectures, likely not even x86-musl. Then you need a working |
echo "Generic test failed" | ||
exit 1 | ||
else | ||
echo "Test succesful or" |
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.
Shouldn't this be without or?
echo "Test succesful or" | |
echo "Test successful" |
echo "Test succesful or" | ||
fi | ||
else | ||
echo "No executeable found in package $PKG_NAME" |
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.
echo "No executeable found in package $PKG_NAME" | |
echo "No executable found in package $PKG_NAME" |
Tested with lighttpd. Seems OK to me! More tested packages will follow soon. |
I'd like to get more input from @champtar and @jefferyto before continuing. |
I agree on this one. We should have something like this.
Because I doubt that anyone wants to create his/her TL;DR: I agree with @jefferyto's suggestions, but one difference that all packages will be using tests even though could be complicated for libraries. |
Requested via #13589