No description
Find a file
2015-03-17 14:05:50 +01:00
inequalityfilter.cc add checking sort -V 2014-06-25 20:15:31 +02:00
Makefile add checking sort -V 2014-06-25 20:15:31 +02:00
README.md update README.md 2015-03-17 14:05:50 +01:00
run.py add checking sort -V 2014-06-25 20:15:31 +02:00
rundpkg.sh initial commit 2014-06-01 10:31:24 +02:00
testapt.cc add checking sort -V 2014-06-25 20:15:31 +02:00
testdose.ml initial commit 2014-06-01 10:31:24 +02:00
testdpkg.c initial commit 2014-06-01 10:31:24 +02:00
testsort.sh add checking sort -V 2014-06-25 20:15:31 +02:00

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