Searched refs:pkg (Results 1 - 25 of 253) sorted by relevance

1234567891011

/pkg/src/tests/cli/
H A Dt_pkg_property.py41 """pkg: set, unset, and display properties"""
45 self.pkg("set-property -@", exit=2)
46 self.pkg("get-property -@", exit=2)
47 self.pkg("property -@", exit=2)
49 self.pkg("set-property title sample")
50 self.pkg('set-property description "more than one word"')
51 self.pkg("property")
52 self.pkg("property | grep title")
53 self.pkg("property | grep description")
54 self.pkg("propert
[all...]
H A Dt_pkg_hydrate.py33 import pkg.misc as misc namespace
145 self.pkg("set-property signature-policy require-signatures")
149 self.pkg("dehydrate", exit=4)
150 self.pkg("property dehydrated")
154 self.pkg("dehydrate -p test1", exit=4)
155 self.pkg("rehydrate", exit=4)
157 self.pkg("install dev@1.0 dev2")
159 self.pkg("rehydrate -p test1", exit=4)
177 self.pkg("dehydrate", exit=1, su_wrap=True)
182 self.pkg("se
[all...]
H A Dt_pkg_mediated.py31 import pkg.fmri as fmri namespace
32 import pkg.portable as portable namespace
33 import pkg.misc as misc namespace
34 import pkg.p5p namespace
48 open pkg://test/sendmail@0.5
49 add set name=pkg.summary value="Example sendmail package"
55 open pkg://test/sendmail@1.0
56 add set name=pkg.summary value="Example sendmail package"
64 open pkg://test/sendmail@2.0
65 add set name=pkg
[all...]
H A Dt_pkg_install.py51 import pkg.actions namespace
52 import pkg.digest as digest namespace
53 import pkg.fmri as fmri namespace
54 import pkg.manifest as manifest namespace
55 import pkg.misc as misc namespace
56 import pkg.portable as portable namespace
58 from pkg.client.pkgdefs import EXIT_OOPS
61 import pkg.sha512_t namespace
125 add depend type=require fmri=pkg:/foo@1.0
132 add depend type=require fmri=pkg
8056 def pkg(self, command, exit=0, comment="", use_img_root=True): member in class:TestImageCreateCorruptImage
[all...]
H A Dt_pkg_revert.py33 import pkg.portable as portable namespace
34 import pkg.misc as misc namespace
38 import pkg.sha512 namespace
156 self.pkg("install A@1.0 B@1.0 C@1.0 D@1.0")
157 self.pkg("verify")
161 self.pkg("verify A", exit=1)
167 self.pkg("-D hash=sha1+sha256 verify B", exit=1)
170 self.pkg("verify B", exit=1)
174 self.pkg("-D hash=sha1+sha512t_256 verify C", exit=1)
177 self.pkg("verif
[all...]
H A Dt_pkg_image_update.py30 from pkg.client.pkgdefs import *
37 import pkg.misc as misc namespace
76 add depend type=require fmri=pkg:/quux@1.0
82 add depend type=require fmri=pkg:/quux@1.1
88 add depend type=require fmri=pkg:/corge@1.0
94 add depend type=require fmri=pkg:/corge@1.1
112 add set name=pkg.depend.install-hold value=test
119 add set name=pkg.depend.install-hold value=test
135 add set name=pkg.depend.install-hold value=core-os
147 add set name=pkg
[all...]
H A Dt_pkg_avoid.py90 add set name=pkg.obsolete value=true
117 fpath = self.get_img_file_path("var/pkg/state/avoid_set")
153 self.pkg("unavoid C", exit=1)
156 self.pkg("install C")
157 self.pkg("verify A B C")
158 self.pkg("uninstall '*'")
161 self.pkg("avoid")
166 self.pkg("avoid 'B*'")
167 self.pkg("avoid")
171 self.pkg("unavoi
[all...]
H A Dt_pkg_publisher.py34 import pkg.client.image as image namespace
35 import pkg.misc namespace
61 """ pkg bogus option checks """
65 self.pkg("set-publisher -@ test3", exit=2)
66 self.pkg("publisher -@ test5", exit=2)
67 self.pkg("set-publisher -k", exit=2)
68 self.pkg("set-publisher -c", exit=2)
69 self.pkg("set-publisher -O", exit=2)
70 self.pkg("unset-publisher", exit=2)
71 self.pkg("unse
[all...]
H A Dt_pkg_R_option.py31 import pkg.portable as portable namespace
49 """Verify that pkg rejects invalid -R combos and values."""
51 self.pkg("-@", exit=2)
52 self.pkg("-s status", exit=2)
53 self.pkg("-R status", exit=2)
54 self.pkg("-R / version", exit=2)
57 """Ensure that pkg explicit image specification works as
64 self.pkg("-R {0} list".format(badpath), exit=1)
65 self.pkg("-R {0} list".format(imgpath), exit=1)
67 self.pkg("
[all...]
H A Dt_origin_fw.py33 import pkg.portable as portable namespace
89 add depend type=origin root-image=true fmri=pkg:/feature/firmware/fwenum check.minimum-version={1}
92 add depend type=origin root-image=true fmri=pkg:/feature/firmware/fwenum check.minimum-version={3}
97 add depend type=origin root-image=true fmri=pkg:/feature/firmware/fwenum
102 add depend type=origin root-image=true fmri=pkg:/feature/firmware/fwenum dump_core=1
107 add depend type=origin root-image=true fmri=pkg:/feature/firmware/no-such-enumerator
125 self.pkg("install A B")
126 self.pkg("list -v A@1.3 B@1.3")
129 self.pkg("verify A@1.1", 1)
133 self.pkg("instal
[all...]
H A Dt_origin_cpu.py33 import pkg.portable as portable namespace
99 add depend type=origin root-image=true fmri=pkg:/feature/cpu check.version-type={1} check.include={2}
102 add depend type=origin root-image=true fmri=pkg:/feature/cpu check.version-type={4} check.exclude={5}
107 add depend type=origin root-image=true fmri=pkg:/feature/cpu
112 add depend type=origin root-image=true fmri=pkg:/feature/cpu dump_core=1
117 add depend type=origin root-image=true fmri=pkg:/feature/cpu
134 self.pkg("install -v A@1.0 B@1.0")
135 self.pkg("list -v")
137 self.pkg("install A@1.4", 1)
139 self.pkg("instal
[all...]
H A Dt_colliding_links.py75 self.pkg("install pkg_A pkg_B")
76 self.pkg("verify")
78 # add a pkg w/ duplicate links
79 self.pkg("install pkg_C")
80 self.pkg("verify")
83 self.pkg("uninstall pkg_C")
84 self.pkg("verify")
86 # readd a pkg w/ duplicate links
87 self.pkg("install pkg_C")
88 self.pkg("verif
[all...]
H A Dt_pkg_uninstall.py34 import pkg.fmri as fmri namespace
47 """ pkg bogus option checks """
52 self.pkg("uninstall -@ foo", exit=2)
53 self.pkg("uninstall -vq foo", exit=2)
54 self.pkg("uninstall", exit=2)
55 self.pkg("uninstall foo@x.y", exit=1)
56 self.pkg("uninstall pkg:/foo@bar.baz", exit=1)
70 self.pkg("install foo")
72 self.pkg("uninstal
[all...]
H A Dt_actuators.py35 from pkg.misc import force_text
55 # called from pkg.client.actuator using 'svcs -H -o fmri <string>'
318 self.pkg("install --parsable=0 basics@1.0")
323 self.pkg("verify")
330 self.pkg("install basics@1.1")
331 self.pkg("verify")
337 self.pkg("uninstall basics")
338 self.pkg("verify")
347 self.pkg("install basics@1.2")
348 self.pkg("verif
[all...]
H A Dt_pkg_info.py36 import pkg.catalog as catalog namespace
37 import pkg.actions as actions namespace
38 import pkg.fmri as fmri namespace
77 add set name=pkg.human-version value=0.9.8r
83 add set name=pkg.human-version value=0.9.8.18
108 """Test bad frmi's with pkg info."""
118 self.pkg("info foo@x.y", exit=1)
120 self.pkg("info -q foo@x.y", exit=1)
122 self.pkg("info pkg
[all...]
H A Dt_pkg_rebuild_index.py39 """Test pkg with bad options."""
42 self.pkg("rebuild-index -@", exit=2)
43 self.pkg("rebuild-index foo", exit=2)
44 self.pkg("rebuild-index --", exit=2)
50 self.pkg("rebuild-index")
51 self.pkg("rebuild-index", exit=1, su_wrap=True)
H A Dt_pkg_contents.py33 import pkg.fmri as pfmri namespace
87 self.pkg("contents -@", exit=2)
88 self.pkg("contents -m -r", exit=2)
89 self.pkg("contents -o", exit=2)
90 self.pkg("contents -s", exit=2)
91 self.pkg("contents -t", exit=2)
92 self.pkg("contents foo@x.y", exit=1)
93 self.pkg("contents -a foo", exit=2)
94 self.pkg("contents -m -o action.hash", exit=2)
95 self.pkg("content
[all...]
H A Dt_change_facet.py128 self.pkg("facet")
129 self.pkg("facet -H -F tsv 'facet.locale*' | egrep False")
133 self.pkg("install --parsable=0 pkg_A")
135 self.pkg("verify")
136 self.pkg("facet")
152 self.pkg("facet -H -F tsv debug.top optional.doc")
161 self.pkg("verify", exit=1)
166 self.pkg("change-facet -n --parsable=0 wombat=false")
178 self.pkg("change-facet --no-refresh -n --parsable=0 "
190 self.pkg("chang
[all...]
H A Dt_pkg_freeze.py37 import pkg.client.api_errors as apx namespace
38 import pkg.fmri as fmri namespace
65 add set name=pkg.obsolete value=true
83 """Test bad options to pkg freeze."""
87 self.pkg("freeze -c", exit=2)
88 self.pkg("freeze -c 'foo'", exit=2)
89 self.pkg("freeze pkg://foo", exit=1)
90 self.pkg("unfreeze pkg
[all...]
H A Dt_pkg_version.py37 """ test pkg version with bad options """
41 self.pkg("version -vq", use_img_root=False, exit=2)
42 self.pkg("version foo", use_img_root=False, exit=2)
43 self.pkg("version --", use_img_root=False, exit=2)
H A Dt_pkg_list.py33 import pkg.fmri as fmri namespace
34 import pkg.manifest as manifest namespace
109 self.pkg("set-publisher -O " + self.rurl2 + " test2")
115 self.pkg("list -@", exit=2)
116 self.pkg("list -v -s", exit=2)
117 self.pkg("list -a -u", exit=2)
118 self.pkg("list -g pkg://test1/ -u", exit=2)
121 self.pkg("list -q -v", exit=2)
128 self.pkg("lis
[all...]
H A Dt_variants.py85 add depend type=require fmri=pkg:/i386_pkg@1.0,5.11-0
119 self.pkg("install \*")
120 self.pkg("info mumble-true", exit=1)
121 self.pkg("info mumble-false")
129 self.pkg("install mumblefratz@latest")
130 self.pkg("info mumblefratz@1.0")
131 self.pkg("info mumblefratz@2.0", exit=1)
135 self.pkg("install mumblefratz@latest")
136 self.pkg("info mumblefratz@1.0", exit=1)
137 self.pkg("inf
[all...]
H A Dt_pkg_composite.py33 import pkg.catalog as catalog namespace
34 import pkg.fmri as fmri namespace
35 import pkg.portable as portable namespace
36 import pkg.misc as misc namespace
37 import pkg.p5p namespace
53 open pkg://test/foo@1.0
54 add set name=pkg.summary value="Example package foo."
75 open pkg://test/incorp@1.0
76 add set name=pkg.summary value="Incorporation"
79 open pkg
[all...]
H A Dt_fix.py31 import pkg.fmri as fmri namespace
32 import pkg.manifest as manifest namespace
33 import pkg.portable as portable namespace
34 import pkg.misc as misc namespace
170 sfmri = pfmri.get_short_fmri().replace("pkg:/", "")
179 self.pkg("install amber@1.0")
182 self.pkg("fix -v --parsable 0 foo", exit=2)
183 self.pkg("fix -H --parsable 0 foo", exit=2)
185 self.pkg("fix --parsable 1 foo", exit=2)
188 self.pkg("fi
[all...]
H A Dt_pkg_modified.py65 # Assert /var/pkg/modified exists.
75 self.pkg("refresh")
95 self.pkg(op, exit=op_ret)
98 self.pkg("version", use_img_root=False)
104 self.pkg("refresh")
107 self.pkg("install -nv foo")
110 self.pkg("install --reject foo foo", exit=1)
113 self.pkg("install foo")
116 self.pkg("set-mediator -I postfix sendmail")
119 self.pkg("unse
[all...]

Completed in 236 milliseconds

1234567891011