Commit 8357c7b1 authored by Christian Couder's avatar Christian Couder

Add test script for ipfs init

License: MIT
Signed-off-by: default avatarChristian Couder <chriscool@tuxfamily.org>
parent 07bd18b5
#!/bin/sh
#
# Copyright (c) 2014 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#
test_description="Test init command"
. ./test-lib.sh
test_expect_success "ipfs init succeeds" '
export IPFS_DIR="$(pwd)/.go-ipfs" &&
ipfs init
'
test_expect_success ".go-ipfs/ has been created" '
test -d ".go-ipfs" &&
test -f ".go-ipfs/config" &&
test -d ".go-ipfs/datastore"
'
test_expect_success "ipfs config succeeds" '
echo leveldb >expected &&
ipfs config Datastore.Type >actual &&
test_cmp expected actual
'
test_done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment