提交 c424b4d5 作者: Christian Couder

t0060: fail if no nc

License: MIT
Signed-off-by: 's avatarChristian Couder <chriscool@tuxfamily.org>
上级 4de5eaad
...@@ -96,8 +96,12 @@ test_expect_success "ipfs help output looks good" ' ...@@ -96,8 +96,12 @@ test_expect_success "ipfs help output looks good" '
test_fsh cat help.txt test_fsh cat help.txt
' '
# check transport is encrypted # netcat (nc) is needed for the following test
test_expect_success "nc is available" '
type nc >/dev/null
'
# check transport is encrypted
test_expect_success "transport should be encrypted" ' test_expect_success "transport should be encrypted" '
nc -w 5 localhost 4001 >swarmnc && nc -w 5 localhost 4001 >swarmnc &&
grep -q "AES-256,AES-128" swarmnc && grep -q "AES-256,AES-128" swarmnc &&
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论