From b181db5b9e596679ad2ed2105b1d103acb36192e Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 21 Nov 2010 23:02:10 -0300 Subject: [PATCH] qpkg: regression test for version preference - test/verpref: test version preference (higher wins if there's a choice) - TODO: updated for above change --- qpkg/TODO | 4 +- qpkg/test/verpref | 96 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 2 deletions(-) create mode 100755 qpkg/test/verpref diff --git a/qpkg/TODO b/qpkg/TODO index 7de42d7..e88fadc 100644 --- a/qpkg/TODO +++ b/qpkg/TODO @@ -7,8 +7,6 @@ Still left to do - handle Provides: -- if there are multiple choices, try to prefer more recent versions - - sort prerequisites such that they can be installed in the specified order - consider Architecture: @@ -50,3 +48,5 @@ Done Update: after merging the two lookups per new node into one, we're at 1172642 calls to comp_id, or 102% of the predicted "good case". + +- if there are multiple choices, try to prefer more recent versions diff --git a/qpkg/test/verpref b/qpkg/test/verpref new file mode 100755 index 0000000..904de5b --- /dev/null +++ b/qpkg/test/verpref @@ -0,0 +1,96 @@ +#!/bin/sh +. ./Common + +############################################################################### + +qpkg "prefer later version (1)" prereq foo <