Lines Matching refs:pkg
33 import pkg.fmri as fmri
34 import pkg.manifest as manifest
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("list -aH")
140 self.pkg("list -aqH")
143 self.pkg("list -afH")
163 self.pkg("list -faH")
169 self.pkg("list -afH pkg://test1/foo@1.0,5.11-0")
176 self.pkg("list -afH //test1/foo@1.0,5.11-0")
181 """List all "foo@1.0", regardless of publisher, with "pkg:/"
183 self.pkg("list -afH pkg:/foo@1.0,5.11-0")
191 self.pkg("list -afH /foo@1.0,5.11-0")
196 """List all "foo@1.0", regardless of publisher, without "pkg:/"
198 self.pkg("list -afH pkg:/foo@1.0,5.11-0")
208 self.pkg("list -aHf foo")
226 self.pkg("list -aH foo")
238 self.pkg("list -aHf foo@1.0-0 pkg://test2/foo@1.1-0")
249 self.pkg("list -aHf foo@1.0-0 pkg://test2/foo@1.1-0")
262 self.pkg("list -aHf pkg://test2/foo")
273 self.pkg("list -aH pkg://test2/foo")
283 self.pkg("list -aHf pkg://test1/foo@1 pkg:/foo@1.2")
296 self.pkg("list -aH pkg://test1/foo@1 pkg:/foo@1.2")
310 self.pkg("list -a")
312 self.pkg("install pkg://test2/foo@1.0")
315 self.pkg("list -q foo")
317 self.pkg("list -q foo bogus", exit=3)
323 self.pkg("set-publisher -O {0} test2".format(self.rurl3))
324 self.pkg("list -aHf /foo@1.0")
330 self.pkg("set-publisher -O {0} test2".format(self.rurl2))
335 self.pkg("unset-publisher test2")
336 self.pkg("set-publisher -O {0} test2".format(self.rurl3))
337 self.pkg("list -aHf /foo@1.0")
343 self.pkg("set-publisher -O {0} test2".format(self.rurl2))
347 # installed from. The pkg should be shown as for test1,
350 self.pkg("unset-publisher test2")
354 self.pkg("uninstall pkg://test2/foo@1.0")
362 self.pkg("list -a | grep newpkg", su_wrap=True, exit=1)
363 self.pkg("list -a | grep newpkg", exit=1)
365 self.pkg("list -aq newpkg", exit=1)
373 self.pkg("list -a | grep newpkg", su_wrap=True, exit=1)
374 self.pkg("list -a | grep newpkg", exit=1)
385 self.pkg("list -a | grep newpkg", su_wrap=True, exit=1)
387 # pkg list should work as an unprivileged user even though one
389 self.pkg("list -a", su_wrap=True)
393 self.pkg("list -a | grep newpkg")
397 self.pkg("list -a | grep newpkg", su_wrap=True)
399 self.pkg("list -aq newpkg")
415 # pkg operations.
420 # Verify that both pkg install and refresh generate an error
422 self.pkg("install newpkg@1.0", su_wrap=False, exit=1)
425 self.pkg("refresh test1", su_wrap=False, exit=1)
433 """Verify that a failed implicit refresh will not prevent pkg
437 self.pkg("set-publisher --no-refresh -O http://test.invalid2 "
440 # Verify pkg list -a works as expected for an unprivileged user
442 self.pkg("list -a", su_wrap=True)
444 # Verify pkg list -a fails for a privileged user when a
446 self.pkg("list -a", exit=1)
448 self.pkg("list -aq newpkg", exit=1)
452 self.pkg("set-publisher -O {0} test2".format(self.rurl2))
455 """Verify that pkg list pattern matching works as expected."""
457 self.pkg("publisher")
458 self.pkg("list -aHf 'foo*'")
476 self.pkg("list -aHf '/fo*'")
479 self.pkg("list -aHf 'f?o*'")
487 self.pkg("list -aHf '*fo*'")
491 self.pkg("list -aH 'foo*'")
501 self.pkg("list -aH '/fo*'")
504 self.pkg("list -aH 'f?o*'")
512 self.pkg("list -aH '*fo*'")
520 self.pkg("list -a {0}".format(pat), exit=ecode)
522 self.pkg("list junk_pkg_name", exit=1)
527 self.pkg("list -aHf '/foo*@1.2'")
539 self.pkg("list -aH '/foo*@1.2'")
555 self.pkg("list {0}".format(val), exit=1)
561 self.pkg("list -a bar@a", exit=1)
564 self.pkg("list -aq bar@a", exit=1)
568 self.pkg("list {0}".format(" ".join(pats)), exit=1)
574 self.pkg("list -aHf foo@latest")
584 self.pkg("list -Hn foo")
589 self.pkg("list -aHf foo@latest foo@1.1 //test2/foo@1.2")
602 self.pkg("list -aHf /hier/foo@latest //test1/foo@latest")
611 self.pkg("list -Hn /hier/foo //test1/foo")
617 """Verify that pkg list -u works as expected."""
620 self.pkg("install /foo@1.0")
623 self.pkg("list -H")
631 self.pkg("list -Hu foo")
637 self.pkg("list -Hqu foo")
641 self.pkg("update foo")
644 self.pkg("list -Hu foo", exit=1)
648 self.pkg("list -Hqu foo", exit=1)
652 """Verify that pkg list -v works as expected."""
656 self.pkg("install newpkg@1.0")
657 self.pkg("list -Hv newpkg")
687 """ pkg list should fail in an empty image """
690 self.pkg("list", exit=1)
694 self.pkg("list -q", exit=1)
741 # Now create a new image and verify that pkg list will
746 self.pkg("list -aH foo unsupported")
754 self.pkg("list -qaH foo unsupported")
761 self.pkg("refresh --full")
762 self.pkg("list -afH foo unsupported")
771 self.pkg("list -afqH foo unsupported")