Commit Graph

91 Commits

Author SHA1 Message Date
Brian Tiger Chow
223ee4df1a refactor(core): move Add, Cat to core/io 2015-01-11 01:23:27 -08:00
Brian Tiger Chow
707874c3a5 refactor(core): init node.Blocks in shared NewIPFSNode constructor 2015-01-11 01:23:26 -08:00
Brian Tiger Chow
34e8f3ee26 refactor(core): init DAG and its dependents in shared constructor
fix: remove merkledag import

may need to squash this commit into the merkledag move commit
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
91808e18f7 refactor: use core.ConfigOption return type 2015-01-11 01:23:26 -08:00
Brian Tiger Chow
7cebb33e81 fix: remove dead code 2015-01-11 01:23:26 -08:00
Brian Tiger Chow
5c46597c53 use the core.NewIPFSNode constructor
NB: all commits (from master) pass tests up to this point.

fix: squashme into use core constructor
2015-01-11 01:23:26 -08:00
Brian Tiger Chow
401b8f413d misc: move initialization sqaush 2015-01-11 01:23:26 -08:00
Brian Tiger Chow
efb75ee5ba refactor: move add and cat to the core 2015-01-11 01:23:25 -08:00
Brian Tiger Chow
85401d53fd refactor: use the Core in the integration test 2015-01-11 01:23:25 -08:00
Brian Tiger Chow
007ffd40bd refactor: move LatencyConfig 2015-01-11 01:23:25 -08:00
Juan Batiz-Benet
136ef70f00 calc_test for picking link block size 2015-01-10 01:22:45 -08:00
Juan Batiz-Benet
05a0a944ce makefile: fix target in sharness tests 2015-01-10 01:07:43 -08:00
Christian Couder
9e8fc3826a install-sharness.sh: use git instead of wget and shasum
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-09 23:13:48 +01:00
Juan Batiz-Benet
2faafa8478 test/Makefile 2015-01-07 07:57:22 -08:00
Juan Batiz-Benet
28cf220de1 dockertest -> test/3nodetest 2015-01-07 07:57:22 -08:00
Juan Batiz-Benet
b479602b61 moved epictest -> test/epictest 2015-01-07 07:24:21 -08:00
Juan Batiz-Benet
cecfa45745 moved sharness tests to a subdir.
kept bin in place
2015-01-07 07:10:17 -08:00
Juan Batiz-Benet
07b923d7a4 ipfs block stat cmd 2015-01-07 00:55:27 -08:00
Juan Batiz-Benet
0395a7af1e ipfs add output not sorted, cmds files sorted
I made the commands lib dir listing sort the contents
so we get the same sequence of files from it repeatably.
2015-01-06 14:02:49 -08:00
Christian Couder
3b65f1a507 Add sharness tests for recursive add
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-06 13:12:23 -08:00
Jeromy
e3cf893616 implement recursive indirect blocks
improve efficiency of multilayered indirect blocks

clean up tests

panic cleanup

clean up logic, improve readability

add final root node to the dagservice upon creation

importer: simplified dag generation

test: updated hashes using latest code

@whyrusleeping this is why the sharness tests
were failing: the hashes are added manually to
make sure our generation doesn't change.

cleanup after CR

fix merkledag tests

fix small block generation (no subblocks!)
2015-01-06 19:43:56 +00:00
Juan Batiz-Benet
0ba6bca130 sharness tests: added note re: daemon init 2015-01-05 08:08:56 -08:00
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
Brian Tiger Chow
a8127a28e1 fix: force clean test results directory
Without `-f`, `make clean` fails on machines that don't have the dir.

cc @jbenet
2015-01-05 00:16:53 -08:00
Juan Batiz-Benet
c47b808d77 sharness/init: fixed ipfs init output 2015-01-05 00:09:49 -08:00
Jeromy
b241c8048f fix sharness test for ipfs init output 2015-01-05 00:02:56 -08:00
Juan Batiz-Benet
e407c2ef83 sharness: override test_cmp for verbose 2015-01-04 22:53:21 -08:00
Juan Batiz-Benet
481c19ac23 sharness: note in makefile describing TEST_VERBOSE 2015-01-04 22:30:59 -08:00
Juan Batiz-Benet
e5f24dc26b sharness: expanded on readme 2015-01-04 22:22:45 -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
Juan Batiz-Benet
a9da519715 test/countineyn terminal and error code 2014-12-09 02:24:11 -08:00
Juan Batiz-Benet
b0e251bda1 Makefile: add test_all_commits 2014-12-08 20:39:00 -08:00
Christian Couder
aca62a420a Add sharness test for ipfs add --quiet
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-30 14:32:08 +01:00
Christian Couder
5e133a136c Add sharness tests for ipfs add and cat
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-23 21:02:39 +01:00
Christian Couder
196651d5f5 Add sharness mount tests with a 5 MB file
These new tests are not marked EXPENSIVE as they
should be fast enough even on Travis CI.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-20 20:46:02 +01: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
882aac223e Add issue number to expected failures in sharness tests
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-19 21:21:03 +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
d124a6719e skip for now 2014-11-18 08:50:08 -08: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
e24b09f82d test: comment out extra output in add_and_cat 2014-11-18 06:21:07 -08:00
Juan Batiz-Benet
bd962b6c32 test: lower key size for mount tests 2014-11-18 06:18:32 -08:00
Juan Batiz-Benet
607e4d3e52 sharness tests back to cmd/ipfs 2014-11-18 06:14:59 -08:00
Juan Batiz-Benet
088016c850 test: cat test actual output 2014-11-17 22:36:19 -08:00