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
1f150710
Commit
1f150710
authored
10 years ago
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: implement test_sort_cmp()
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
64f6a843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test/ipfs-test-lib.sh
test/ipfs-test-lib.sh
+6
-0
No files found.
test/ipfs-test-lib.sh
View file @
1f150710
...
...
@@ -16,3 +16,9 @@ test_cmp() {
diff
-q
"
$@
"
>
/dev/null
||
test_fsh diff
-u
"
$@
"
}
# Same as test_cmp above, but we sort files before comparing them.
test_sort_cmp
()
{
sort
"
$1
"
>
"
$1_sorted
"
&&
sort
"
$2
"
>
"
$2_sorted
"
&&
test_cmp
"
$1_sorted
"
"
$2_sorted
"
}
This diff is collapsed.
Click to expand it.
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