kubo/test
Juan Batiz-Benet f105ce439f get: fix bug + improvements
up until now there has been a very annoying bug with get, we would
get halting behavior. I'm not 100% sure this commit fixes it,
but it should. It certainly fixes others found in the process of
digging into the get / tar extractor code. (wish we could repro
the bug reliably enough to make a test case).

This is a much cleaner tar writer. the ad-hoc, error-prone synch
for the tar reader is gone (with i believe was incorrect). it is
replaced with a simple pipe and bufio. The tar logic is now in
tar.Writer, which writes unixfs dag nodes into a tar archive (no
need for synch here). And get's reader is constructed with DagArchive
which sets up the pipe + bufio.

NOTE: this commit also changes this behavior of `get`:
When retrieving a single file, if the file exists, get would fail.
this emulated the behavior of wget by default, which (without opts)
does not overwrite if the file is there. This change makes get
fail if the file is available locally. This seems more intuitive to
me as expected from a unix tool-- though perhaps it should be
discussed more before adopting.

Everything seems to work fine, and i have not been able to reproduce
the get halt bug.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-05 09:50:33 +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 get: fix bug + improvements 2015-08-05 09:50:33 +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