Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
493e5d3b
Commit
493e5d3b
authored
10 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: test init output
parent
8d4c2169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
test/t0020-init.sh
test/t0020-init.sh
+17
-2
No files found.
test/t0020-init.sh
View file @
493e5d3b
...
...
@@ -10,7 +10,7 @@ test_description="Test init command"
test_expect_success
"ipfs init succeeds"
'
export IPFS_DIR="$(pwd)/.go-ipfs" &&
ipfs init
ipfs init
>actual_init
'
test_expect_success
".go-ipfs/ has been created"
'
...
...
@@ -25,5 +25,20 @@ test_expect_success "ipfs config succeeds" '
test_cmp expected actual
'
test_done
test_expect_success
"ipfs peer id looks good"
'
PEERID=$(ipfs config Identity.PeerID) &&
echo $PEERID | tr -dC "[:alnum:]" | wc -c | tr -d " " >actual &&
echo "46" >expected &&
test_cmp expected actual
'
test_expect_success
"ipfs init output looks good"
'
STARTHASH="QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB" &&
echo "initializing ipfs node at $IPFS_DIR" >expected &&
echo "generating key pair...done" >>expected &&
echo "peer identity: $PEERID" >>expected &&
echo "\nto get started, enter: ipfs cat $STARTHASH" >>expected &&
test_cmp expected actual_init
'
test_done
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment