Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178222752
D62233.1796277806.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62233.1796277806.diff
View Options
diff --git a/usr.sbin/pkg/tests/pkg_test.sh b/usr.sbin/pkg/tests/pkg_test.sh
--- a/usr.sbin/pkg/tests/pkg_test.sh
+++ b/usr.sbin/pkg/tests/pkg_test.sh
@@ -4,14 +4,14 @@
# SPDX-License-Identifier: BSD-2-Clause
#
+: ${LOCALBASE:=$(sysctl -n user.localbase)}
+: ${LOCALBASE:=/usr/local}
+pkg8=${LOCALBASE}/sbin/pkg
+
pkg_prepare()
{
- : ${LOCALBASE:=$(sysctl -n user.localbase)}
- : ${LOCALBASE:=/usr/local}
pkg7=$(command -pv pkg)
- pkg8=${LOCALBASE}/sbin/pkg
atf_check test -x "${pkg7}"
- atf_check test -x "${pkg8}"
atf_check test ! "${pkg7}" -ef "${pkg8}"
}
@@ -19,6 +19,7 @@
activation_head()
{
atf_set descr "Activation test without jail or root"
+ atf_set require.progs "${pkg8}"
}
activation_body()
{
@@ -39,6 +40,7 @@
atf_set descr "Activation test with jail"
atf_set require.user "root"
atf_set require.files "/rescue/sh"
+ atf_set require.progs "${pkg8}"
}
activation_jail_body()
{
@@ -90,6 +92,7 @@
activation_root_head()
{
atf_set descr "Activation test with root"
+ atf_set require.progs "${pkg8}"
}
activation_root_body()
{
@@ -129,6 +132,7 @@
{
atf_set descr "Install pkg in a jail"
atf_set require.user "root"
+ atf_set require.progs "${pkg8}"
}
add_jail_body()
{
@@ -162,6 +166,7 @@
{
atf_set descr "Install pkg in a root"
atf_set require.user "root"
+ atf_set require.progs "${pkg8}"
}
add_root_body()
{
@@ -179,6 +184,7 @@
config_head()
{
atf_set descr "Verify that pkg passes on configuration options"
+ atf_set require.progs "${pkg8}"
}
config_body()
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 3, 6:03 AM (8 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42136591
Default Alt Text
D62233.1796277806.diff (1 KB)
Attached To
Mode
D62233: pkg(7): tests: skip when pkg(8) isn't installed
Attached
Detach File
Event Timeline