-
Notifications
You must be signed in to change notification settings - Fork 99
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
*: add tests #12
Milestone
Comments
I've been working on this inside https://github.com/cyphar/umoci/tree/add-unit-tests. |
Unit tests implemented in e928b06. |
Integration tests implemented in 8fb8c81. |
There are a ~24 tests. Which is okay for a first pass at testing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently all the testing I'm doing is manual, we need to have some actual testing. Namely integration testing (using
bats
) for the actualumoci
tool as well as unit tests for the libraries. Another nice thing would be to have validation testing against the OCI validation tooling.gomtree
after extracting the same manifest twice at different times.skopeo
, unpack it and then repack it. Then unpack it again to compare the changes (withgomtree
).umoci config
to make sure that we set things correctly. Usejq
for the testing. We also might want to run the runtime validator against it too.config
set doesn't change itworkingdir
.cmd
andentrypoint
result in the rightprocess.args
.architecture
os
author
created
history
[not really sure how to test this]env
is set to the right$HOME
?volume
but I get the feeling it isn't great.user:group
is actually parsed according to/etc/passwd
.$HOME
.AdditionalGids
are set.umoci gc
to make sure it actually cleans things properly.The text was updated successfully, but these errors were encountered: