kubo/test
Juan Batiz-Benet 978c9fa16f cmds/add: use dagutils.Editor, like patch
This changes the pin behavior. It uses the filenames given through
the api, and allows files to be streamed faltly (not a hierarchy),
which is easier for other things (like vinyl in node-ipfs-api land).
Files can also be entirely out of order, and the garbage intermediate
directories will not be pinned (gc-ed later).

The changes also mean the output of add has changed slightly-- it
no longer shows the local path added, but rather the dag path
relative to the added roots. This is a small difference, but changes
tests.

The dagutils.Editor creates a lot of chaff (intermediate objects)
along the way. Wonder how we might minimize the writes to the
datastore...

This commit also removes the "NilRepo()" part of the --only-hash
mode. We need to store at least in an in-mem repo/datastore because
otherwise the dagutils.Editor breaks.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-12 08:24:06 +02:00
..
3nodetest config: change default config dir name to .ipfs 2015-04-20 02:25:41 -07:00
api-startup misc: add test for api readiness 2015-02-15 04:41:18 -08:00
bench config: change default config dir name to .ipfs 2015-04-20 02:25:41 -07:00
bin Add gofmt check 2015-05-19 06:11:15 +07:00
dependencies Add "test/dependencies" dir and "godep restore" test 2015-01-23 21:27:45 +01:00
integration golint util/, thirdparty/ 2015-06-18 10:03:57 +07:00
jenkins config: change default config dir name to .ipfs 2015-04-20 02:25:41 -07:00
sharness cmds/add: use dagutils.Editor, like patch 2015-08-12 08:24:06 +02:00
supernode_client remove context from context 2015-07-20 20:53:06 -07:00
.gitignore test: add IPFS-BUILD-OPTIONS to .gitignore 2015-04-06 18:06:24 +02:00
ipfs-test-lib.sh ipfs-test-lib: use test_seq from sharness 2015-06-14 11:21:32 +02:00
Makefile added random-files tool for testing 2015-07-29 03:18:24 -07:00
README.md test/README: update sharness test coverage 2015-04-02 11:56:49 +02:00

Sharness test command coverage

Module Online Test Offline Test
object t0051 t0051
ls t0045 t0045
cat t0040
dht
bitswap
block t0050
daemon t0030 N/A
init N/A t0020
add t0040
config t0021 t0021
version t0060 t0010
ping
diag
mount t0030
name t0110 t0100
pin t0080
get t0090 t0090
refs t0080
repo gc t0080
id
bootstrap t0120 t0120
swarm
update
commands