ipfs-pack
ipfs-pack copied to clipboard
Add more tests (use sharness)
We should add some solid tests here, a lot of edge cases to test.
- Test basic creation, serving, verify, repo regen rm and other commands
- Test different permissions issues (how does pack make fail under bad permissions)
- Test pack creation from different directories (passing 'dir' parameter for different commands)
- Test changing files in the pack before and/or during serve
- Test moving, deleting, changing perms, etc on files before/during serve
cc @chriscool, do you think you would have time to help us out on this?
@whyrusleeping I will take a look at this next week end.
@chriscool great! thanks!
Also, lets not do these ones in docker, its really nice to have, but it prevents us from actually testing on OSX (since the docker environment on OSX is actually linux)
When I run ./test/pack-serve.sh
I get "Error: invalid peer address: protocol requires address, none given: ipfs".
See pack-serve.txt
Sharness support and basic tests are available in PR https://github.com/ipfs/ipfs-pack/pull/22