t0060: fail if no nc
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Oct 17, 2015 at 06:04 UTC
c424b4d5ad7da2ccca875f30855151363f758f7c
1 file changed
+5
-1
test/sharness/t0060-daemon.sh
+5
-1
@@ -96,8 +96,12 @@ test_expect_success "ipfs help output looks good" '
96
test_fsh cat help.txt
97
'
98
99
-# check transport is encrypted
99
+# netcat (nc) is needed for the following test
100
+test_expect_success "nc is available" '
101
+ type nc >/dev/null
102
+'
103
104
+# check transport is encrypted
105
test_expect_success "transport should be encrypted" '
106
nc -w 5 localhost 4001 >swarmnc &&
107
grep -q "AES-256,AES-128" swarmnc &&