- 28 Jan, 2018 1 commit
-
-
Steven Allen authored
Less magical. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 27 Jan, 2018 1 commit
-
-
Steven Allen authored
support both the -D and the -d flag. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 14 Dec, 2017 1 commit
-
-
Steven Allen authored
sharness was failing because an ANSI reset sequence was getting inserted at the beginning of the line. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 15 Aug, 2016 1 commit
-
-
Christian Couder authored
test_fsh() should quote its arguments before passing them to `eval` otherwise there are problems when the arguments contain spaces. For example when running the following program: ``` #!/bin/sh . ./ipfs-test-lib.sh die () { printf >&2 "%s\n" "$@" exit 1 } DIR1="test dir 1" DIR2="test dir 2" mkdir "$DIR1" "$DIR2" || die "Could not mkdir '$DIR1' '$DIR2'" echo "in dir 1" >"$DIR1/file1" || die "Could not write into '$DIR1/file1'" echo "in dir 2" >"$DIR2/file2" || die "Could not write into '$DIR2/file2'" if test_cmp "$DIR1/file1" "$DIR2/file2" then echo "test_cmp succeeded!" else echo "test_cmp failed!" fi rm -rf "$DIR1" "$DIR2" || die "Could not rm -rf '$DIR1' '$DIR2'" ``` we get: ``` > diff -u test dir 1/file1 test dir 2/file2 diff: extra operand '1/file1' diff: Try 'diff --help' for more information. test_cmp failed! ``` License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 13 Feb, 2016 1 commit
-
-
Christian Couder authored
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 04 Feb, 2016 1 commit
-
-
Lars Gierth authored
- Have two Dockerfiles doing essentially the same, but optimized for build time (for tests) and image size (for Docker Hub) - Fetch gx dependencies - Expose port 4002 for utp - Specify go version, currently 1.5.3-r0 - Create ephemeral fs-repo if none is mounted - Have t0300-docker-image actually test IPFS, not just an echo - Make everything a bit less hardcoded - Remove dead shacheck License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
-
- 12 Jan, 2016 1 commit
-
-
Tommi Virtanen authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com> sharness: Don't assume we know all things that can create garbage License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
- 10 Jan, 2016 1 commit
-
-
Christian Couder authored
We have to do something special for CircleCI in docker_exec() because "docker exec" doesn't work on CircleCi: https://circleci.com/docs/docker#docker-exec We indeed get "Unsupported: Exec is not supported by the lxc driver" with CircleCi, when using "docker exec". License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 03 Oct, 2015 2 commits
-
-
Christian Couder authored
Let's first add a comment to explain why the wrapper printf() is needed. Then let's replace the last instructions by quotes inside the wrapper printf() first argument, and let's also put there the eventual space so that we can remove the printf on the above line. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 27 Sep, 2015 1 commit
-
-
Christian Couder authored
This function can be usefull in many places. See for example: https://github.com/ipfs/go-ipfs/pull/1742 Git has `git rev-parse --sq-quote` that does the same thing. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 14 Jun, 2015 1 commit
-
-
Christian Couder authored
As Sharness now includes test_seq we can remove our implementation. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 03 Jun, 2015 1 commit
-
-
Christian Couder authored
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 04 Apr, 2015 1 commit
-
-
Christian Couder authored
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 04 Feb, 2015 1 commit
-
-
Christian Couder authored
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>
-