Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
9e7e826b
Commit
9e7e826b
authored
Dec 06, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sort output in tests
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
5dd32d64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
test/sharness/t0043-add-w.sh
test/sharness/t0043-add-w.sh
+9
-9
No files found.
test/sharness/t0043-add-w.sh
View file @
9e7e826b
...
...
@@ -39,8 +39,8 @@ added QmaAHFG8cmhW3WLjofx5siSp44VV25ETN6ThzrU8iAqpkR _jo7/galecuirrj4r
added QmeuSfhJNKwBESp1W9H8cfoMdBfW3AeHQDWXbNXQJYWp53 _jo7/mzo50r-1xidf5zx
added QmYC3u5jGWuyFwvTxtvLYm2K3SpWZ31tg3NjpVVvh9cJaJ _jo7/wzvsihy
added QmVaKAt2eVftNKFfKhiBV7Mu5HjCugffuLqWqobSSFgiA7 h3qpecj0
added QmVPwNy8pZegpsNmsjjZvdTQn4uCeuZgtzhgWhRSQWjK9x gnz66h
added QmQkib3f9XNX5sj6WEahLUPFpheTcwSRJwUCSvjcv8b9by _jo7
added QmVPwNy8pZegpsNmsjjZvdTQn4uCeuZgtzhgWhRSQWjK9x gnz66h
added QmTmc46fhKC8Liuh5soy1VotdnHcqLu3r6HpPGwDZCnqL1 '
add_w_r
=
'QmcCksBMDuuyuyfAMMNzEAx6Z7jTrdRy9a23WpufAhG9ji'
...
...
@@ -57,7 +57,7 @@ test_add_w() {
random-files --seed 7547632 --files 5 --dirs 2 --depth 3 m &&
echo "$add_w_m" >expected &&
ipfs add -q -r m | tail -n1 >actual &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
# test single file
...
...
@@ -67,7 +67,7 @@ test_add_w() {
test_expect_success
"ipfs add -w (single file) is correct"
'
echo "$add_w_1" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
# test two files together
...
...
@@ -77,7 +77,7 @@ test_add_w() {
test_expect_success
"ipfs add -w (multiple) is correct"
'
echo "$add_w_12" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
test_expect_success
"ipfs add -w (multiple) succeeds"
'
...
...
@@ -86,7 +86,7 @@ test_add_w() {
test_expect_success
"ipfs add -w (multiple) orders"
'
echo "$add_w_21" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
# test a directory
...
...
@@ -96,7 +96,7 @@ test_add_w() {
test_expect_success
"ipfs add -w -r (dir) is correct"
'
echo "$add_w_d1" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
# test files and directory
...
...
@@ -107,7 +107,7 @@ test_add_w() {
test_expect_success
"ipfs add -w -r <many> is correct"
'
echo "$add_w_d2" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
# test -w -r m/* == -r m
...
...
@@ -117,7 +117,7 @@ test_add_w() {
test_expect_success
"ipfs add -w -r m/* == add -r m is correct"
'
echo "$add_w_m" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
# test repeats together
...
...
@@ -130,7 +130,7 @@ test_add_w() {
test_expect_success
"ipfs add -w (repeats) is correct"
'
echo "$add_w_r" >expected &&
test_cmp expected actual
test_
sort_
cmp expected actual
'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment