mingw: handle GITPERLLIB in t0021 in a Windows-compatible way
[git.git] / t / perf / p0071-sort.sh
blob7c9a35a646a6406e5c284a65748863a93098c2af
1 #!/bin/sh
3 test_description='Basic sort performance tests'
4 . ./perf-lib.sh
6 test_perf_default_repo
8 test_expect_success 'setup' '
9 git ls-files --stage "*.[ch]" "*.sh" |
10 cut -f2 -d" " |
11 git cat-file --batch >unsorted
14 test_perf 'sort(1)' '
15 sort <unsorted >expect
18 test_perf 'string_list_sort()' '
19 test-string-list sort <unsorted >actual
22 test_expect_success 'string_list_sort() sorts like sort(1)' '
23 test_cmp_bin expect actual
26 test_done