aboutsummaryrefslogtreecommitdiff
path: root/tests/pkg-build.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-06-14 18:44:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-06-14 18:44:07 +0300
commit4ea2746d42a9c7133b1938133115049d4e41962f (patch)
tree5f043bf1254bb344a3999412885753075f9fd40c /tests/pkg-build.testscript
parentcdbf968d003392a08c6dda204023e51a8b4e1e8e (diff)
Verify build plan for some configuration negotiation tests
Diffstat (limited to 'tests/pkg-build.testscript')
-rw-r--r--tests/pkg-build.testscript52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index d5f767b..902ff1f 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -4862,6 +4862,13 @@ test.options += --no-progress
trace: collect_build_postponed (0): end
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ new libfoo/1.0.0 (required by foo, fox, fux)
+ config.libfoo.extras=true (set by foo)
+ new foo/1.0.0
+ new fox/1.0.0
+ new fux/1.0.0
+ %.*
EOE
$pkg_status -r >>EOO;
@@ -4918,6 +4925,11 @@ test.options += --no-progress
%.*
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ configure sys:libfoo/*
+ new foo/1.0.0
+ new fox/1.0.0
+ %.*
EOE
$pkg_status -r >>EOO;
@@ -4986,6 +4998,15 @@ test.options += --no-progress
trace: collect_build_postponed (0): end
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ new libfoo/1.0.0 (required by baz, foo)
+ config.libfoo.extras=true (set by baz)
+ new foo/1.0.0
+ new libbar/1.0.0 (required by bar, baz)
+ config.libbar.extras=true (set by bar)
+ new bar/1.0.0
+ new baz/1.0.0
+ %.*
EOE
$pkg_status -r >>EOO;
@@ -5354,6 +5375,11 @@ test.options += --no-progress
%.*
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ reconfigure/update libfoo/1.0.0 (required by foo)
+ config.libfoo.extras=true (set by foo)
+ new foo/1.0.0
+ %.*
EOE
$pkg_status -r >>EOO;
@@ -5445,8 +5471,18 @@ test.options += --no-progress
%.*
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ downgrade libfoo/0.1.0
+ config.libfoo.extras=true (set by foo)
+ reconfigure/update foo/1.0.0 (dependent of libfoo)
+ %.*
EOE
+ $pkg_status -r >>EOO;
+ !foo configured 1.0.0
+ libfoo configured !0.1.0 available 1.0.0
+ EOO
+
# Reconfigure the dependency and hold.
#
$* libfoo/0.1.0 +{ config.libfoo.extras=true } 2>>~%EOE%;
@@ -5483,6 +5519,11 @@ test.options += --no-progress
%.*
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ reconfigure/update libfoo/0.1.0
+ config.libfoo.extras=true (user configuration)
+ reconfigure/update foo/1.0.0 (dependent of libfoo)
+ %.*
EOE
$pkg_status -r >>EOO;
@@ -5544,6 +5585,10 @@ test.options += --no-progress
%.*
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ upgrade libfoo/1.0.0
+ drop foo/1.0.0 (unused)
+ %.*
EOE
$pkg_status -r >>EOO;
@@ -5737,6 +5782,13 @@ test.options += --no-progress
%.*
trace: execute_plan: simulate: yes
%.*
+ build plan:
+ downgrade libfoo/0.1.0
+ config.libfoo.extras=true (set by tex)
+ downgrade libbar/0.1.0
+ config.libbar.extras=true (set by tex)
+ reconfigure/update tex/1.0.0 (dependent of libbar)
+ %.*
EOE
$pkg_status -r >>EOO;