From ba6dfc517b4e924d7f8756963b8aa8c729241367 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Wed, 14 Oct 2015 14:41:51 -0700 Subject: [PATCH] add small sharness test to make sure output happens License: MIT Signed-off-by: Jeromy --- test/sharness/t0151-sysdiag.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 test/sharness/t0151-sysdiag.sh diff --git a/test/sharness/t0151-sysdiag.sh b/test/sharness/t0151-sysdiag.sh new file mode 100755 index 00000000000..f216ed5dbfe --- /dev/null +++ b/test/sharness/t0151-sysdiag.sh @@ -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 +' + +test_done