-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[meta] better sharness coverage #4841
Comments
Hey @chriscool, wanna help us out a bit? |
@whyrusleeping Yeah sure I will take a look at this later today. |
@Stebalien about all commands accepting https://github.com/ipfs/go-ipfs/blob/master/test/sharness/t0010-basic-commands.sh#L64-L75 |
Ah, nice! However, we need to not pipe |
@Stebalien do you mean that there should be the same tests with |
Both might actually be a good idea. |
I would add:
|
@Stebalien please take a look at: |
@whyrusleeping please take a look at merging the above 2 PRs! |
@chriscool merged! |
This list is a work in progress. Suggestions appreciated.
General
For all commands, we should:
--help
works.CID formatting
For all commands that have CID formatting options (add, block put, dag put, etc.), we check that:
--mhtype=notSha256 --cid-version=0
fails (--cid-version=0
is sometimes written as--format=v0
).--mhtype=notSha256
defaults to CIDv1.--mhtype=sha256 --cid-version=0
works.--mhtype=anyHash --cid-version=1
works.Get directory
Check the directories:
ipfs get /ipfs/QmDir/
ipfs get /ipfs/QmDir
ipfs get /ipfs/QmDir/otherDir/
ipfs get /ipfs/QmDir/otherDir
ipfs get /ipfs/QmDir/otherDir/secondDir
ipfs get /ipfs/QmDir/otherDir/secondDir/
Containing:
(and ensure that we actually get the right output).
Get file
Check that the following fail:
ipfs get /ipfs/QmFile/
ipfs get /ipfs/QmDir/QmFile/
The text was updated successfully, but these errors were encountered: