Skip to content

Commit

Permalink
add small sharness test to make sure output happens
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
  • Loading branch information
whyrusleeping committed Oct 14, 2015
1 parent 85b5b23 commit ba6dfc5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/sharness/t0151-sysdiag.sh
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.

Copy link
@jbenet

jbenet Oct 18, 2015

Member

should check that this is actually grabbing the arch, grep whatever you get from uname or whatever.

'

test_done

0 comments on commit ba6dfc5

Please sign in to comment.