versions.lst 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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
  7. 7.6p2-4 7.6-0 1
  8. 1.0.3-3 1.0-1 1
  9. 1.3 1.2.2-2 1
  10. 1.3 1.2.2 1
  11. # Important attributes
  12. # disabled as dpkg --compare-versions doesn't like them… (versions have to start with a number)
  13. #- . -1
  14. #p - -1
  15. #a - -1
  16. #z - -1
  17. #a . -1
  18. #z . -1
  19. # disabled as dpkg --compare-versions doesn't like them… (versions have to start with a number)
  20. #III-alpha9.8 III-alpha9.8-1.5 -1
  21. # Epochs
  22. 1:0.4 10.3 1
  23. 1:1.25-4 1:1.25-8 -1
  24. 0:1.18.36 1.18.36 0
  25. # native version
  26. 1.18.36 1.18.35 1
  27. 0:1.18.36 1.18.35 1
  28. # Funky, but allowed, characters in upstream version
  29. 9:1.18.36:5.4-20 10:0.5.1-22 -1
  30. 9:1.18.36:5.4-20 9:1.18.36:5.5-1 -1
  31. 9:1.18.36:5.4-20 9:1.18.37:4.3-22 -1
  32. 1.18.36-0.17.35-18 1.18.36-19 1
  33. # Junk
  34. 1:1.2.13-3 1:1.2.13-3.1 -1
  35. 2.0.7pre1-4 2.0.7r-1 -1
  36. # Test some properties of text strings
  37. 0-pre 0-pre 0
  38. 0-pre 0-pree -1
  39. 1.1.6r2-2 1.1.6r-1 1
  40. 2.6b2-1 2.6b-2 1
  41. 98.1p5-1 98.1-pre2-b6-2 -1
  42. 0.4a6-2 0.4-1 1
  43. 1:3.0.5-2 1:3.0.5.1 -1
  44. # #205960
  45. 3.0~rc1-1 3.0-1 -1
  46. # #573592 - debian policy 5.6.12
  47. 1.0 1.0-0 0
  48. 0.2 1.0-0 -1
  49. 1.0 1.0-0+b1 -1
  50. 1.0 1.0-0~ 1
  51. # if a version includes a dash
  52. # it should be the debrev dash - policy says so…
  53. 0:0-0-0 0-0 1
  54. # do we like strange versions? Yes we like strange versions…
  55. 0 0 0
  56. 0 00 0
  57. # "steal" the testcases from cupt
  58. 1.2.3 1.2.3 0 # identical
  59. 4.4.3-2 4.4.3-2 0 # identical
  60. 1:2ab:5 1:2ab:5 0 # this is correct...
  61. 7:1-a:b-5 7:1-a:b-5 0 # and this
  62. 57:1.2.3abYZ+~-4-5 57:1.2.3abYZ+~-4-5 0 # and those too
  63. 1.2.3 0:1.2.3 0 # zero epoch
  64. 1.2.3 1.2.3-0 0 # zero revision
  65. 009 9 0 # zeroes...
  66. 009ab5 9ab5 0 # there as well
  67. 1.2.3 1.2.3-1 -1 # added non-zero revision
  68. 1.2.3 1.2.4 -1 # just bigger
  69. 1.2.4 1.2.3 1 # order doesn't matter
  70. 1.2.24 1.2.3 1 # bigger, eh?
  71. 0.10.0 0.8.7 1 # bigger, eh?
  72. 3.2 2.3 1 # major number rocks
  73. 1.3.2a 1.3.2 1 # letters rock
  74. 0.5.0~git 0.5.0~git2 -1 # numbers rock
  75. 2a 21 -1 # but not in all places
  76. 1.3.2a 1.3.2b -1 # but there is another letter
  77. 1:1.2.3 1.2.4 1 # epoch rocks
  78. 1:1.2.3 1:1.2.4 -1 # bigger anyway
  79. 1.2a+~bCd3 1.2a++ -1 # tilde doesn't rock
  80. 1.2a+~bCd3 1.2a+~ 1 # but first is longer!
  81. 5:2 304-2 1 # epoch rocks
  82. 5:2 304:2 -1 # so big epoch?
  83. 25:2 3:2 1 # 25 > 3, obviously
  84. 1:2:123 1:12:3 -1 # 12 > 2
  85. 1.2-5 1.2-3-5 -1 # 1.2 < 1.2-3
  86. 5.10.0 5.005 1 # preceding zeroes don't matters
  87. 3a9.8 3.10.2 -1 # letters are before all letter symbols
  88. 3a9.8 3~10 1 # but after the tilde
  89. 1.4+OOo3.0.0~ 1.4+OOo3.0.0-4 -1 # another tilde check
  90. 2.4.7-1 2.4.7-z -1 # revision comparing
  91. 1.002-1+b2 1.00 1 # whatever...