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
cbeff099
Commit
cbeff099
authored
Aug 29, 2015
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t0062: check that 'ipfs config' works
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
fe742050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
test/sharness/t0062-daemon-api.sh
test/sharness/t0062-daemon-api.sh
+6
-3
No files found.
test/sharness/t0062-daemon-api.sh
View file @
cbeff099
...
...
@@ -12,11 +12,14 @@ test_init_ipfs
differentport
=
$((
PORT_API
+
1
))
api_different
=
"/ip4/127.0.0.1/tcp/
$differentport
"
api_unreachable
=
"/ip4/127.0.0.1/tcp/1"
api_fromcfg
=
$(
ipfs config Addresses.API
)
peerid
=
$(
ipfs config Identity.PeerID
)
test_expect_success
"config setup"
'
api_fromcfg=$(ipfs config Addresses.API) &&
peerid=$(ipfs config Identity.PeerID)
'
test_client
()
{
printf
$peerid
>
expected
printf
"
$peerid
"
>
expected
ipfs
"
$@
"
id
-f
=
"<id>"
>
actual
test_cmp expected actual
}
...
...
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