modified version of jenkins debian glue (https://github.com/mika/jenkins-debian-glue) for devuan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

increase-version-number 778 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. SCRIPT=./scripts/increase-version-number
  3. testEquality()
  4. {
  5. assertEquals "$($SCRIPT 0.23)" 0.23+0
  6. assertEquals "$($SCRIPT 23)" 23+0
  7. assertEquals "$($SCRIPT 0.23-1)" 0.23-1+0
  8. assertEquals "$($SCRIPT 0.1.23-1)" 0.1.23-1+0
  9. assertEquals "$($SCRIPT 0.1.23-3)" 0.1.23-3+0
  10. assertEquals "$($SCRIPT 1:0.42-2)" 1:0.42-2+0
  11. assertEquals "$($SCRIPT 2008.01.02)" 2008.01.02+0
  12. assertEquals "$($SCRIPT 0.42~2)" 0.42~2+0
  13. assertEquals "$($SCRIPT 0.9.0)" 0.9.0+0
  14. assertEquals "$($SCRIPT 0.9.00)" 0.9.00+0
  15. assertEquals "$($SCRIPT 0.8)" 0.8+0
  16. assertEquals "$($SCRIPT 0.9)" 0.9+0
  17. assertEquals "$($SCRIPT 3.1.4+1)" 3.1.4+1+0
  18. }
  19. . /usr/share/shunit2/shunit2
  20. # vim:foldmethod=marker ts=2 ft=sh ai expandtab sw=2