-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add small sharness test to make sure output happens
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
- Loading branch information
1 parent
85b5b23
commit ba6dfc5
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2015 Jeromy Johnson | ||
# MIT Licensed; see the LICENSE file in this repository. | ||
# | ||
|
||
test_description="test output of sysdiag command" | ||
|
||
. lib/test-lib.sh | ||
|
||
test_init_ipfs | ||
|
||
test_expect_success "ipfs diag sys succeeds" ' | ||
ipfs diag sys > output | ||
' | ||
|
||
test_expect_success "output contains some expected keys" ' | ||
grep "virt" output && | ||
grep "interface_addresses" output && | ||
grep "arch" output | ||
This comment has been minimized.
Sorry, something went wrong. |
||
' | ||
|
||
test_done |
should check that this is actually grabbing the arch, grep whatever you get from
uname
or whatever.