Hi. I'm new to the IPS project, taking over for what James was working on before (multi-platform support).

I was running the test cases and was seeing failures too, but thought that maybe it was something I was doing wrong. I've attached the output that I'm getting from a fresh install and run of the gate on Solaris 10 U4 on x86. I'm running this as a non-root user.

Here's what I did:

$ hg clone ssh://[EMAIL PROTECTED]/hg/pkg/gate ips
$ cd ips/src
$ make install
$ make test

The test.out file is the output from the last command.

Before the latest checkin for the test cases, I was only getting about 5 failures, and had figured out fixes for 4 of them. But now I'm seeing even more failures. Is this due to something wrong in my environment?

Thanks.
Tom

Dan Price wrote:
On Thu 24 Jan 2008 at 08:05PM, Stephen Hahn wrote:
* Dan Price <[EMAIL PROTECTED]> [2008-01-25 01:53]:
On Thu 24 Jan 2008 at 05:25PM, Stephen Hahn wrote:
Please have a look at
   http://cr.opensolaris.org/~sch/pkg-fixes-p2/

   which fixes the recently filed

   399 pkg list on explicit packages fails with no output, exit status of 1
Just a thought: is there a test case needed here?
  Yes.  I was running the test suite again before the commute home, and
  was dismayed at the number of exit status failures I saw.

That's odd-- perhaps I am misunderstanding, but things have been running
pretty smooth for me with the suite.  I have occasionally seen the "two
depots" test freak out, but I have not yet worked out what's going wrong
there.

AFAIK there are no undiagnosed failures in the current suite runs.

        -dp


$ make test
/home/trm/ws/ips/src/tests
Logging to /tmp/10753.ipkg-test.log
/usr/bin/python api-complete.py >> /tmp/10753.ipkg-test.log
.................................................................................
----------------------------------------------------------------------
Ran 81 tests in 0.794s

OK
Logging to /tmp/10753.ipkg-test.log
/usr/bin/ksh  cli-complete.ksh >> /tmp/10753.ipkg-test.log

--cli-complete testing------------------------------------------------
Redirecting all repository logging to stdout
cli-complete.ksh[66]: 10764 Terminated
Redirecting all repository logging to stdout
PASS 0: Stop server, start again.
pkg: no packages installed
PASS 1: pkg status should fail in an empty image
PASS 2: Send empty package [EMAIL PROTECTED], install and uninstall.
*** case 3: expected exit status: 0, saw 1.
*** FAILED ASSERT: Send package [EMAIL PROTECTED], containing a directory and a 
file, install, search, and uninstall.
*** SUB-ASSERT: pkg status -a, install foo, verify should succeed
KNOWNBUGS 3: passed, but with 1 known failures. (Send package [EMAIL 
PROTECTED], containing a directory and a file, install, search, and uninstall.)
*** case 4: expected exit status: 0, saw 1.
*** FAILED ASSERT: Install [EMAIL PROTECTED], upgrade to [EMAIL PROTECTED], 
uninstall.
*** SUB-ASSERT: install version 1.1 (i.e. upgrade from 1.0 -> 1.1)
KNOWNBUGS 4: passed, but with 1 known failures. (Install [EMAIL PROTECTED], 
upgrade to [EMAIL PROTECTED], uninstall.)
*** case 5: expected exit status: 0, saw 1.
*** FAILED ASSERT: Add [EMAIL PROTECTED], dependent on [EMAIL PROTECTED], 
install, uninstall.
*** SUB-ASSERT: check status, install [EMAIL PROTECTED]
pkg: no packages installed
pkg: no packages installed
KNOWNBUGS 5: passed, but with 1 known failures. (Add [EMAIL PROTECTED], 
dependent on [EMAIL PROTECTED], install, uninstall.)
*** case 6: expected exit status: 0, saw 1.
*** FAILED ASSERT: Install [EMAIL PROTECTED], dependent on [EMAIL PROTECTED], 
uninstall recursively.
*** SUB-ASSERT: check to see that foo and bar were installed
*** Expecting test failure due to bugid 387
*** case 6: expected exit status: 1, saw 0.
*** FAILED ASSERT: Install [EMAIL PROTECTED], dependent on [EMAIL PROTECTED], 
uninstall recursively.
*** SUB-ASSERT: check to see that foo and bar were uninstalled
*** failed [bug # 387]
*** Saw expected failure due to bug # 387
KNOWNBUGS 6: passed, but with 2 known failures. (Install [EMAIL PROTECTED], 
dependent on [EMAIL PROTECTED], uninstall recursively.)
pkg: no matching packages installed
PASS 7: Send package [EMAIL PROTECTED], then abandon the transaction
*** case 8: expected exit status: 0, saw 1.
*** FAILED ASSERT: Send package [EMAIL PROTECTED], dependent on [EMAIL 
PROTECTED]  Install [EMAIL PROTECTED] List all packages.  Upgrade image.
*** SUB-ASSERT: status, image-update -v, verify
KNOWNBUGS 8: passed, but with 1 known failures. (Send package [EMAIL 
PROTECTED], dependent on [EMAIL PROTECTED]  Install [EMAIL PROTECTED] List all 
packages.  Upgrade image.)
*** case 9: expected exit status: 0, saw 99.
*** FAILED ASSERT: bad command line options should result in error status 2
*** SUB-ASSERT: close -Q is bogus
KNOWNBUGS 9: passed, but with 1 known failures. (bad command line options 
should result in error status 2)
*** case 10: expecERT: exercise pkgsend open
*** SUB-ASSERT: pkgsend open -n should emit an integer
KNOWNBUGS 10: passed, but with 4 known failures. (exercise pkgsend open)
pkgsend: server failed (status 404): Transaction ID not found
PASS 11: client correctly handles errors on bad pkgsends
Logging to /tmp/10753.ipkg-test.log
/usr/bin/ksh  two-depot.ksh >> /tmp/10753.ipkg-test.log

--two-depot testing------------------------------------------------
Redirecting all repository logging to stdout
Traceback (most recent call last):
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
304, in ?
    ret = main_func()
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
277, in main_func
    trans_open(pcfg, pargs)
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
92, in trans_open
    status, id = t.open(config, pargs[0])
  File 
"/home/trm/ws/ips/proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/publish/transaction.py",
 line 57, in open
    headers = {"Client-Release": os.uname()[2]})
  File 
"/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/misc.py",
 line 74, in versioned_urlopen
    c = url_opener(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
    raise URLError(err)
URLError: <urlopen error (128, 'Network is unreachable')>
*** case 0: pkgsend open failed
*** FAILED ASSERT: Populate Depot 1 and Depot 2
*** SUB-ASSERT: unknown
Traceback (most recent call last):
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
304, in ?
    ret = main_func()
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
279, in main_func
    trans_close(pcfg, pargs)
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
131, in trans_close
    ret, hdrs = t.close(config, trans_id, abandon)
  File 
"/home/trm/ws/ips/proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/publish/transaction.py",
 line 78, in close
    c, v = versioned_urlopen(repo, op, [0], trans_id)
  File 
"/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/misc.py",
 line 74, in versioned_urlopen
    c = url_opener(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
    raise URLError(err)
URLError: <urlopen error (128, 'Network is unreachable')>
*** case 0: pkgsend close failed
*** FAILED ASSERT: Populate Depot 1 and Depot 2
*** SUB-ASSERT: unknown
Traceback (most recent call last):
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
304, in ?
    ret = main_func()
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
277, in main_func
    trans_open(pcfg, pargs)
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
92, in trans_open
    status, id = t.open(config, pargs[0])
  File 
"/home/trm/ws/ips/proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/publish/transaction.py",
 line 57, in open
    headers = {"Client-Release": os.uname()[2]})
  File 
"/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/misc.py",
 line 74, in versioned_urlopen
    c = url_opener(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
    raise URLError(err)
URLError: <urlopen error (128, 'Network is unreachable')>
*** case 0: pkgsend open failed
*** FAILED ASSERT: Populate Depot 1 and Depot 2
*** SUB-ASSERT: unknown
Traceback (most recent call last):
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
304, in ?
    ret = main_func()
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
279, in main_func
    trans_close(pcfg, pargs)
  File "/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/bin/pkgsend", line 
131, in trans_close
    ret, hdrs = t.close(config, trans_id, abandon)
  File 
"/home/trm/ws/ips/proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/publish/transaction.py",
 line 78, in close
    c, v = versioned_urlopen(repo, op, [0], trans_id)
  File 
"/home/trm/ws/ips/src/tests/../../proto/root_i386/usr/lib/python2.4/vendor-packages/pkg/misc.py",
 line 74, in versioned_urlopen
    c = url_opener(req)
  File "/usr/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/usr/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.4/urllib2.py", line 996, in do_open
    raise URLError(err)
URLError: <urlopen error (128, 'Network is unreachable')>
*** case 0: pkgsend close failed
*** FAILED ASSERT: Populate Depot 1 and Depot 2
*** SUB-ASSERT: unknown
KNOWNBUGS 0: passed, but with 4 known failures. (Populate Depot 1 and Depot 2)
    http://localhost:9000: Network is unreachable
*** case 1: pkg refresh failed
*** FAILED ASSERT: Create new image, add second authority, update catalogs
*** SUB-ASSERT: unknown
KNOWNBUGS 1: passed, but with 1 known failures. (Create new image, add second 
authority, update catalogs)
PASS 2: Install and uninstall pkg [EMAIL PROTECTED] from authority 1
install failed: Unable to assemble image plan
*** case 3: pkg install bar failed
*** FAILED ASSERT: Install and uninstall pkg [EMAIL PROTECTED] from authority 2
*** SUB-ASSERT: unknown
pkg: no packages installed
*** case 3: pkg status failed
*** FAILED ASSERT: Install and uninstall pkg [EMAIL PROTECTED] from authority 2
*** SUB-ASSERT: unknown
pkg: 'bar' not even in catalog!
*** case 3: pkg uninstall bar failed
*** FAILED ASSERT: Install and uninstall pkg [EMAIL PROTECTED] from authority 2
*** SUB-ASSERT: unknown
KNOWNBUGS 3: passed, but with 3 known failures. (Install and uninstall pkg 
[EMAIL PROTECTED] from authority 2)
*** case 4: expected exit status: 1, saw 0.
*** FAILED ASSERT: Install and uninstall pkg [EMAIL PROTECTED] from authority 1
*** SUB-ASSERT: unknown
KNOWNBUGS 4: passed, but with 1 known failures. (Install and uninstall pkg 
[EMAIL PROTECTED] from authority 1)
kill: 10945: no such process
# workaround: memleaks doesn't run cleanly at this time
/usr/bin/ksh  memleaks.ksh >> /tmp/10753.ipkg-test.log

--memleaks testing----------------------------------------------------
Note: set DBG_STOP=1 in your environment to stop for leak debugging
Redirecting all repository logging to stdout
*** Expecting test failure due to bugid 124
BYTES             LEAKED VMEM_SEG CALLER
4096                   1 ce3a8000 MMAP
------------------------------------------------------------------------
           Total       1 oversized leak, 4096 bytes

CACHE     LEAKED   BUFCTL CALLER
----------------------------------------------------------------------
   Total       0 buffers, 0 bytes
*** case 0: leaks found
*** FAILED ASSERT: Put some binaries into the server, then findleaks it.
*** SUB-ASSERT: echo ::findleaks | mdb
*** failed [bug # 124]
*** Saw expected failure due to bug # 124
KNOWNBUGS 0: passed, but with 1 known failures. (Put some binaries into the 
server, then findleaks it.)
Logging to /tmp/10753.ipkg-test.log
Should be run as root
/usr/bin/ksh  upgrade.ksh >> /tmp/10753.ipkg-test.log

--upgrade testing-----------------------------------------------------
Redirecting all repository logging to stdout
upgrade.ksh[62]: 11031 Terminated
Redirecting all repository logging to stdout
PASS 0: Stop server, start again.
PASS 1: Send package [EMAIL PROTECTED], [EMAIL PROTECTED]
*** case 2: expected exit status: 0, saw 1.
*** FAILED ASSERT: Install [EMAIL PROTECTED] (should cause amber install too)
*** SUB-ASSERT: check for bronze
KNOWNBUGS 2: passed, but with 1 known failures. (Install [EMAIL PROTECTED] 
(should cause amber install too))
PASS 3: Send [EMAIL PROTECTED], [EMAIL PROTECTED]
*** case 4: expected exit status: 0, saw 1.
*** FAILED ASSERT: image-update to get new versions of amber and bronze
*** SUB-ASSERT: check for bronze
KNOWNBUGS 4: passed, but with 1 known failures. (image-update to get new 
versions of amber and bronze)
begin:vcard
fn:Tom Mueller
n:Mueller;Tom
org:Sun Microsystems, Inc.;Update Center/OpenInstaller Software
adr:;;21915 Hillandale Dr;Elkhorn;NE;68022;USA
email;internet:[EMAIL PROTECTED]
title:Senior Staff Engineer
tel;work:877-250-4011
tel;fax:877-250-4011
tel;home:402-916-9943
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to