Re: dtc: Add testcases for tree checks

4 messages, 4 authors, 2007-11-20 · open the first message on its own page

Re: dtc: Add testcases for tree checks

From: Jon Loeliger <hidden>
Date: 2007-11-20 15:09:17

So, like, the other day David Gibson mumbled:
quoted hunk
This patch adds a group of testcases to check that dtc correctly
rejects trees with various structural errors.

To make things easier to test, we change dtc so that failing checks
(as opposed to other errors) result in exit code 2.

This patch also fixes an embarrasing bug uncovered by these new tests:
check_phandles() worked out if the tree's phandles were valid, then
throws that information away and returns success always.

Signed-off-by: David Gibson <redacted>

NOTE! jdl, you'll need to chmod +x tests/dtc-checkfails.sh before you
git commit this - it's a new shell script and patch can't encode the
permissions info.

Index: dtc/tests/dup-nodename.dts
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ dtc/tests/dup-nodename.dts	2007-11-20 16:02:22.000000000 +1100

Actually, this is the official third time now that it would have
been significantly nicer had you been using git for patches as
it does correctly handle excute permissions properly in patches.

And, it allows for side-band commentary such as your NOTE!, above,
to be included in the patch mail, but not in the patch log itself
such that it too doesn't have to be "git commit --amend"'ed out
as well.

In any event, Applied and Adjusted.

jdl

Re: dtc: Add testcases for tree checks

From: David Gibson <hidden>
Date: 2007-11-20 22:03:09

On Tue, Nov 20, 2007 at 09:09:17AM -0600, Jon Loeliger wrote:
So, like, the other day David Gibson mumbled:
quoted
This patch adds a group of testcases to check that dtc correctly
rejects trees with various structural errors.

To make things easier to test, we change dtc so that failing checks
(as opposed to other errors) result in exit code 2.

This patch also fixes an embarrasing bug uncovered by these new tests:
check_phandles() worked out if the tree's phandles were valid, then
throws that information away and returns success always.

Signed-off-by: David Gibson <redacted>

NOTE! jdl, you'll need to chmod +x tests/dtc-checkfails.sh before you
git commit this - it's a new shell script and patch can't encode the
permissions info.

Index: dtc/tests/dup-nodename.dts
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ dtc/tests/dup-nodename.dts	2007-11-20 16:02:22.000000000 +1100

Actually, this is the official third time now that it would have
been significantly nicer had you been using git for patches as
it does correctly handle excute permissions properly in patches.
Well, yes.  But, IMO, every time anyone other that you or I has
commented on one of these patches as it goes past counts as an
occasion when it's better that I've been using patches, rather than
pushing to you direct with git.
And, it allows for side-band commentary such as your NOTE!, above,
to be included in the patch mail, but not in the patch log itself
such that it too doesn't have to be "git commit --amend"'ed out
as well.
Actually, that should be possible with mails too, it's just that I
forgot the --- line.
In any event, Applied and Adjusted.
-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Re: dtc: Add testcases for tree checks

From: Jon Loeliger <hidden>
Date: 2007-11-20 22:22:54

On Tue, 2007-11-20 at 16:03, David Gibson wrote:
Well, yes.  But, IMO, every time anyone other that you or I has
commented on one of these patches as it goes past counts as an
occasion when it's better that I've been using patches, rather than
pushing to you direct with git.
I am not asking you to stop sending patches.
I'm asking you to generate your patches with git.
Git's patch format, send through mail, handles
the execute permissions.

Actually, that should be possible with mails too, it's just that I
forgot the --- line.
Right.  I'm just asking for it to be used. :-)

jdl

Re: dtc: Add testcases for tree checks

From: Scott Wood <hidden>
Date: 2007-11-20 22:23:42

David Gibson wrote:
On Tue, Nov 20, 2007 at 09:09:17AM -0600, Jon Loeliger wrote:
quoted
Actually, this is the official third time now that it would have
been significantly nicer had you been using git for patches as
it does correctly handle excute permissions properly in patches.
Well, yes.  But, IMO, every time anyone other that you or I has
commented on one of these patches as it goes past counts as an
occasion when it's better that I've been using patches, rather than
pushing to you direct with git.
Generating patches with "git-format-patch -M" isn't the same as pushing 
directly...

-Scot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help