Juan Batiz-Benet
e785ad1d64
sharness: make sure not mounted
...
if a test is cancelled, unmount may not run. then, must
run umount before mounting, just to make sure.
2015-01-05 08:04:52 -08:00
Juan Batiz-Benet
b372b4879e
sharness: init: bootstrap rm -all
...
sharness tests should not bootstrap to the dht. it
may be useful to test that specifically, but not on
the other tests.
2015-01-05 08:00:16 -08:00
Juan Batiz-Benet
e407c2ef83
sharness: override test_cmp for verbose
2015-01-04 22:53:21 -08:00
Juan Batiz-Benet
be4191d800
sharness: nice verbose ouput
...
Make sharness tests' output helpful when verbose.
This means cating certain files, or running diagnostic
commands. I used a construction like:
test_expect_success ".go-ipfs/ has been created" '
test -d ".go-ipfs" &&
test -f ".go-ipfs/config" &&
test -d ".go-ipfs/datastore" ||
fsh ls -al .go-ipfs
'
The `|| ...` is a diagnostic run when the preceding command
fails. `fsh` is a trivial script that echoes the args, runs
the cmd, and then also fails, making sure the test case fails.
(wouldnt want the diagnostic accidentally returning true and
making it _seem_ like the test case succeeded).
2015-01-04 22:22:33 -08:00
Juan Batiz-Benet
d06e7e342d
sharness: set verbosity from env
2015-01-04 20:39:23 -08:00
Christian Couder
c8e7a95644
Add an EXPENSIVE prereq and use it in t0040
...
We add this prereq to tests with a 100MB file
as they are slow on Travis CI.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-20 20:27:09 +01:00
Christian Couder
f06b9ca126
Rename test_launch_ipfs_mount into test_launch_ipfs_daemon_and_mount
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-20 20:11:03 +01:00
Christian Couder
1e077828cb
Rename test_kill_ipfs_mount into test_kill_ipfs_daemon
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-20 20:03:41 +01:00
Christian Couder
2e566a7de3
Add sharness tests to document existing mount bugs
...
This uses test_expect_failure to document some bugs
related to 'ipfs mount'.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-18 22:44:28 +01:00
Juan Batiz-Benet
d1ab80224d
test: hack around travis being slow
...
this is a hack around travis key-gen being really slow.
One option would be to add the --key-bits option to daemon
as well. Another option would be to find a better way to
wait for the output, rather than waiting n seconds.
cc @chriscool thoughts?
2014-11-18 08:33:47 -08:00
Juan Batiz-Benet
3e96f4810b
test: added daemon --init test
2014-11-18 08:19:25 -08:00
Juan Batiz-Benet
a7d1fd42d8
updating daemon addr output
2014-11-18 08:19:25 -08:00
Juan Batiz-Benet
bd962b6c32
test: lower key size for mount tests
2014-11-18 06:18:32 -08:00
Christian Couder
220e108ddd
Adapt mount tests to ipfs2 changes
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-16 03:20:11 -08:00
Juan Batiz-Benet
1e434ef3c4
vendor: updated random + fixed test import
...
There is a dummy test import: test/lib/random-dep.go
Because godep doen't yet vendor binaries nicely.
2014-11-08 20:12:02 -08:00
Juan Batiz-Benet
842de46ccf
test: moved installed things into own dirs
...
I moved installed things into own dirs bin and lib.
@chriscool sorry to move things around again, the top level
test dir was getting a bit clutterd.
2014-11-08 20:12:02 -08:00