Skip to content

Commit

Permalink
Merge pull request #1786 from ipfs/improve-t0120
Browse files Browse the repository at this point in the history
Improve t0120
  • Loading branch information
jbenet committed Oct 3, 2015
2 parents 47a353d + 69c2340 commit 3e8f7bd
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions test/sharness/t0120-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ test_bootstrap_list_cmd() {
'

test_expect_success "'ipfs bootstrap' output looks good" '
test_cmp list_actual list_expected
test_cmp list_expected list_actual
'

test_expect_success "'ipfs bootstrap list' succeeds" '
ipfs bootstrap list >list2_actual
'

test_expect_success "'ipfs bootstrap list' output looks good" '
test_cmp list2_actual list_expected
test_cmp list_expected list2_actual
'
}

Expand All @@ -60,10 +60,10 @@ test_bootstrap_cmd() {
'

test_expect_success "'ipfs bootstrap add' output looks good" '
echo $BP1 >add_expected
echo $BP2 >>add_expected
echo $BP3 >>add_expected
test_cmp add_actual add_expected
echo $BP1 >add_expected &&
echo $BP2 >>add_expected &&
echo $BP3 >>add_expected &&
test_cmp add_expected add_actual
'

test_bootstrap_list_cmd $BP1 $BP2 $BP3
Expand All @@ -73,9 +73,9 @@ test_bootstrap_cmd() {
'

test_expect_success "'ipfs bootstrap rm' output looks good" '
echo $BP1 >rm_expected
echo $BP3 >>rm_expected
test_cmp rm_actual rm_expected
echo $BP1 >rm_expected &&
echo $BP3 >>rm_expected &&
test_cmp rm_expected rm_actual
'

test_bootstrap_list_cmd $BP2
Expand All @@ -85,16 +85,16 @@ test_bootstrap_cmd() {
'

test_expect_success "'ipfs bootstrap add --default' output has default BP" '
echo $BP1 >add2_expected
echo $BP2 >>add2_expected
echo $BP3 >>add2_expected
echo $BP4 >>add2_expected
echo $BP5 >>add2_expected
echo $BP6 >>add2_expected
echo $BP7 >>add2_expected
echo $BP8 >>add2_expected
echo $BP9 >>add2_expected
test_cmp add2_actual add2_expected
echo $BP1 >add2_expected &&
echo $BP2 >>add2_expected &&
echo $BP3 >>add2_expected &&
echo $BP4 >>add2_expected &&
echo $BP5 >>add2_expected &&
echo $BP6 >>add2_expected &&
echo $BP7 >>add2_expected &&
echo $BP8 >>add2_expected &&
echo $BP9 >>add2_expected &&
test_cmp add2_expected add2_actual
'

test_bootstrap_list_cmd $BP1 $BP2 $BP3 $BP4 $BP5 $BP6 $BP7 $BP8 $BP9
Expand All @@ -104,16 +104,16 @@ test_bootstrap_cmd() {
'

test_expect_success "'ipfs bootstrap rm' output looks good" '
echo $BP1 >rm2_expected
echo $BP2 >>rm2_expected
echo $BP3 >>rm2_expected
echo $BP4 >>rm2_expected
echo $BP5 >>rm2_expected
echo $BP6 >>rm2_expected
echo $BP7 >>rm2_expected
echo $BP8 >>rm2_expected
echo $BP9 >>rm2_expected
test_cmp rm2_actual rm2_expected
echo $BP1 >rm2_expected &&
echo $BP2 >>rm2_expected &&
echo $BP3 >>rm2_expected &&
echo $BP4 >>rm2_expected &&
echo $BP5 >>rm2_expected &&
echo $BP6 >>rm2_expected &&
echo $BP7 >>rm2_expected &&
echo $BP8 >>rm2_expected &&
echo $BP9 >>rm2_expected &&
test_cmp rm2_expected rm2_actual
'

test_bootstrap_list_cmd
Expand Down

0 comments on commit 3e8f7bd

Please sign in to comment.