1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-23 21:47:52 +08:00

Add and use a DOCKER prereq

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2015-12-13 14:56:46 +01:00
parent d356ed0d53
commit 1fbbd1de15
2 changed files with 7 additions and 3 deletions

View File

@ -41,6 +41,7 @@ SHARNESS_LIB="lib/sharness/sharness.sh"
# grab + output options
test "$TEST_NO_FUSE" != 1 && test_set_prereq FUSE
test "$TEST_EXPENSIVE" = 1 && test_set_prereq EXPENSIVE
type docker && test_set_prereq DOCKER
if test "$TEST_VERBOSE" = 1; then
echo '# TEST_VERBOSE='"$TEST_VERBOSE"

View File

@ -8,9 +8,12 @@ test_description="Test docker image"
. lib/test-lib.sh
test_expect_success "docker is installed" '
type docker
'
# if in travis CI on OSX, docker is not available
if ! test_have_prereq DOCKER; then
skip_all='skipping docker tests, docker not available'
test_done
fi
test_expect_success "'docker --version' works" '
docker --version >actual