Christian Couder
4a2cb9605c
Update hashes in test/t0040-add-and-cat.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-15 02:10:52 -08:00
Christian Couder
5dd17014fa
Update test/README.md about sharness directory
...
Now sharness is in "lib/sharness"
2014-11-09 19:16:02 +01:00
Christian Couder
fc1a35e35a
Add test script for block command
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-09 18:00:25 +01: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
4bf3e967d8
test/t0040-add-and-cat updated hashes (new random)
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
Juan Batiz-Benet
5680c112ef
test: install random from vendored code
2014-11-08 18:49:28 -08:00
Juan Batiz-Benet
49f30b1597
added random to godeps
2014-11-08 18:49:01 -08:00
Christian Couder
e211b6543a
Add a README.md to explain a few things
2014-11-08 02:44:03 +01:00
Christian Couder
2b5f1b2d8c
Install sharness in a 'sharness' directory
...
It is cleaner if sharness is installed in its own
directory.
2014-11-08 02:44:03 +01:00
Juan Batiz-Benet
04efbb9a55
test: install random locally for travis.
2014-11-07 17:24:13 -08:00
Juan Batiz-Benet
c9ffe1a281
tests: use ipfs but with the right tool
...
Addresses comments in: 7e14f1737d
2014-11-07 16:24:44 -08:00
Juan Batiz-Benet
7ab38696f6
travis: fix install random error
2014-11-07 15:24:31 -08:00
Juan Batiz-Benet
7e14f1737d
test/: build own ipfs tool to test
...
The tests were using the globally installed ipfs.
This commit changes it to build + use its own ipfs binary.
2014-11-07 15:16:29 -08:00
Juan Batiz-Benet
37279d55ca
install go-random
2014-11-07 14:54:58 -08:00
Christian Couder
7e46d95145
Use a FUSE prerequisite to skip mount tests
...
When there is no fuse we should skip all mount
tests and using a FUSE prerequisite is a good
way to do that.
2014-11-07 14:54:58 -08:00
Juan Batiz-Benet
fc6213db09
dont test mount when no fuse
2014-11-07 14:53:55 -08:00
Juan Batiz-Benet
eee15baeb6
remove test-sharness-config
2014-11-07 14:53:55 -08:00
Juan Batiz-Benet
54651618e8
install aggregate-results.sh too
2014-11-07 14:53:55 -08:00
Juan Batiz-Benet
9535cb5802
install sharness
2014-11-07 14:53:55 -08:00
Juan Batiz-Benet
9434f6e531
tests: use shasum instead of sha1sum
...
sha1sum is not in osx by default.
shasum seems to be everywhere.
2014-11-07 14:13:12 -08:00
Christian Couder
22ac599703
test ipfs cat and ipfs add with a 100MB file
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-06 23:00:45 +01:00
Christian Couder
630816c7ee
Speed up checking if mount works
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-01 15:29:27 +01:00
Christian Couder
4e2763a40a
Refactor mount related tests
...
This adds test_launch_ipfs_mount() and test_kill_ipfs_mount()
to avoid duplicating tests to launch "ipfs mount" and to
kill it.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-01 10:52:09 +01:00
Christian Couder
e3da26d116
Add test script for add and cat commands
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-10-31 22:19:19 +01:00
Christian Couder
223d5c3001
Add trash directories into test/.gitignore
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-10-31 21:44:07 +01:00
Christian Couder
b6a98c10b3
Add test for ipfs mount
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-10-31 21:25:35 +01:00
Christian Couder
8357c7b13d
Add test script for ipfs init
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-10-26 10:10:22 +01:00
Christian Couder
07bd18b53d
Display which Makefile target is launched
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-10-26 10:10:22 +01:00
Christian Couder
47e7583464
Add test/.gitignore to ignore test-results/
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-10-25 22:25:18 +02:00
Christian Couder
aeb019f2b8
Add test/Makefile to run the test scripts
...
You can use it like this to launch all the
test scripts in order:
$ cd test
$ make
rm -r test-results
*** t0010-basic-commands.sh ***
ok 1 - current dir is writable
ok 2 - ipfs version succeeds
ok 3 - ipfs version output looks good
ok 4 - ipfs help succeeds
ok 5 - ipfs help output looks good
# passed all 5 test(s)
1..5
./test-aggregate-results.sh
fixed 0
success 5
failed 0
broken 0
total 5
Or you can just run one test like this:
$ make t0010-basic-commands.sh
*** t0010-basic-commands.sh ***
ok 1 - current dir is writable
ok 2 - ipfs version succeeds
ok 3 - ipfs version output looks good
ok 4 - ipfs help succeeds
ok 5 - ipfs help output looks good
# passed all 5 test(s)
1..5
2014-10-25 14:12:27 +02:00
Christian Couder
0aebe75361
Add test-aggregate-results.sh
...
This script aggregates test results using Sharness.
2014-10-25 14:12:20 +02:00
Christian Couder
1fb4192642
Move Sharness config checks into test-sharness-config.sh
...
This way we can easily reuse the checks in
test-sharness-config.sh.
2014-10-25 13:58:54 +02:00
Christian Couder
12490cb477
Add t0010-basic-commands.sh
...
This checks a little bit the installation and some
basic commands.
You can run it like that:
$ cd test
$ ./t0010-basic-commands.sh
ok 1 - current dir is writable
ok 2 - ipfs version succeeds
ok 3 - ipfs version output looks good
ok 4 - ipfs help succeeds
ok 5 - ipfs help output looks good
# passed all 5 test(s)
1..5
2014-10-25 13:57:19 +02:00
Christian Couder
449523eebd
Add test-lib.sh for our shell test framework
...
Our test framework is based on Sharness.
So the first thing to do is to source it.
2014-10-25 13:53:57 +02:00