From 01d596bc837f33cba15cea035d217ad4e2d2517b Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Thu, 2 Jun 2016 13:44:41 +0200 Subject: [PATCH] Add test for version --all License: MIT Signed-off-by: Jakub Sztandera --- test/sharness/t0010-basic-commands.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/sharness/t0010-basic-commands.sh b/test/sharness/t0010-basic-commands.sh index 785e5f831..69cccef6d 100755 --- a/test/sharness/t0010-basic-commands.sh +++ b/test/sharness/t0010-basic-commands.sh @@ -21,6 +21,14 @@ test_expect_success "ipfs version output looks good" ' test_fsh cat version.txt ' +test_expect_success "ipfs version --all has all required fields" ' + ipfs version --all > version_all.txt && + grep "go-ipfs version" version_all.txt && + grep "Repo version" version_all.txt && + grep "System version" version_all.txt && + grep "Golang version" version_all.txt +' + test_expect_success "ipfs help succeeds" ' ipfs help >help.txt '