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.
 
 
 
 
 
 
josch a3d8611d19 update README.md 8 years ago
Makefile add checking sort -V 8 years ago
README.md update README.md 8 years ago
inequalityfilter.cc add checking sort -V 8 years ago
run.py add checking sort -V 8 years ago
rundpkg.sh initial commit 8 years ago
testapt.cc add checking sort -V 8 years ago
testdose.ml initial commit 8 years ago
testdpkg.c initial commit 8 years ago
testsort.sh add checking sort -V 8 years ago

README.md

This is to test the several implementations of Debian version comparison algorithms.

Run it via make test.

run.py generates a file containing all permutations of pairs of versions. The different programs then check whether versions are greater than, equal or less than one another and output >, = and <, respectively in order. It is then checked whether the output of all implementations is the same.

Currently, this checks the libdpkg C implementation, libapt and dose3.

Additionally, the following parsers could be added:

  • libdpkg-perl
  • libben-ocaml (in lib/benl_base.ml and lib/benl_dpkg.c)

The following do not use their own parser:

  • python-debian uses python-apt
  • libghc-dpkg-dev uses libdpkg-dev
  • ruby-debian uses libapt-pkg-dev
  • dpkg-dev-el uses dpkg --compare-versions