aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pkg-build.testscript269
-rw-r--r--tests/pkg-system.testscript6
-rw-r--r--tests/pkg-verify.testscript9
-rw-r--r--tests/rep-create.testscript18
-rw-r--r--tests/rep-info.testscript24
5 files changed, 271 insertions, 55 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index 9d19846..3dbec28 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -1306,7 +1306,7 @@ test.arguments += --sys-no-query
$* libbaz ?libfoo/1.0.0 2>>EOE != 0
error: unable to satisfy constraints on package libfoo
- info: libbaz/1.1.0 depends on (libfoo == 1.0.0)
+ info: command line depends on (libfoo == 1.0.0)
info: libbar/1.1.0 depends on (libfoo == 1.1.0)
info: available libfoo/1.0.0
info: available libfoo/1.1.0
@@ -1326,7 +1326,7 @@ test.arguments += --sys-no-query
$cfg_link -d cfg cfg2;
$rep_add -d cfg2 $rep/t4c && $rep_fetch -d cfg2;
$* libbaz ?libbar +{ --config-id 1 } libfoo/1.0.0 +{ --config-id 1 } 2>>~%EOE% != 0
- error: unable to satisfy constraints on package libfoo
+ %error: unable to satisfy constraints on package libfoo \[cfg2.\]%
info: command line depends on (libfoo == 1.0.0)
% info: libbar/1.1.0 \[cfg2.\] depends on \(libfoo == 1.1.0\)%
info: available libfoo/1.0.0
@@ -1390,8 +1390,13 @@ test.arguments += --sys-no-query
# (libbaz) repositories.
#
$* libbar ?libfoo/1.0.0 libbaz 2>>EOE != 0
- error: package libfoo doesn't satisfy its dependents
- info: libfoo/1.0.0 doesn't satisfy libbar/1.1.0
+ error: unable to satisfy constraints on package libfoo
+ info: command line depends on (libfoo == 1.0.0)
+ info: libbar/1.1.0 depends on (libfoo == 1.1.0)
+ info: available libfoo/1.0.0
+ info: available libfoo/1.1.0
+ info: while satisfying libbar/1.1.0
+ info: explicitly specify libfoo version to manually satisfy both constraints
EOE
}
}
@@ -2369,8 +2374,8 @@ test.arguments += --sys-no-query
trace: execute_plan: simulate: yes
%.*
trace: pkg_build: try to replace unsatisfactory dependency libbar/2.0.0 with some other version
- trace: try_replace_dependent: try to replace unsatisfiable dependent libbaz/2.0.0 of dependency libbar/2.0.0 with some other version
- trace: try_replace_dependency: replace unsatisfiable dependent version libbaz/2.0.0 with 1.0.0 by adding constraint '?libbaz' -> '?libbaz == 1.0.0' on command line
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbaz/2.0.0 of dependency libbar/2.0.0 with some other version
+ trace: try_replace_dependency: replace unsatisfied dependent version libbaz/2.0.0 with 1.0.0 by adding constraint '?libbaz' -> '?libbaz == 1.0.0' on command line
trace: pkg_build: refine package collection/plan execution from scratch
trace: execute_plan: simulate: yes
%.*
@@ -2584,8 +2589,8 @@ test.arguments += --sys-no-query
trace: execute_plan: simulate: yes
%.*
trace: pkg_build: try to replace unsatisfactory dependency libbar/2.0.0 with some other version
- trace: try_replace_dependent: try to replace unsatisfiable dependent libbaz/2.0.0 of dependency libbar/2.0.0 with some other version
- trace: try_replace_dependency: replace unsatisfiable dependent version libbaz/2.0.0 with 1.0.0 by adding constraint '?libbaz' -> '?libbaz == 1.0.0' on command line
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbaz/2.0.0 of dependency libbar/2.0.0 with some other version
+ trace: try_replace_dependency: replace unsatisfied dependent version libbaz/2.0.0 with 1.0.0 by adding constraint '?libbaz' -> '?libbaz == 1.0.0' on command line
trace: pkg_build: refine package collection/plan execution from scratch
trace: collect_build: add foo/1.0.0
trace: collect_build_prerequisites: skip configured foo/1.0.0
@@ -2663,8 +2668,8 @@ test.arguments += --sys-no-query
trace: execute_plan: simulate: yes
%.*
trace: pkg_build: try to replace unsatisfactory dependency libbar/2.0.0 with some other version
- trace: try_replace_dependent: try to replace unsatisfiable dependent libbaz/2.0.0 of dependency libbar/2.0.0 with some other version
- trace: try_replace_dependency: replace unsatisfiable dependent version libbaz/2.0.0 with 1.0.0 by adding constraint '?libbaz' -> '?libbaz == 1.0.0' on command line
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbaz/2.0.0 of dependency libbar/2.0.0 with some other version
+ trace: try_replace_dependency: replace unsatisfied dependent version libbaz/2.0.0 with 1.0.0 by adding constraint '?libbaz' -> '?libbaz == 1.0.0' on command line
trace: pkg_build: refine package collection/plan execution from scratch
trace: collect_build: add foo/1.0.0
trace: collect_build_prerequisites: skip configured foo/1.0.0
@@ -2951,17 +2956,17 @@ test.arguments += --sys-no-query
info: consider specifying sys:libhello/*
EOE
- $* "sys:libhello/2.0@$rep/t0a" --trust-yes 2>>~%EOE% != 0;
- %.+
- %error: package sys:libhello/2\.0 is not found in .+t0a%
- EOE
-
$* libfoo '?sys:libhello/0.1' 2>>EOE != 0;
error: unable to satisfy constraints on package libhello
- info: libfoo depends on (libhello >= 1.0)
+ info: libfoo/1.1.0 depends on (libhello >= 1.0)
info: command line depends on (libhello == 0.1)
- info: specify libhello version to satisfy libfoo constraint
- info: while satisfying libfoo/1.1.0
+ info: while satisfying libfoo/1.1.0
+ info: explicitly specify libhello version to manually satisfy both constraints
+ EOE
+
+ $* "sys:libhello/2.0@$rep/t0a" --trust-yes 2>>~%EOE% != 0;
+ %.+
+ %error: package sys:libhello/2\.0 is not found in .+t0a%
EOE
$* libfoo '?sys:libhello/*' 2>>~%EOE%;
@@ -3192,8 +3197,16 @@ test.arguments += --sys-no-query
# info: specify libbaz version to satisfy libbar constraint
# info: while satisfying libbar/0.0.1
#
+ # Then, before we have started to ignore the dependent constraints which
+ # are not satisfied with the command line constraints and to add them to
+ # the unsatisfied dependents list, this command has failed as follows:
+ #
+ # error: libbaz/0.0.2 is not available from its dependents' repositories
+ #
$* libbar/0.0.1 ?libbaz/0.0.2 2>>EOE != 0;
- error: libbaz/0.0.2 is not available from its dependents' repositories
+ error: unable to satisfy command line constraint (libbaz == 0.0.2)
+ info: available libbaz versions: 0.0.3 0.0.1
+ info: while satisfying libbar/0.0.1
EOE
# Note that before we have implemented the unsatisfied constraints
@@ -3206,9 +3219,20 @@ test.arguments += --sys-no-query
# info: specify libbaz version to satisfy libbar constraint
# info: while satisfying libbar/0.0.1
#
+ # Then, before we have started to ignore the dependent constraints which
+ # are not satisfied with the command line constraints and to add them to
+ # the unsatisfied dependents list, this command has failed as follows:
+ #
+ # error: package libbaz doesn't satisfy its dependents
+ # info: libbaz/0.0.3 doesn't satisfy libbar/0.0.1
+ #
$* -- libbar/0.0.1 '?libbaz>=0.0.2' 2>>EOE != 0
- error: package libbaz doesn't satisfy its dependents
- info: libbaz/0.0.3 doesn't satisfy libbar/0.0.1
+ error: unable to satisfy constraints on package libbaz
+ info: libbar/0.0.1 depends on (libbaz == 0.0.1)
+ command line requires (libbar == 0.0.1)
+ info: command line depends on (libbaz >= 0.0.2)
+ info: while satisfying libbar/0.0.1
+ info: explicitly specify libbaz version to manually satisfy both constraints
EOE
}
@@ -3469,7 +3493,7 @@ test.arguments += --sys-no-query
$rep_fetch $rep/t0a $rep/t0c;
$* libbar/1.0.0 ?libfoo/0.0.1 2>>EOE != 0
- error: unable to satisfy dependency constraint (libfoo == 0.0.1) of package libbar
+ error: unable to satisfy command line constraint (libfoo == 0.0.1)
info: available libfoo versions: 1.0.0
info: while satisfying libbar/1.0.0
EOE
@@ -4249,8 +4273,11 @@ test.arguments += --sys-no-query
$pkg_status libbaz >'libbaz configured 0.0.1 available 0.1.0 0.0.4 0.0.3';
$* ?libbaz/0.0.3 +{ --config-id 1 } 2>>~%EOE% != 0;
- %error: package libbaz \[cfg2.\] doesn't satisfy its dependents%
- info: libbaz/0.0.3 doesn't satisfy libbar/0.0.1
+ %error: unable to satisfy constraints on package libbaz \[cfg2.\]%
+ info: libbar/0.0.1 depends on (libbaz == 0.0.1)
+ info: command line depends on (libbaz == 0.0.3)
+ info: while satisfying libbar/0.0.1
+ info: explicitly specify libbaz version to manually satisfy both constraints
EOE
$pkg_status libbaz >'libbaz configured 0.0.1 available 0.1.0 0.0.4 0.0.3';
@@ -5217,7 +5244,7 @@ test.arguments += --sys-no-query
$pkg_drop libfoo libfox
}
- : unsatisfied-dependent
+ : unsatisfied-dependent-noop
:
: This test demonstrates a case when the dependency resolution
: machinery resolves unsatisfied dependency constraints by
@@ -5231,6 +5258,16 @@ test.arguments += --sys-no-query
{
$clone_cfg;
+ # Dependencies:
+ #
+ # libbox/2.0.0: depends: libbax == 1.0.0
+ # libbox/1.0.0: depends: libbax
+ #
+ # libbix/1.0.0: depends: libbax == 1.0.0
+ # libbix/2.0.0: depends: libbax == 2.0.0
+ #
+ # libbux: depends: libbix
+ #
$* libbox ?libbix/1.0.0 libbux 2>!;
$pkg_status -ar >>EOO;
@@ -5272,8 +5309,10 @@ test.arguments += --sys-no-query
trace: execute_plan: simulate: yes
%.*
trace: pkg_build: try to replace unsatisfactory dependency libbax/2.0.0 with some other version
- trace: try_replace_dependent: try to replace unsatisfiable dependent libbix/2.0.0 of dependency libbax/2.0.0 with some other version
- trace: try_replace_dependency: replace unsatisfiable dependent version libbix/2.0.0 with 1.0.0 by adding package spec '?libbix == 1.0.0' to command line
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbox/2.0.0 of dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependency: downgrade for libbox/2.0.0 is not allowed, bailing out
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbix/2.0.0 of dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependency: replace unsatisfied dependent version libbix/2.0.0 with 1.0.0 by adding package spec '?libbix == 1.0.0' to command line
trace: pkg_build: refine package collection/plan execution from scratch
trace: collect_build: add libbox/2.0.0
trace: collect_build: add libbux/1.0.0
@@ -5299,6 +5338,144 @@ test.arguments += --sys-no-query
$pkg_drop libbox libbux
}
+ : unsatisfied-dependent
+ :
+ : Similar to the above, but this time noop is not a valid constraints
+ : resolution due to ?libbix/2.0.0. Thus, the dependency resolution
+ : machinery ends up with the downgrade of libbox/2.0.0 to 1.0.0.
+ :
+ {
+ $clone_cfg;
+
+ $* libbox ?libbix/1.0.0 libbux 2>!;
+
+ $pkg_status -ar >>EOO;
+ libbax configured 1.0.0 available 2.0.0
+ !libbox configured 2.0.0
+ libbax configured 1.0.0 available 2.0.0
+ libbix configured !1.0.0 available 2.0.0
+ libbax configured 1.0.0 available 2.0.0
+ !libbux configured 1.0.0
+ libbix configured !1.0.0 available 2.0.0
+ libbax configured 1.0.0 available 2.0.0
+ EOO
+
+ $* { libbox libbux ?libbax } +{ --upgrade --recursive } ?libbix/2.0.0 2>>~%EOE%;
+ %.*
+ trace: pkg_build: refine package collection/plan execution from scratch
+ trace: collect_build: add libbox/2.0.0
+ trace: collect_build: add libbux/1.0.0
+ trace: collect_build_prerequisites: skip configured libbox/2.0.0
+ trace: collect_build_prerequisites: skip configured libbux/1.0.0
+ trace: execute_plan: simulate: yes
+ %.*
+ trace: evaluate_dependency: libbix/1.0.0: update to libbix/2.0.0
+ %.*
+ trace: pkg_build: refine package collection/plan execution
+ trace: collect_build_prerequisites: pre-reeval libbux/1.0.0
+ trace: collect_build_prerequisites: pre-reevaluated libbux/1.0.0: end reached
+ trace: collect_build_prerequisites: begin libbix/2.0.0
+ trace: collect_build_prerequisites: no cfg-clause for dependency libbax/2.0.0 of dependent libbix/2.0.0
+ trace: collect_build_prerequisites: skip unsatisfied existing dependent libbox of dependency libbax/2.0.0 due to constraint (libbax == 1.0.0)
+ trace: collect_build_prerequisites: skip being built existing dependent libbix of dependency libbax
+ trace: collect_build_prerequisites: begin libbax/2.0.0
+ trace: collect_build_prerequisites: end libbax/2.0.0
+ trace: collect_build_prerequisites: end libbix/2.0.0
+ trace: collect_dependents: postpone failure for existing dependent libbox unsatisfied with dependency libbax/2.0.0 (== 1.0.0)
+ trace: execute_plan: simulate: yes
+ %.*
+ trace: pkg_build: try to replace unsatisfactory dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbox/2.0.0 of dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependency: downgrade for libbox/2.0.0 is not allowed, bailing out
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbix/2.0.0 of dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependency: replacement of unsatisfied dependent version libbix/2.0.0 is denied since it is specified on command line as '?libbix == 2.0.0'
+ trace: pkg_build: cannot resolve unsatisfied dependency constraints, now allowing downgrades
+ trace: pkg_build: refine package collection/plan execution from scratch
+ trace: collect_build: add libbox/2.0.0
+ trace: collect_build: add libbux/1.0.0
+ trace: collect_build_prerequisites: skip configured libbox/2.0.0
+ trace: collect_build_prerequisites: skip configured libbux/1.0.0
+ trace: execute_plan: simulate: yes
+ %.*
+ trace: evaluate_dependency: libbix/1.0.0: update to libbix/2.0.0
+ %.*
+ trace: pkg_build: refine package collection/plan execution
+ trace: collect_build_prerequisites: pre-reeval libbux/1.0.0
+ trace: collect_build_prerequisites: pre-reevaluated libbux/1.0.0: end reached
+ trace: collect_build_prerequisites: begin libbix/2.0.0
+ trace: collect_build_prerequisites: no cfg-clause for dependency libbax/2.0.0 of dependent libbix/2.0.0
+ trace: collect_build_prerequisites: skip unsatisfied existing dependent libbox of dependency libbax/2.0.0 due to constraint (libbax == 1.0.0)
+ trace: collect_build_prerequisites: skip being built existing dependent libbix of dependency libbax
+ trace: collect_build_prerequisites: begin libbax/2.0.0
+ trace: collect_build_prerequisites: end libbax/2.0.0
+ trace: collect_build_prerequisites: end libbix/2.0.0
+ trace: collect_dependents: postpone failure for existing dependent libbox unsatisfied with dependency libbax/2.0.0 (== 1.0.0)
+ trace: execute_plan: simulate: yes
+ %.*
+ trace: pkg_build: try to replace unsatisfactory dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependent: try to replace unsatisfied dependent libbox/2.0.0 of dependency libbax/2.0.0 with some other version
+ trace: try_replace_dependency: replace unsatisfied dependent version libbox/2.0.0 with 1.0.0 by adding constraint 'libbox' -> 'libbox == 1.0.0' on command line
+ trace: pkg_build: refine package collection/plan execution from scratch
+ trace: collect_build: add libbox/1.0.0
+ trace: collect_build: add libbux/1.0.0
+ trace: collect_build_prerequisites: begin libbox/1.0.0
+ trace: collect_build_prerequisites: no cfg-clause for dependency libbax/1.0.0 of dependent libbox/1.0.0
+ trace: collect_build_prerequisites: skip configured libbax/1.0.0
+ trace: collect_build_prerequisites: end libbox/1.0.0
+ trace: collect_build_prerequisites: skip configured libbux/1.0.0
+ trace: execute_plan: simulate: yes
+ %.*
+ trace: evaluate_dependency: libbix/1.0.0: update to libbix/2.0.0
+ %.*
+ trace: pkg_build: refine package collection/plan execution
+ trace: collect_build_prerequisites: pre-reeval libbux/1.0.0
+ trace: collect_build_prerequisites: pre-reevaluated libbux/1.0.0: end reached
+ trace: collect_build_prerequisites: begin libbix/2.0.0
+ trace: collect_build: pick libbax/2.0.0 over libbax/1.0.0
+ trace: collect_build: libbax/1.0.0 package version needs to be replaced with libbax/2.0.0
+ trace: pkg_build: collection failed due to package version replacement, retry from scratch
+ trace: pkg_build: refine package collection/plan execution from scratch
+ trace: collect_build: add libbox/1.0.0
+ trace: collect_build: add libbux/1.0.0
+ trace: collect_build_prerequisites: begin libbox/1.0.0
+ trace: collect_build: apply version replacement for libbax/1.0.0
+ trace: collect_build: replacement: libbax/2.0.0
+ trace: collect_build_prerequisites: no cfg-clause for dependency libbax/2.0.0 of dependent libbox/1.0.0
+ trace: collect_build_prerequisites: skip being built existing dependent libbox of dependency libbax
+ trace: collect_build_prerequisites: skip unsatisfied existing dependent libbix of dependency libbax/2.0.0 due to constraint (libbax == 1.0.0)
+ trace: collect_build_prerequisites: begin libbax/2.0.0
+ trace: collect_build_prerequisites: end libbax/2.0.0
+ trace: collect_build_prerequisites: end libbox/1.0.0
+ trace: collect_build_prerequisites: skip configured libbux/1.0.0
+ trace: collect_build_prerequisites: pre-reeval libbux/1.0.0
+ trace: collect_build_prerequisites: pre-reevaluated libbux/1.0.0: end reached
+ trace: collect_build_prerequisites: begin libbix/2.0.0
+ trace: collect_build_prerequisites: no cfg-clause for dependency libbax/2.0.0 of dependent libbix/2.0.0
+ trace: collect_build_prerequisites: end libbix/2.0.0
+ trace: execute_plan: simulate: yes
+ %.*
+ upgrade libbax/2.0.0
+ downgrade libbox/1.0.0
+ upgrade libbix/2.0.0
+ reconfigure libbux/1.0.0
+ trace: execute_plan: simulate: no
+ %.*
+ EOE
+
+ $pkg_status -ar >>EOO;
+ libbax configured 2.0.0
+ !libbox configured 1.0.0 available 2.0.0
+ libbax configured 2.0.0
+ libbix configured !2.0.0
+ libbax configured 2.0.0
+ !libbux configured 1.0.0
+ libbix configured !2.0.0
+ libbax configured 2.0.0
+ EOO
+
+ $pkg_drop libbox libbux
+ }
+
: indirect
:
: Test replacement of indirect dependents of an unsatisfactory
@@ -5766,12 +5943,20 @@ test.arguments += --sys-no-query
{
$clone_cfg;
+ # Dependencies:
+ #
+ # libbaz/2.0.0: depends: libbar < 2.1.0
+ # libfox/1.1.0: depends: libbar >= 1.0.0
+ #
+ # libbar: 0.1.0, 1.2.0, 2.1.0
+ #
$* libbaz libfox/1.1.0 '?libbar < 3.0.0' 2>>~%EOE%;
%.*
trace: pkg_build: refine package collection/plan execution from scratch
trace: collect_build: add libbaz/2.0.0
trace: collect_build: add libfox/1.1.0
trace: collect_build_prerequisites: begin libbaz/2.0.0
+ trace: collect_build_prerequisites: postpone failure for constraint (libbar < 2.1.0) of dependent libbaz unsatisfied with user-specified constraint (libbar < 3.0.0)
trace: collect_build_prerequisites: no cfg-clause for dependency libbar/0.1.0 of dependent libbaz/2.0.0
trace: collect_build_prerequisites: begin libbar/0.1.0
trace: collect_build_prerequisites: end libbar/0.1.0
@@ -33586,8 +33771,11 @@ else
$rep_add $rep/t4b && $rep_fetch;
$* libbar "?$src/libfoo-1.0.0.tar.gz" 2>>EOE != 0
- error: package libfoo doesn't satisfy its dependents
- info: libfoo/1.0.0 doesn't satisfy libbar/1.1.0
+ error: unable to satisfy constraints on package libfoo
+ info: libbar/1.1.0 depends on (libfoo == 1.1.0)
+ info: command line depends on (libfoo == 1.0.0)
+ info: while satisfying libbar/1.1.0
+ info: explicitly specify libfoo version to manually satisfy both constraints
EOE
}
@@ -33600,8 +33788,12 @@ else
$rep_add $rep/t4a && $rep_fetch;
$* $src/libbar-1.1.0.tar.gz "?$src/libfoo-1.0.0.tar.gz" 2>>EOE != 0
- error: package libfoo doesn't satisfy its dependents
- info: libfoo/1.0.0 doesn't satisfy libbar/1.1.0
+ error: unable to satisfy constraints on package libfoo
+ info: libbar/1.1.0 depends on (libfoo == 1.1.0)
+ command line requires (libbar == 1.1.0)
+ info: command line depends on (libfoo == 1.0.0)
+ info: while satisfying libbar/1.1.0
+ info: explicitly specify libfoo version to manually satisfy both constraints
EOE
}
@@ -33991,8 +34183,11 @@ else
$rep_add $rep/t4b && $rep_fetch;
$* libbar "?$d/libfoo-1.0.0/" 2>>EOE != 0
- error: package libfoo doesn't satisfy its dependents
- info: libfoo/1.0.0 doesn't satisfy libbar/1.1.0
+ error: unable to satisfy constraints on package libfoo
+ info: libbar/1.1.0 depends on (libfoo == 1.1.0)
+ info: command line depends on (libfoo == 1.0.0)
+ info: while satisfying libbar/1.1.0
+ info: explicitly specify libfoo version to manually satisfy both constraints
EOE
}
@@ -34005,8 +34200,12 @@ else
$rep_add $rep/t4a && $rep_fetch;
$* $d/libbar-1.1.0/ "?$d/libfoo-1.0.0/" 2>>EOE != 0
- error: package libfoo doesn't satisfy its dependents
- info: libfoo/1.0.0 doesn't satisfy libbar/1.1.0
+ error: unable to satisfy constraints on package libfoo
+ info: libbar/1.1.0 depends on (libfoo == 1.1.0)
+ command line requires (libbar == 1.1.0)
+ info: command line depends on (libfoo == 1.0.0)
+ info: while satisfying libbar/1.1.0
+ info: explicitly specify libfoo version to manually satisfy both constraints
EOE
}
diff --git a/tests/pkg-system.testscript b/tests/pkg-system.testscript
index 11ed1cc..c2e9c12 100644
--- a/tests/pkg-system.testscript
+++ b/tests/pkg-system.testscript
@@ -857,10 +857,10 @@ rep_remove += -d cfg 2>!
$pkg_build foo '?sys:libbar/1' 2>>EOE != 0;
error: unable to satisfy constraints on package libbar
- info: foo depends on (libbar >= 2)
+ info: foo/2 depends on (libbar >= 2)
info: command line depends on (libbar == 1)
- info: specify libbar version to satisfy foo constraint
- info: while satisfying foo/2
+ info: while satisfying foo/2
+ info: explicitly specify libbar version to manually satisfy both constraints
EOE
$pkg_status foo >'foo available 2';
diff --git a/tests/pkg-verify.testscript b/tests/pkg-verify.testscript
index 8057aab..bbe2454 100644
--- a/tests/pkg-verify.testscript
+++ b/tests/pkg-verify.testscript
@@ -78,12 +78,14 @@ $* --deep --ignore-unknown --manifest $src/foo-2.tar.gz >>EOO
version: 2
summary: The "Foo" utility
license: MIT
- description:\
+ description:
+ \
This package contains the foo utility.
\
description-type: text/plain
- changes:\
+ changes:
+ \
Version 2
* First public release.
@@ -93,7 +95,8 @@ $* --deep --ignore-unknown --manifest $src/foo-2.tar.gz >>EOO
url: http://www.example.org/foo
email: foo-users@example.org
depends: bar == 2
- bootstrap-build:\
+ bootstrap-build:
+ \
project = foo
\
diff --git a/tests/rep-create.testscript b/tests/rep-create.testscript
index bca7305..c9364ed 100644
--- a/tests/rep-create.testscript
+++ b/tests/rep-create.testscript
@@ -41,7 +41,8 @@
url: http://www.example.org/bar
email: bar-users@example.org
depends: foo == 1
- bootstrap-build:\
+ bootstrap-build:
+ \
project = bar
\
@@ -54,7 +55,8 @@
license: MIT
url: http://www.example.org/foo
email: foo-users@example.org
- bootstrap-build:\
+ bootstrap-build:
+ \
project = foo
\
@@ -86,7 +88,8 @@
url: http://www.example.org/bar
email: bar-users@example.org
depends: foo == 1
- bootstrap-build:\
+ bootstrap-build:
+ \
project = bar
\
@@ -99,7 +102,8 @@
license: MIT
url: http://www.example.org/foo
email: foo-users@example.org
- bootstrap-build:\
+ bootstrap-build:
+ \
project = foo
\
@@ -148,7 +152,8 @@
url: http://www.example.org/bar
email: bar-users@example.org
depends: foo == 1
- bootstrap-build:\\
+ bootstrap-build:
+ \\
project = bar
\\
@@ -161,7 +166,8 @@
license: MIT
url: http://www.example.org/foo
email: foo-users@example.org
- bootstrap-build:\\
+ bootstrap-build:
+ \\
project = foo
\\
diff --git a/tests/rep-info.testscript b/tests/rep-info.testscript
index 2c02c8f..4b7c15a 100644
--- a/tests/rep-info.testscript
+++ b/tests/rep-info.testscript
@@ -116,7 +116,8 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)"
license: MIT
url: http://www.example.org/foo
email: foo-users@example.org
- bootstrap-build:\
+ bootstrap-build:
+ \
project = foo
\
@@ -144,13 +145,15 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)"
version: 1.0.0+1
summary: libbar
license: MIT
- description:\
+ description:
+ \
TODO
\
description-type: text/plain
%.+
- bootstrap-build:\
+ bootstrap-build:
+ \
project = libbar
using config
@@ -182,13 +185,15 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)"
version: 1.0.0+1
summary: libbar
license: MIT
- description:\
+ description:
+ \
TODO
\
description-type: text/plain
%.+
- bootstrap-build:\
+ bootstrap-build:
+ \
project = libbar
using config
@@ -202,13 +207,15 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)"
version: 1.0.0
summary: libmbar
license: MIT
- description:\
+ description:
+ \
TODO
\
description-type: text/plain
%.+
- bootstrap-build:\
+ bootstrap-build:
+ \
project = libmbar
using config
@@ -245,7 +252,8 @@ $* --name $rep/testing >"pkg:build2.org/rep-info/testing ($rep/testing)"
license: MIT
url: http://www.example.org/foo
email: foo-users@example.org
- bootstrap-build:\
+ bootstrap-build:
+ \
project = foo
\