t0280-plugin-git.sh 477 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/bin/sh
#
# Copyright (c) 2016 Jakub Sztandera
# MIT Licensed; see the LICENSE file in this repository.
#

test_description="Test git plugin"

. lib/test-lib.sh

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

	test_done
fi

test_init_ipfs

test_expect_success "copy plugin" '
	mkdir -p "$IPFS_PATH/plugins" &&
	cp ../plugins/git.so "$IPFS_PATH/plugins/"
'

# test here

test_done