- 20 Apr, 2015 2 commits
-
-
Jeromy authored
-
Jeromy authored
This commit adds a new set of sharness tests for pinning, and addresses bugs that were pointed out by said tests. test/sharness: added more pinning tests Pinning is currently broken. See issue #1051. This commit introduces a few more pinning tests. These are by no means exhaustive, but definitely surface the present problems going on. I believe these tests are correct, but not sure. Pushing them as failing so that pinning is fixed in this PR. make pinning and merkledag.Get take contexts improve 'add' commands usage of pinning FIXUP: fix 'pin lists look good' ipfs-pin-stat simple script to help check pinning This is a simple shell script to help check pinning. We ought to strive towards making adding commands this easy. The http api is great and powerful, but our setup right now gets in the way. Perhaps we can clean up that area. updated t0081-repo-pinning - fixed a couple bugs with the tests - made it a bit clearer (still a lot going on) - the remaining tests are correct and highlight a problem with pinning. Namely, that recursive pinning is buggy. At least: towards the end of the test, $HASH_DIR4 and $HASH_FILE4 should be pinned indirectly, but they're not. And thus get gc-ed out. There may be other problems too. cc @whyrusleeping fix grep params for context deadline check fix bugs in pin and pin tests check for block local before checking recursive pin
-
- 12 Apr, 2015 1 commit
-
-
Etienne Laurin authored
-
- 07 Apr, 2015 4 commits
-
-
Tor Arne Vestbø authored
GNU Make's wildcard function does not recurse into subdirectories when passed the '**' glob, which results in adding a dependency only to .go files in the first level of subdirectories under the source root. We shell out to 'find' instead, which catches all .go files in the given directory.
-
Tor Arne Vestbø authored
Running make -jN would result in the tests starting to execute before the tests binaries were built, resulting in the error: "Cannot find the tests' local ipfs tool" Each test now depends on the deps. They also depend on a new target for cleaning the test results, so that the tests can write new clean results. The aggregate target also needs to depend on the same test results clean target, as well as the tests themselves, so that the aggregation happens when all tests have finished running. By introducing a separate target for cleaning test results we also ensure that we don't end up removing and rebuilding the binary on each test run. The result is that the tests *can* be run with with -jN > 1, but individual tests may still not supports this, so to get stable test results it's still recommended to run them in sequence.
-
Tor Arne Vestbø authored
If the file doesn't exist, make will conclude that the missing prerequisite should trigger a rebuild of the binaries.
-
Jeromy authored
-
- 06 Apr, 2015 7 commits
-
-
Jeromy authored
-
Christian Couder authored
The GOFLAGS variable makes it possible to run all sharness tests with go binaries built with some special flags. The "race" target makes it easy run the sharness tests with go binaries built with the -race flag. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
...and remove bin/* stuff from the .gitignore as /test/bin is already in the root .gitignore. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
This builds go binaries using the -race flag and then runs all the tests. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
This makes it possible to build binaries with different flags. The content of the GOFLAGS variable is stored in a IPFS-BUILD-OPTIONS file, so that if GOFLAGS changes a rebuild of the binaries with the new flags is forced. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
This script can be used in a Makefile to detect flag changes and to save the new flags in a file. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
theswitch authored
-
- 04 Apr, 2015 2 commits
-
-
Christian Couder authored
License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 02 Apr, 2015 1 commit
-
-
Christian Couder authored
-
- 01 Apr, 2015 3 commits
-
-
Christian Couder authored
As `ipfs version` and `ipfs help` are basic commands it is ok to test them online in t0060. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Konstantin Koroviev authored
-
Christian Couder authored
It looks like some tests that were expected failures are now always succeeding, so let's mark them as such. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 31 Mar, 2015 1 commit
-
-
Ho-Sheng Hsiao authored
- Modified Godeps/Godeps.json by hand - [TEST] Updated welcome docs hash to sharness - [TEST] Updated contact doc - [TEST] disabled breaking test (t0080-repo refs local)
-
- 29 Mar, 2015 2 commits
-
-
Christian Couder authored
To do that the current tests are move inside a test_object_cmd() function. This function is then first called before running the daemon for offline tests and then after starting the daemon for online tests. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
To do that the current tests are move inside a test_ls_cmd() function. This function is then first called before running the daemon for offline tests and then after starting the daemon for online tests. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 21 Mar, 2015 2 commits
-
-
Christian Couder authored
See issue #906 (sharness test command coverage) that discussed this. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
To do that the current tests are move inside a test_get_cmd() function. This function is then first called before running the daemon for offline tests and then after starting the daemon for online tests. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 20 Mar, 2015 1 commit
-
-
Henry authored
- added tests for 'ipfs ls --headers' - comments from CR (opts) - sharness: fix ls test whitespace
-
- 19 Mar, 2015 2 commits
-
-
Konstantin Koroviev authored
-
Jeromy authored
-
- 18 Mar, 2015 1 commit
-
-
Juan Batiz-Benet authored
-
- 17 Mar, 2015 1 commit
-
-
Juan Batiz-Benet authored
the test cases were failing for me on osx. Removing /s fixes them. It should be fine not to check the /s.
-
- 16 Mar, 2015 1 commit
-
-
Christian Couder authored
It looks like there were two problems: - "read" command probably needs the name of the variable it reads into - [[ didn't work This might be because on Linux /bin/sh is sometimes not bash. For example on Ubuntu it is a symlink to dash. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 15 Mar, 2015 1 commit
-
-
Christian Couder authored
Fix indentation and use > instead of >> to create an expected file. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 14 Mar, 2015 1 commit
-
-
Tommi Virtanen authored
Nobody calls At without immediately calling Open. First step, a mechanical transformation. Cleanups will follow.
-
- 10 Mar, 2015 4 commits
-
-
Henry authored
-
Christian Couder authored
Tests in this script had been deactivated because there was no good way to wait until the daemon was ready. Now that we can use pollEndpoint for that it's time to reactivate the tests. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
Add information from the discussion of PR #891. While at it, suggest using -v and -i options to debug one test. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 08 Mar, 2015 1 commit
-
-
Christian Couder authored
This removes the dependency on wget, and, while at it, cleanups a bit. License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
- 07 Mar, 2015 2 commits
-
-
Christian Couder authored
This makes the following changes: - remove some superfluous \ at the end of some lines - use `cat <<-\EOF >expected` to ignore the starting tabs in the here document - add missing && after some `cat` - use test_cmp to compare files License: MIT Signed-off-by:
Christian Couder <chriscool@tuxfamily.org>
-
Henry authored
-