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
49758056
Commit
49758056
authored
Apr 01, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #978 from ipfs/t0060_add_tests_for_version
t0060: add tests for version and help commands
parents
0ba4a6ff
72b20017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
test/sharness/t0060-daemon.sh
test/sharness/t0060-daemon.sh
+23
-0
No files found.
test/sharness/t0060-daemon.sh
View file @
49758056
...
...
@@ -61,6 +61,29 @@ test_expect_success ".go-ipfs/ has been created" '
test_fsh ls .go-ipfs
'
# begin same as in t0010
test_expect_success
"ipfs version succeeds"
'
ipfs version >version.txt
'
test_expect_success
"ipfs version output looks good"
'
cat version.txt | egrep "^ipfs version [0-9]+\.[0-9]+\.[0-9]" >/dev/null ||
test_fsh cat version.txt
'
test_expect_success
"ipfs help succeeds"
'
ipfs help >help.txt
'
test_expect_success
"ipfs help output looks good"
'
cat help.txt | egrep -i "^Usage:" >/dev/null &&
cat help.txt | egrep "ipfs .* <command>" >/dev/null ||
test_fsh cat help.txt
'
# end same as in t0010
test_expect_success
"daemon is still running"
'
kill -0 $IPFS_PID
'
...
...
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