Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Issue 1161005: autotest: Make the "ltp" test comile on ARM. (Closed)

Created:
10 years, 9 months ago by Kenneth Waters
Modified:
9 years, 7 months ago
Reviewers:
mbligh, seano, ericli
CC:
chromium-os-reviews_chromium.org, kmixter1, petkov, seano, sosa, robotboy
Visibility:
Public.

Description

autotest: Make the "ltp" test comile on ARM. - Add a utility function to wrap "./configure" to pass appropriate "--host", "--target", and "--build" options to configure. - Change the ltp test to use said utility - Workaround an internal compiler error in "ltp". The epoll-ltp.c test writes zero to an uint64_t through an unaligned pointer. This causes our compiler to die. The behavior is undefined by the C standard (C99 Section 6.3.2.3) and I suspect that even if it did compile it would cause a "bus error" on ARM. I replaced the assignment with a call to memset. TEST=Built for x86-generic and arm-generic BUG=None

Patch Set 1 #

Patch Set 2 : Make portable #

Total comments: 2

Patch Set 3 : Move configure into the base class. #

Patch Set 4 : Move configure() back to utils #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M client/common_lib/utils.py View 1 chunk +21 lines, -0 lines 0 comments Download
M client/tests/ltp/ltp.patch View 1 chunk +11 lines, -0 lines 0 comments Download
M client/tests/ltp/ltp.py View 1 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Kenneth Waters
10 years, 9 months ago (2010-03-23 01:12:45 UTC) #1
ericli
Ken, Thanks to fix this for us. Really great. But please help to make this ...
10 years, 9 months ago (2010-03-23 01:20:52 UTC) #2
Kenneth Waters
> But please help to make this upstream compatible, since ltp belongs to upstream. While ...
10 years, 9 months ago (2010-03-23 01:26:24 UTC) #3
mbligh_google.com
On Tue, Mar 23, 2010 at 1:26 AM, <kwaters@chromium.org> wrote: >> But please help to ...
10 years, 9 months ago (2010-03-23 01:44:03 UTC) #4
Kenneth Waters
> > While I would normally agree with you, this change is very gentoo/ChromeOS > ...
10 years, 9 months ago (2010-03-23 02:08:21 UTC) #5
mbligh_google.com
On Tue, Mar 23, 2010 at 2:08 AM, <kwaters@chromium.org> wrote: >> > While I would ...
10 years, 9 months ago (2010-03-23 02:14:56 UTC) #6
Kenneth Waters
I thought about this a little more, you guys are right. I'll remove the utility ...
10 years, 9 months ago (2010-03-23 02:39:37 UTC) #7
Kenneth Waters
Martin, Eric, Tedbo liked the idea of the configure wrapper; do you mind if I ...
10 years, 9 months ago (2010-03-23 16:50:00 UTC) #8
petkov
It's good to have a configure wrapper -- it would be useful for other tests ...
10 years, 9 months ago (2010-03-23 16:53:56 UTC) #9
mbligh_google.com
I think we have client/bin/chrome_utils.py or similar now. On Tue, Mar 23, 2010 at 9:57 ...
10 years, 9 months ago (2010-03-23 18:31:17 UTC) #10
Kenneth Waters
ptal. If you don't like the location of "configure()" please suggest another one.
10 years, 9 months ago (2010-03-23 18:32:16 UTC) #11
mbligh
LGTM
10 years, 9 months ago (2010-03-23 18:38:16 UTC) #12
ericli
http://codereview.chromium.org/1161005/diff/11001/5002 File client/common_lib/utils.py (right): http://codereview.chromium.org/1161005/diff/11001/5002#newcode1252 client/common_lib/utils.py:1252: def configure(extra=None, configure='./configure'): Move this function to client/common_lib/test.py
10 years, 9 months ago (2010-03-23 18:40:15 UTC) #13
Kenneth Waters
http://codereview.chromium.org/1161005/diff/11001/5002 File client/common_lib/utils.py (right): http://codereview.chromium.org/1161005/diff/11001/5002#newcode1252 client/common_lib/utils.py:1252: def configure(extra=None, configure='./configure'): On 2010/03/23 18:40:16, ericli wrote: > ...
10 years, 9 months ago (2010-03-23 21:43:26 UTC) #14
mbligh_google.com
On Tue, Mar 23, 2010 at 2:43 PM, <kwaters@chromium.org> wrote: > > http://codereview.chromium.org/1161005/diff/11001/5002 > File ...
10 years, 9 months ago (2010-03-23 22:01:43 UTC) #15
ericli
inside client/common_lib/test.py and base_test class. This is where setup() is initially defined and since configure() ...
10 years, 9 months ago (2010-03-23 22:58:51 UTC) #16
Kenneth Waters
On 2010/03/23 22:58:51, ericli wrote: > inside client/common_lib/test.py and base_test class. This is where setup() ...
10 years, 9 months ago (2010-03-23 23:00:28 UTC) #17
Kenneth Waters
ptal. I moved back to utils, based on experience with sysstat.
10 years, 9 months ago (2010-03-24 00:03:28 UTC) #18
ericli
LGTM. Thanks. On 2010/03/24 00:03:28, Kenneth Waters wrote: > ptal. I moved back to utils, ...
10 years, 9 months ago (2010-03-24 00:10:00 UTC) #19
mbligh
10 years, 9 months ago (2010-03-24 00:11:18 UTC) #20
On 2010/03/24 00:03:28, Kenneth Waters wrote:
> ptal.  I moved back to utils, based on experience with sysstat.

LGTM. 

I'm not fussed either way ;-)

Powered by Google App Engine
This is Rietveld 408576698