Commit 1f150710 authored by Christian Couder's avatar Christian Couder

test: implement test_sort_cmp()

License: MIT
Signed-off-by: default avatarChristian Couder <chriscool@tuxfamily.org>
parent 64f6a843
......@@ -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"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment