#!/bin/sh
#
# Copyright (c) 2014 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#

test_description="Test mount command"

. lib/test-lib.sh

# if in travis CI, dont test mount (no fuse)
if ! test_have_prereq FUSE; then
	skip_all='skipping mount tests, fuse not available'

	test_done
fi

test_launch_ipfs_mount

test_kill_ipfs_mount

test_expect_success "mount directories can be removed" '
	rmdir ipfs ipns
'

test_launch_ipfs_daemon

test_expect_failure "'ipfs mount' fails when no mount dir" '
	test_must_fail ipfs mount >actual
'

test_expect_failure "'ipfs mount' looks good when it fails" '
	! grep "IPFS mounted at" actual &&
	! grep "IPNS mounted at" actual
'

test_kill_ipfs_mount

test_done

#!/bin/sh
#
# Copyright (c) 2014 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#

test_description="Test mount command"

. lib/test-lib.sh

# if in travis CI, dont test mount (no fuse)
if ! test_have_prereq FUSE; then
	skip_all='skipping mount tests, fuse not available'

	test_done
fi

test_launch_ipfs_mount

test_kill_ipfs_mount

test_expect_success "mount directories can be removed" '
	rmdir ipfs ipns
'

test_launch_ipfs_daemon

test_expect_failure "'ipfs mount' fails when no mount dir (issue #341)" '
	test_must_fail ipfs mount >actual
'

test_expect_failure "'ipfs mount' looks good when it fails (issue #341)" '
	! grep "IPFS mounted at" actual &&
	! grep "IPNS mounted at" actual
'

test_kill_ipfs_mount

test_done

Add issue number to expected failures in sharness tests
Add issue number to expected failures in sharness tests

License: MIT
Signed-off-by: Christian Couder <ddbaab5867ed34fd53535b58c9cdd59abd2e2aff@tuxfamily.org>
