Turns out that my main problem was that I was not running the test cases as root. Are the CLI test cases supposed to work when running as a non-root user? The first failure is due to a verify that fails because there is an attempt to install libc.so with owner/group of root/bin, and when running as a non-root user this doesn't happen.

The other problem I was seeing is due to a missing "-s $REPO_URL" in three pkgsend close statements. Here are the diffs:

diff -r 08af9ffa5667 src/tests/cli-complete.ksh
--- a/src/tests/cli-complete.ksh        Sun Jan 27 22:39:23 2008 -0800
+++ b/src/tests/cli-complete.ksh        Mon Jan 28 17:02:26 2008 -0600
@@ -578,7 +578,7 @@ expect_exit 2 $?
expect_exit 2 $?

# should work
-pkgsend close -A 2>&1
+pkgsend -s $REPO_URL close -A 2>&1
expect_exit 0 $?

end_assert
@@ -599,7 +599,7 @@ eval "$res"
eval "$res"
expect_exit 0 $?

-pkgsend close -A 2>&1
+pkgsend -s $REPO_URL close -A 2>&1
expect_exit 0 $?

new_test "pkgsend open -n should emit an integer"
@@ -609,7 +609,7 @@ echo $res | egrep '^[0-9]+'
echo $res | egrep '^[0-9]+'
expect_exit 0 $?

-PKG_TRANS_ID="$res" pkgsend close -A 2>&1
+PKG_TRANS_ID="$res" pkgsend -s $REPO_URL close -A 2>&1
expect_exit 0 $?

end_assert

HTH.
Tom


Tom Mueller wrote:
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


------------------------------------------------------------------------


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