From: Michael Schroeder Date: Mon, 10 Oct 2016 10:16:23 +0000 (+0200) Subject: Test focus support X-Git-Tag: 0.6.24~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7099e8e329438802afd47b62b8d932c6c7f0af09;p=thirdparty%2Flibsolv.git Test focus support --- diff --git a/test/testcases/focus/best.t b/test/testcases/focus/best.t new file mode 100644 index 00000000..a7a46b98 --- /dev/null +++ b/test/testcases/focus/best.t @@ -0,0 +1,23 @@ +repo system 0 testtags +#>=Pkg: A 1 1 noarch +#>=Pkg: A2 1 1 noarch +repo available 0 testtags +#>=Pkg: A 1 1 noarch +#>=Pkg: A 2 1 noarch +#>=Pkg: B 1 1 noarch +#>=Req: A = 1 +#>=Pkg: B 2 1 noarch +#>=Req: A = 2 +#>=Pkg: A2 1 1 noarch +#>=Pkg: A2 2 1 noarch +#>=Pkg: B2 1 1 noarch +#>=Req: A2 = 1 +#>=Pkg: B2 2 1 noarch +#>=Req: A2 = 2 +#>=Pkg: C 1 1 noarch +#>=Req: B2 +system i686 rpm system +solverflags focusbest + +job install name B +job install name C diff --git a/test/testcases/focus/installed.t b/test/testcases/focus/installed.t new file mode 100644 index 00000000..4f49d355 --- /dev/null +++ b/test/testcases/focus/installed.t @@ -0,0 +1,23 @@ +repo system 0 testtags +#>=Pkg: A 1 1 noarch +#>=Pkg: A2 1 1 noarch +repo available 0 testtags +#>=Pkg: A 1 1 noarch +#>=Pkg: A 2 1 noarch +#>=Pkg: B 1 1 noarch +#>=Req: A = 1 +#>=Pkg: B 2 1 noarch +#>=Req: A = 2 +#>=Pkg: A2 1 1 noarch +#>=Pkg: A2 2 1 noarch +#>=Pkg: B2 1 1 noarch +#>=Req: A2 = 1 +#>=Pkg: B2 2 1 noarch +#>=Req: A2 = 2 +#>=Pkg: C 1 1 noarch +#>=Req: B2 +system i686 rpm system +solverflags focusinstalled + +job install name B +job install name C diff --git a/test/testcases/focus/normal.t b/test/testcases/focus/normal.t new file mode 100644 index 00000000..6e562a37 --- /dev/null +++ b/test/testcases/focus/normal.t @@ -0,0 +1,22 @@ +repo system 0 testtags +#>=Pkg: A 1 1 noarch +#>=Pkg: A2 1 1 noarch +repo available 0 testtags +#>=Pkg: A 1 1 noarch +#>=Pkg: A 2 1 noarch +#>=Pkg: B 1 1 noarch +#>=Req: A = 1 +#>=Pkg: B 2 1 noarch +#>=Req: A = 2 +#>=Pkg: A2 1 1 noarch +#>=Pkg: A2 2 1 noarch +#>=Pkg: B2 1 1 noarch +#>=Req: A2 = 1 +#>=Pkg: B2 2 1 noarch +#>=Req: A2 = 2 +#>=Pkg: C 1 1 noarch +#>=Req: B2 +system i686 rpm system + +job install name B +job install name C