aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-02-01 11:42:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-02-01 11:42:31 +0200
commit546391dab6173660acceba6404136e9411ce1388 (patch)
tree79da333fd1f7447c6b9490565f520d1d79a329b7 /tests
parent724131b7e03934664621f86df2dc2285ff43dba8 (diff)
Implement system package manager query and install support for Debian
Diffstat (limited to 'tests')
-rw-r--r--tests/common.testscript4
-rw-r--r--tests/pkg-build.testscript4
-rw-r--r--tests/pkg-drop.testscript4
3 files changed, 10 insertions, 2 deletions
diff --git a/tests/common.testscript b/tests/common.testscript
index 17174d9..30fcf7e 100644
--- a/tests/common.testscript
+++ b/tests/common.testscript
@@ -32,11 +32,13 @@ test.options += --default-options $options_guard \
# (for example, to make sure that configuration post-test state is valid and is
# as expected).
#
+# Disable the use of the system package manager for the pkg-build command.
+#
cfg_create = [cmdline] $* cfg-create
cfg_info = [cmdline] $* cfg-info
cfg_link = [cmdline] $* cfg-link
cfg_unlink = [cmdline] $* cfg-unlink
-pkg_build = [cmdline] $* pkg-build
+pkg_build = [cmdline] $* pkg-build --sys-no-query
pkg_checkout = [cmdline] $* pkg-checkout
pkg_configure = [cmdline] $* pkg-configure
pkg_disfigure = [cmdline] $* pkg-disfigure
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index 198e319..aaa7bc4 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -461,6 +461,10 @@ rep_list += -d cfg
#
test.options += --no-progress
+# Disable the use of the system package manager.
+#
+test.arguments += --sys-no-query
+
: libfoo
:
: Test building different versions of libfoo.
diff --git a/tests/pkg-drop.testscript b/tests/pkg-drop.testscript
index a2e58f3..7504d6c 100644
--- a/tests/pkg-drop.testscript
+++ b/tests/pkg-drop.testscript
@@ -458,7 +458,9 @@ $* libfoo/1.0.0 2>>~%EOE% != 0
: linked-configs
:
{
- pkg_build = [cmdline] $0 pkg-build --yes 2>!
+ # Get rid of -d option.
+ #
+ pkg_build = [cmdline] $0 pkg-build --yes --sys-no-query 2>!
: 3-configs
: