Add test for version --all
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Jun 2, 2016 at 13:44 UTC
01d596bc837f33cba15cea035d217ad4e2d2517b
1 file changed
+8
test/sharness/t0010-basic-commands.sh
+8
@@ -21,6 +21,14 @@ test_expect_success "ipfs version output looks good" '
21
test_fsh cat version.txt
22
'
23
24
+test_expect_success "ipfs version --all has all required fields" '
25
+ ipfs version --all > version_all.txt &&
26
+ grep "go-ipfs version" version_all.txt &&
27
+ grep "Repo version" version_all.txt &&
28
+ grep "System version" version_all.txt &&
29
+ grep "Golang version" version_all.txt
30
+'
31
+
32
test_expect_success "ipfs help succeeds" '
33
ipfs help >help.txt
34
'