summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2008-10-03 11:03:40 +0200
committerJim Meyering <meyering@redhat.com>2008-10-03 11:59:17 +0200
commite505736f8211a608b00dfe75fb186a5211e1a183 (patch)
treed5d0e1cb62e0148acf9b0cb11585d999b61d259c /tests/misc
parent7eb15e1020590ebc1f39e5679feea8f1106d241c (diff)
downloadcoreutils-e505736f8211a608b00dfe75fb186a5211e1a183.tar.xz
ls and sort: use filevercmp instead of strverscmp
* src/ls.c (cmp_version): Use filevercmp instead of strverscmp. * src/sort.c (usage): Remove mna reference to strverscmp(3). (compare_version): Use filevercmp instead of strverscmp. * bootstrap.conf: Add filevercmp to list of gnulib modules. * tests/misc/sort-version: Remove conflicting string and enhance test. * NEWS: Mention the change.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/sort-version40
1 files changed, 38 insertions, 2 deletions
diff --git a/tests/misc/sort-version b/tests/misc/sort-version
index 262ee95ce..bdcabe4bd 100755
--- a/tests/misc/sort-version
+++ b/tests/misc/sort-version
@@ -24,8 +24,26 @@ fi
. $srcdir/test-lib.sh
cat > in <<- _EOF_
+ gcc-c++-10.fc9.tar.gz
+ gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2
+ glibc-2-0.1.beta1.fc10.rpm
+ glibc-common-5-0.2.beta2.fc9.ebuild
+ glibc-common-5-0.2b.deb
+ glibc-common-11b.ebuild
+ glibc-common-11-0.6rc2.ebuild
+ libstdc++-0.5.8.11-0.7rc2.fc10.tar.gz
+ libstdc++-4a.fc8.tar.gz
+ libstdc++-4.10.4.20040204svn.rpm
+ libstdc++-devel-3.fc8.ebuild
+ libstdc++-devel-3a.fc9.tar.gz
+ libstdc++-devel-8.fc8.deb
+ libstdc++-devel-8.6.2-0.4b.fc8
+ nss_ldap-1-0.2b.fc9.tar.bz2
+ nss_ldap-1-0.6rc2.fc8.tar.gz
+ nss_ldap-1.0-0.1a.tar.gz
+ nss_ldap-10beta1.fc8.tar.gz
+ nss_ldap-10.11.8.6.20040204cvs.fc10.ebuild
string start 5.0.0 end of str
- string start 5.00.0 end of str
string start 5.1.0 end of str
string start 5.10.0 end of str
string start 5.2.0 end of str
@@ -47,7 +65,25 @@ cat > in <<- _EOF_
_EOF_
cat > exp <<- _EOF_
- string start 5.00.0 end of str
+ gcc-c++-10.fc9.tar.gz
+ gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2
+ glibc-2-0.1.beta1.fc10.rpm
+ glibc-common-5-0.2.beta2.fc9.ebuild
+ glibc-common-5-0.2b.deb
+ glibc-common-11b.ebuild
+ glibc-common-11-0.6rc2.ebuild
+ libstdc++-0.5.8.11-0.7rc2.fc10.tar.gz
+ libstdc++-4a.fc8.tar.gz
+ libstdc++-4.10.4.20040204svn.rpm
+ libstdc++-devel-3.fc8.ebuild
+ libstdc++-devel-3a.fc9.tar.gz
+ libstdc++-devel-8.fc8.deb
+ libstdc++-devel-8.6.2-0.4b.fc8
+ nss_ldap-1-0.2b.fc9.tar.bz2
+ nss_ldap-1-0.6rc2.fc8.tar.gz
+ nss_ldap-1.0-0.1a.tar.gz
+ nss_ldap-10beta1.fc8.tar.gz
+ nss_ldap-10.11.8.6.20040204cvs.fc10.ebuild
string start 5.0.0 end of str
string start 5.1.0 end of str
string start 5.2.0 end of str