@cryptotaxi247 / kubo / commits / 9e7e826b8

sort output in tests

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Dec 6, 2015 at 00:05 UTC 9e7e826b8a6c279f2060b91024000200c28b6ffa
1 file changed +9 -9
test/sharness/t0043-add-w.sh
+9 -9
@@ -39,8 +39,8 @@ added QmaAHFG8cmhW3WLjofx5siSp44VV25ETN6ThzrU8iAqpkR _jo7/galecuirrj4r
39 added QmeuSfhJNKwBESp1W9H8cfoMdBfW3AeHQDWXbNXQJYWp53 _jo7/mzo50r-1xidf5zx
40 added QmYC3u5jGWuyFwvTxtvLYm2K3SpWZ31tg3NjpVVvh9cJaJ _jo7/wzvsihy
41 added QmVaKAt2eVftNKFfKhiBV7Mu5HjCugffuLqWqobSSFgiA7 h3qpecj0
42 -added QmVPwNy8pZegpsNmsjjZvdTQn4uCeuZgtzhgWhRSQWjK9x gnz66h
42 added QmQkib3f9XNX5sj6WEahLUPFpheTcwSRJwUCSvjcv8b9by _jo7
43 +added QmVPwNy8pZegpsNmsjjZvdTQn4uCeuZgtzhgWhRSQWjK9x gnz66h
44 added QmTmc46fhKC8Liuh5soy1VotdnHcqLu3r6HpPGwDZCnqL1 '
45
46 add_w_r='QmcCksBMDuuyuyfAMMNzEAx6Z7jTrdRy9a23WpufAhG9ji'
@@ -57,7 +57,7 @@ test_add_w() {
57 random-files --seed 7547632 --files 5 --dirs 2 --depth 3 m &&
58 echo "$add_w_m" >expected &&
59 ipfs add -q -r m | tail -n1 >actual &&
60 - test_cmp expected actual
60 + test_sort_cmp expected actual
61 '
62
63 # test single file
@@ -67,7 +67,7 @@ test_add_w() {
67
68 test_expect_success "ipfs add -w (single file) is correct" '
69 echo "$add_w_1" >expected &&
70 - test_cmp expected actual
70 + test_sort_cmp expected actual
71 '
72
73 # test two files together
@@ -77,7 +77,7 @@ test_add_w() {
77
78 test_expect_success "ipfs add -w (multiple) is correct" '
79 echo "$add_w_12" >expected &&
80 - test_cmp expected actual
80 + test_sort_cmp expected actual
81 '
82
83 test_expect_success "ipfs add -w (multiple) succeeds" '
@@ -86,7 +86,7 @@ test_add_w() {
86
87 test_expect_success "ipfs add -w (multiple) orders" '
88 echo "$add_w_21" >expected &&
89 - test_cmp expected actual
89 + test_sort_cmp expected actual
90 '
91
92 # test a directory
@@ -96,7 +96,7 @@ test_add_w() {
96
97 test_expect_success "ipfs add -w -r (dir) is correct" '
98 echo "$add_w_d1" >expected &&
99 - test_cmp expected actual
99 + test_sort_cmp expected actual
100 '
101
102 # test files and directory
@@ -107,7 +107,7 @@ test_add_w() {
107
108 test_expect_success "ipfs add -w -r <many> is correct" '
109 echo "$add_w_d2" >expected &&
110 - test_cmp expected actual
110 + test_sort_cmp expected actual
111 '
112
113 # test -w -r m/* == -r m
@@ -117,7 +117,7 @@ test_add_w() {
117
118 test_expect_success "ipfs add -w -r m/* == add -r m is correct" '
119 echo "$add_w_m" >expected &&
120 - test_cmp expected actual
120 + test_sort_cmp expected actual
121 '
122
123 # test repeats together
@@ -130,7 +130,7 @@ test_add_w() {
130
131 test_expect_success "ipfs add -w (repeats) is correct" '
132 echo "$add_w_r" >expected &&
133 - test_cmp expected actual
133 + test_sort_cmp expected actual
134 '
135
136 }