]> git.saurik.com Git - apt.git/blame - test/versions.lst
* Add missing dot in French translation of manpages. Merci, Olivier
[apt.git] / test / versions.lst
CommitLineData
8c515d62
AL
1# List of
2# ver1 ver2 ret
3# Of versions worth testing
4# 1 means that ver1 > ver2
5# -1 means that ver1 < ver2
6# 0 means that ver1 = ver2
77.6p2-4 7.6-0 1
81.0.3-3 1.0-1 1
f46e7681
AL
91.3 1.2.2-2 1
101.3 1.2.2 1
8c515d62
AL
11
12# Important attributes
ea5624c3
DK
13# disabled as dpkg --compare-versions doesn't like them…
14#- . -1
15#p - -1
16#a - -1
17#z - -1
8c515d62
AL
18a . -1
19z . -1
20
21# Epochs
221:0.4 10.3 1
231:1.25-4 1:1.25-8 -1
9373b975
MV
240:1.18.36 1.18.36 0
25
ea5624c3
DK
26# native version
271.18.36 1.18.35 1
280:1.18.36 1.18.35 1
29
9373b975
MV
30# Funky, but allowed, characters in upstream version
319:1.18.36:5.4-20 10:0.5.1-22 -1
329:1.18.36:5.4-20 9:1.18.36:5.5-1 -1
339:1.18.36:5.4-20 9:1.18.37:4.3-22 -1
341.18.36-0.17.35-18 1.18.36-19 1
8c515d62
AL
35
36# Junk
371:1.2.13-3 1:1.2.13-3.1 -1
382.0.7pre1-4 2.0.7r-1 -1
39
40# Test some properties of text strings
410-pre 0-pre 0
420-pre 0-pree -1
43
441.1.6r2-2 1.1.6r-1 1
452.6b2-1 2.6b-2 1
46
4798.1p5-1 98.1-pre2-b6-2 -1
480.4a6-2 0.4-1 1
93552173
AL
49
501:3.0.5-2 1:3.0.5.1 -1
5a8748f1
AL
51
52# #194327
53III-alpha9.8 III-alpha9.8-1.5 -1
54
55# #205960
563.0~rc1-1 3.0-1 -1
ea5624c3
DK
57
58# #573592 - debian policy 5.6.12
591.0 1.0-0 0
600.2 1.0-0 -1
611.0 1.0-0+b1 -1
621.0 1.0-0~ 1
63
64# if a version includes a dash
65# it should be the debrev dash - policy says so…
660:0-0-0 0-0 1
67
68# do we like strange versions? Yes we like strange versions…
690 0 0
700 00 0
71
72# "steal" the testcases from cupt
731.2.3 1.2.3 0 # identical
744.4.3-2 4.4.3-2 0 # identical
751:2ab:5 1:2ab:5 0 # this is correct...
767:1-a:b-5 7:1-a:b-5 0 # and this
7757:1.2.3abYZ+~-4-5 57:1.2.3abYZ+~-4-5 0 # and those too
781.2.3 0:1.2.3 0 # zero epoch
791.2.3 1.2.3-0 0 # zero revision
80009 9 0 # zeroes...
81009ab5 9ab5 0 # there as well
821.2.3 1.2.3-1 -1 # added non-zero revision
831.2.3 1.2.4 -1 # just bigger
841.2.4 1.2.3 1 # order doesn't matter
851.2.24 1.2.3 1 # bigger, eh?
860.10.0 0.8.7 1 # bigger, eh?
873.2 2.3 1 # major number rocks
881.3.2a 1.3.2 1 # letters rock
890.5.0~git 0.5.0~git2 -1 # numbers rock
902a 21 -1 # but not in all places
911.3.2a 1.3.2b -1 # but there is another letter
921:1.2.3 1.2.4 1 # epoch rocks
931:1.2.3 1:1.2.4 -1 # bigger anyway
941.2a+~bCd3 1.2a++ -1 # tilde doesn't rock
951.2a+~bCd3 1.2a+~ 1 # but first is longer!
965:2 304-2 1 # epoch rocks
975:2 304:2 -1 # so big epoch?
9825:2 3:2 1 # 25 > 3, obviously
991:2:123 1:12:3 -1 # 12 > 2
1001.2-5 1.2-3-5 -1 # 1.2 < 1.2-3
1015.10.0 5.005 1 # preceding zeroes don't matters
1023a9.8 3.10.2 -1 # letters are before all letter symbols
1033a9.8 3~10 1 # but after the tilde
1041.4+OOo3.0.0~ 1.4+OOo3.0.0-4 -1 # another tilde check
1052.4.7-1 2.4.7-z -1 # revision comparing
1061.002-1+b2 1.00 1 # whatever...