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.
 
 
 
 
 
 

45 lines
1.6 KiB

  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture "i386"
  7. insertpackage 'unstable' 'spaces' 'i386' '1.0' 'Depends: spaces (= 1.0)'
  8. insertpackage 'unstable' 'spaces' 'i386' '1.0' 'Depends: spaces (= 1.0)'
  9. insertpackage 'unstable' 'lessequal' 'i386' '1.0' 'Depends: spaces (>= 1.0)'
  10. insertpackage 'unstable' 'lessequal' 'i386' '1.0' 'Depends: spaces (> 1.0)'
  11. insertpackage 'unstable' 'zero-epoch' 'i386' '1.0' 'Depends: spaces (< 0:1.0.0)'
  12. insertpackage 'unstable' 'zero-epoch' 'i386' '1.0' 'Depends: spaces (< 1.0.0)'
  13. insertpackage 'unstable' 'zero-epoch' 'i386' '0:1.0' 'Depends: spaces (< 0:1.0.0)'
  14. setupaptarchive
  15. testsuccessequal "spaces:
  16. Installed: (none)
  17. Candidate: 1.0
  18. Version table:
  19. 1.0 500
  20. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages
  21. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages" aptcache policy spaces
  22. testsuccessequal "lessequal:
  23. Installed: (none)
  24. Candidate: 1.0
  25. Version table:
  26. 1.0 500
  27. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages
  28. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages" aptcache policy lessequal
  29. testsuccessequal "zero-epoch:
  30. Installed: (none)
  31. Candidate: 1.0
  32. Version table:
  33. 1.0 500
  34. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages
  35. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages
  36. 500 file:$TMPWORKINGDIRECTORY/aptarchive unstable/main i386 Packages" aptcache policy zero-epoch