Christian Couder
391b5a3c89
t0040: use multihash instead of shasum in tests
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-08 13:36:37 +01:00
Christian Couder
fe1ba2bf18
test: use multihash instead of shasum in tests
...
As shasum is not installed on all machines and
we use multihash anyway in the code base, it
removes one dependency to use shasum instead of
shasum in the tests.
Now that there are sharness tests in multihash
it is also safe to use it.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-08 13:35:45 +01:00
Juan Batiz-Benet
0de13b071d
Merge pull request #743 from jbenet/misc-2-2
...
Gateway Changes
2015-02-05 00:05:43 -08:00
Matt Bell
09e4224aa7
test/sharness: Fixed gateway tests
2015-02-04 18:46:59 -08:00
Christian Couder
fa13afa5ca
Replace fsh with test_fsh in sharness tests
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-04 21:53:19 +01:00
Christian Couder
65cbbdff84
Add ipfs-test-lib.sh and source it in sharness test-lib.sh
...
The new ipfs-test-lib.sh file contains generic test
functions.
We also start replacing fsh with a shell function named
test_fsh() in ipfs-test-lib.sh.
And we move our custom test_cmp in ipfs-test-lib.sh.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-04 21:50:07 +01:00
Juan Batiz-Benet
756382a6c3
sharness/test-lib: wait longer for daemon
...
it keeps failing early.
2015-02-02 21:05:32 -08:00
Christian Couder
752f54e313
sharness/test-lib: remove some "cat" followed by |
...
The pattern "cat FILE | COMMAND" can be simplified
to just "COMMAND FILE" when COMMAND accepts files as
arguments.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-03 04:46:35 +01:00
Matt Bell
48885377fc
test/sharness: rm quotes
2015-02-02 10:13:46 -08:00
Matt Bell
54fef5ea96
test/sharness: Added tests for 'ipfs add -w'
2015-02-02 10:07:36 -08:00
Juan Batiz-Benet
b2da275475
sharness/lib: fix daemon startup check
...
Go back to test_run_repeat_10_sec to make sure the API
is there. I think this is also clearer on the reader.
2015-02-01 21:23:31 -08:00
Christian Couder
ce10f20ca7
test/sharness: improve t0111 using test_cmp
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-01 20:46:28 -08:00
Juan Batiz-Benet
1d9d13e286
Merge pull request #720 from jbenet/fix-sharness-gateway-addr-check
...
sharness/lib: fixing gateway addr check
2015-02-01 20:45:58 -08:00
Juan Batiz-Benet
7ce3c79519
sharness/lib: fixing gateway addr check
...
seems that the previous way isnt liked by all platforms
2015-02-01 20:41:34 -08:00
Christian Couder
5aeadd44ad
test/sharness: improve t0090 by using printf
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-01 20:25:24 -08:00
Juan Batiz-Benet
5b0a544b92
sharness/t0090-get.sh disable the failing tar test
2015-02-01 20:16:56 -08:00
Juan Batiz-Benet
33144f4e39
sharness/t0021-config.sh test config setting
2015-02-01 20:15:51 -08:00
Juan Batiz-Benet
24f0d020e0
sharness: better config setting
2015-02-01 20:15:50 -08:00
Juan Batiz-Benet
56b6a2069a
sharness: gateway fixes
...
there's an odd error setting the config.
2015-02-01 19:24:36 -08:00
Christian Couder
83e88a8e2b
test/sharness: improve t0080
...
The following changes are made to make t0080
cleaner, safer and more canonical:
- remove useless stuff,
- don't use a pipe after ipfs commands,
- use test_must_fail before ipfs commands instead of !
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-02 01:24:33 +01:00
Juan Batiz-Benet
d0dd22b7d4
sharness/t0120-bootstrap: test the bootstrap cmd
...
and do it both online + offline
2015-02-01 06:07:28 -08:00
Juan Batiz-Benet
c372255807
daemon: fix output + time waiting
2015-02-01 04:29:32 -08:00
Juan Batiz-Benet
8ce304014c
require curl
2015-02-01 00:10:48 -08:00
Juan Batiz-Benet
1dbe39b678
sharness/t0111-gateway-writable: removed fd redirect
...
Not sure why this fd redirect was here. Is it necessary?
Tests seem to pass for me.
cc @mildred
2015-01-31 22:55:06 -08:00
Juan Batiz-Benet
12cf6a8426
sharness: note re API/Gateway in t0110-gateway
2015-01-31 22:55:05 -08:00
Juan Batiz-Benet
052c867a70
sharness: output options in verbose mode
2015-01-31 22:55:05 -08:00
Juan Batiz-Benet
f1d34a2a85
test/sharness: fix errors
...
- core: daemon stdout print to cmd + daemon init checks
- core: fixed bug where the gateway was printed as "API"
- sharness/test-lib: daemon init checks
- sharness/test-lib: portable TCP port check
- sharness/init: fix test bits output
- sharness: use common hashes in one place.
- move t0100-http-gateway -> t0111-gateway-writable
- sharness: test-lib funcs for gateway config
- sharness/t0111-gateway-writable: use sh funcs
- sharness/t0111-gateway-writable: fixes
- escape all vars (always `cmd "$VAR"` never `cmd $VAR`)
- use $FILEPATH, not $path
- last test seems to fail
2015-01-31 22:54:34 -08:00
Mildred Ki'Lya
51af53d8f7
Added Sharness test for HTTP Gateway
2015-01-31 23:36:46 +01:00
Juan Batiz-Benet
3f4d38feca
sharness: correctness. must have &&
...
cc @whyrusleeping
2015-01-31 07:52:47 -08:00
Juan Batiz-Benet
73234479fa
init docs: go generated welcome dir + files
...
updated sharness hashes
2015-01-31 07:51:30 -08:00
Juan Batiz-Benet
8ed1b14034
sharness: rename conflicting test
2015-01-28 17:02:04 -08:00
Matt Bell
21575ba535
test/sharness: Fixed gateway test formatting
2015-01-28 16:52:46 -08:00
Matt Bell
2028d37076
test/sharness: Added basic gateway tests
2015-01-28 16:46:00 -08:00
Jeromy
72a5902e12
address concerns from PR
2015-01-28 19:36:30 +00:00
Jeromy
f1267d0624
change ipns resolve/publish to store raw keys, not b58 encoded
2015-01-28 19:36:30 +00:00
Juan Batiz-Benet
cbe07776e3
test/sharness: make sure to output vars in quotes
...
cc @whyrusleeping: you werent doing so
cc @mappum: you were trying to escape them, but
were un-escaping them in cases with longer quotes.
2015-01-28 01:04:06 -08:00
Juan Batiz-Benet
ed16840414
test/sharness: "echo -n" bug
...
In OSX, the `echo -n` was _somehow_ printing "-n" out... not
really sure why, as the bsd `echo` program supports -n. I changed
this to printf -- which is safer.
2015-01-28 00:53:41 -08:00
Juan Batiz-Benet
72f703642a
test/sharness: style fix
...
Let's use `>file`, not `> file`, as it makes it easier to parse.
2015-01-28 00:49:50 -08:00
Juan Batiz-Benet
c283c0a690
test/sharness: allow testing of daemon without FUSE
...
This commit allows sharness tests to run daemon tests when the FUSE
option is off. Unsure why this was previously included.
2015-01-28 00:36:30 -08:00
Brian Tiger Chow
bbcc259eaf
fix(sharness): Initializing daemon... output
2015-01-27 17:04:38 -08:00
Juan Batiz-Benet
1eb0bfe834
Merge pull request #668 from jbenet/hack
...
misc user-friendliness fixes
2015-01-26 19:00:09 -08:00
Juan Batiz-Benet
76d9d89aff
user friendliness in logs + output
2015-01-26 17:01:00 -08:00
Matt Bell
45ed27e273
test/sharness: get: Quote variables
2015-01-26 17:00:40 -08:00
Matt Bell
23f810e187
test/sharness: Fixed get gzip archive test
2015-01-24 21:40:19 -08:00
Juan Batiz-Benet
e2db6418ae
get: disable failing tests
...
@mappum these tests are failing (1 on osx and 1 on travis).
May be related to the versions of tar? not sure.
2015-01-24 10:22:43 -08:00
Matt Bell
76534bd279
test/sharness: Added tests for get
2015-01-24 07:19:39 -08:00
Matt Bell
4ee3d39253
cmd/ipfs: Added key size to 'ipfs init' output
2015-01-23 19:14:59 -08:00
Brian Tiger Chow
df9e6ce640
refactor: rename IPFS_DIR -> IPFS_PATH
...
closes #394 https://github.com/jbenet/go-ipfs/issues/394
2015-01-21 17:09:39 -08:00
Jeromy
1244fd251d
update tests, and ensure 'default' blocks are pinned
2015-01-22 00:16:30 +00:00
Jeromy
8e7d984751
updates from PR, tests tests tests!
2015-01-21 08:55:50 +00:00