aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-06 16:23:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-06 16:44:09 +0200
commitf7a31c6a617c043171df737d4246c50c1f7286f3 (patch)
tree332f67853ab27bc960a620c9727d293f6c754520 /tests
parentc5019d100308fd3e330678ec223d3891ed61d3c8 (diff)
Add pkg-status --all|-a and --link options
Diffstat (limited to 'tests')
-rw-r--r--tests/pkg-build.testscript24
-rw-r--r--tests/pkg-drop.testscript5
2 files changed, 16 insertions, 13 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript
index 9f2ffe0..b413a14 100644
--- a/tests/pkg-build.testscript
+++ b/tests/pkg-build.testscript
@@ -4438,7 +4438,7 @@ else
updated libbaz/1.1.0
EOE
- $pkg_status -r >>/EOO;
+ $pkg_status --link -r >>/EOO;
!libbaz configured 1.1.0
!libbar [cfg-bar/] configured !1.1.0
!libfoo [cfg-foo/] configured 1.1.0
@@ -4929,7 +4929,7 @@ else
%updated libbaz/1.0.0 \[t2.\]%
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!libbaz configured 1.0.0
!libbaz [t2/] configured 1.0.0
EOO
@@ -5001,7 +5001,7 @@ else
updated foo/1.0.0
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!libbaz configured 1.0.0
!foo configured 1.0.0
!libbaz [t2/] configured 1.0.0
@@ -5227,7 +5227,7 @@ else
updated foo/1.0.0
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!foo configured 1.0.0
!libbaz [t2/] configured 1.0.0
libbuild2-bar [t1/.bpkg/build2/] configured 1.0.0
@@ -5277,7 +5277,7 @@ else
%updated libbaz/1.0.0 \[t2.\]%
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!libbaz [t2/] configured 1.0.0
EOO
}
@@ -5327,7 +5327,7 @@ else
updated libbar/1.0.0
EOE
- $pkg_status -d h1 -r >>/EOO
+ $pkg_status -d h1 --link -r >>/EOO
!foo configured 1.0.0
!libbaz [h2/] configured 1.0.0
libbuild2-bar [h1/.bpkg/build2/] configured 1.0.0
@@ -5506,7 +5506,7 @@ else
updated libbar/1.0.0
EOE
- $pkg_status -d h1 -r >>/EOO
+ $pkg_status -d h1 --link -r >>/EOO
!libbar configured 1.0.0
foo configured 1.0.0
!libbaz [h2/] configured 1.0.0
@@ -5555,7 +5555,7 @@ else
updated foo/1.0.0
EOE
- $pkg_status -d h1 -r >>/EOO;
+ $pkg_status -d h1 --link -r >>/EOO;
!foo configured 1.0.0
libbaz configured 1.0.0
libbuild2-bar [h1/.bpkg/build2/] configured 1.0.0
@@ -5585,7 +5585,7 @@ else
%updated libbaz/1.1.0 \[h2.\]%
EOE
- $pkg_status -d h1 -r >>/EOO
+ $pkg_status -d h1 --link -r >>/EOO
!foo configured 1.0.0
libbaz [h2/] configured 1.1.0
libbuild2-bar [h1/.bpkg/build2/] configured 1.0.0
@@ -5776,7 +5776,7 @@ else
updated libbar/1.0.0
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!libbar configured 1.0.0
foo [t1/.bpkg/host/] configured 1.0.0
libbaz [t1/.bpkg/host/] configured 1.0.0
@@ -5834,7 +5834,7 @@ else
%updated libbar/1.1.0 \[t2.\]%
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!libbar configured 1.0.0
foo [t1/.bpkg/host/] configured 1.0.0
libbaz [t1/.bpkg/host/] configured 1.0.0
@@ -5928,7 +5928,7 @@ else
updated libbar/1.0.0
EOE
- $pkg_status -d t1 -r >>/EOO
+ $pkg_status -d t1 --link -r >>/EOO
!libfix configured 1.0.0
libbar configured 1.0.0 available 1.1.0
!foo [h1/] configured 1.1.0
diff --git a/tests/pkg-drop.testscript b/tests/pkg-drop.testscript
index c9b629b..d875543 100644
--- a/tests/pkg-drop.testscript
+++ b/tests/pkg-drop.testscript
@@ -766,6 +766,9 @@ $* libfoo/1.0.0 2>>~%EOE% != 0
error: unable to find prerequisite package foo in linked configuration cfg2/
EOE
- $pkg_status -d cfg2 -r 2>'info: no held packages in the configuration'
+ $pkg_status -d cfg2 -r 2>>EOE
+ info: no held packages in the configuration
+ info: use --all|-a to see status of all packages
+ EOE
}
}