2 # exercise sort's --sort=version option
4 # Copyright (C) 2008-2009 Free Software Foundation, Inc.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 if test "$VERBOSE" = yes; then
28 gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2
29 glibc-2-0.1.beta1.fc10.rpm
30 glibc-common-5-0.2.beta2.fc9.ebuild
31 glibc-common-5-0.2b.deb
32 glibc-common-11b.ebuild
33 glibc-common-11-0.6rc2.ebuild
34 libstdc++-0.5.8.11-0.7rc2.fc10.tar.gz
35 libstdc++-4a.fc8.tar.gz
36 libstdc++-4.10.4.20040204svn.rpm
37 libstdc++-devel-3.fc8.ebuild
38 libstdc++-devel-3a.fc9.tar.gz
39 libstdc++-devel-8.fc8.deb
40 libstdc++-devel-8.6.2-0.4b.fc8
41 nss_ldap-1-0.2b.fc9.tar.bz2
42 nss_ldap-1-0.6rc2.fc8.tar.gz
43 nss_ldap-1.0-0.1a.tar.gz
44 nss_ldap-10beta1.fc8.tar.gz
45 nss_ldap-10.11.8.6.20040204cvs.fc10.ebuild
46 string start 5.0.0 end of str
47 string start 5.1.0 end of str
48 string start 5.10.0 end of str
49 string start 5.2.0 end of str
50 string start 5.20.0 end of str
51 string start 5.3.0 end of str
52 string start 5.30.0 end of str
53 string start 5.4.0 end of str
54 string start 5.40.0 end of str
55 string start 5.5.0 end of str
56 string start 5.50.0 end of str
57 string start 5.6.0 end of str
58 string start 5.60.0 end of str
59 string start 5.7.0 end of str
60 string start 5.70.0 end of str
61 string start 5.8.0 end of str
62 string start 5.80.0 end of str
63 string start 5.9.0 end of str
64 string start 5.90.0 end of str
69 gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2
70 glibc-2-0.1.beta1.fc10.rpm
71 glibc-common-5-0.2.beta2.fc9.ebuild
72 glibc-common-5-0.2b.deb
73 glibc-common-11b.ebuild
74 glibc-common-11-0.6rc2.ebuild
75 libstdc++-0.5.8.11-0.7rc2.fc10.tar.gz
76 libstdc++-4a.fc8.tar.gz
77 libstdc++-4.10.4.20040204svn.rpm
78 libstdc++-devel-3.fc8.ebuild
79 libstdc++-devel-3a.fc9.tar.gz
80 libstdc++-devel-8.fc8.deb
81 libstdc++-devel-8.6.2-0.4b.fc8
82 nss_ldap-1-0.2b.fc9.tar.bz2
83 nss_ldap-1-0.6rc2.fc8.tar.gz
84 nss_ldap-1.0-0.1a.tar.gz
85 nss_ldap-10beta1.fc8.tar.gz
86 nss_ldap-10.11.8.6.20040204cvs.fc10.ebuild
87 string start 5.0.0 end of str
88 string start 5.1.0 end of str
89 string start 5.2.0 end of str
90 string start 5.3.0 end of str
91 string start 5.4.0 end of str
92 string start 5.5.0 end of str
93 string start 5.6.0 end of str
94 string start 5.7.0 end of str
95 string start 5.8.0 end of str
96 string start 5.9.0 end of str
97 string start 5.10.0 end of str
98 string start 5.20.0 end of str
99 string start 5.30.0 end of str
100 string start 5.40.0 end of str
101 string start 5.50.0 end of str
102 string start 5.60.0 end of str
103 string start 5.70.0 end of str
104 string start 5.80.0 end of str
105 string start 5.90.0 end of str
109 sort --sort=version
-o out
in || fail
=1
110 compare exp out || fail
=1