public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: "Anupam Srivastava - ERS, HCL Tech" <Anupam_Srivastava@hcl.com>
Cc: LTP List <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] Porting of LTP on Android - Patch
Date: Wed, 2 May 2012 16:42:28 +0200	[thread overview]
Message-ID: <20120502144228.GF366@saboteur.suse.cz> (raw)
In-Reply-To: <0F68B52D2432864190BC72F760407FE93254CA39D1@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN>

Hi!
> We have ported LTP open source (Version: ltp-full-20110228) on Android
> 2.2 Froyo. It will validate the reliability, robustness, and stability
> of Android. We want to submit the same to open source community.  PFA
> patch for the same. Please let me know if I have to do anything else
> regarding submission of this patch.

First of all, you should use lastest LTP in order to aviod collisions.
The best fit for development would be a git checkout and please use
unified diff format (diff -u) from now on.


diff -crB ltp-full-20110228//Android.mk ltp//Android.mk
*** ltp-full-20110228//Android.mk	2011-04-26 03:28:58.000000000 -0400
--- ltp//Android.mk	2011-06-10 07:11:04.000000000 -0400
***************
*** 10,16 ****
  export LTP_SCRIPTS_DIR := $(LTP_ROOT_DIR)/scripts
  export LTP_TESTCASES_DIR := $(LTP_ROOT_DIR)/testcases
  
! 
  
  subdirs := \
  	external/ltp/lib/Android.mk \
--- 10,16 ----
  export LTP_SCRIPTS_DIR := $(LTP_ROOT_DIR)/scripts
  export LTP_TESTCASES_DIR := $(LTP_ROOT_DIR)/testcases
  
! LOCAL_CFLAGS := -D_ANDROID
  
  subdirs := \
  	external/ltp/lib/Android.mk \

Hmm, that seems to be incomplete, we don't have Android.mk in our
sources.

diff -crB ltp-full-20110228//include/ltp_signal.h ltp//include/ltp_signal.h
*** ltp-full-20110228//include/ltp_signal.h	2011-06-09 05:00:49.000000000 -0400
--- ltp//include/ltp_signal.h	2011-08-02 07:11:21.000000000 -0400
***************
*** 23,28 ****
--- 23,30 ----
   *
   * Author: Liu Bo <liubo2009@cn.fujitsu.com>
   * Author: Garrett Cooper <yanegomi@gmail.com>
+  * 08/01/11 - Updated: Anupam Srivastava, anupam_srivastava@hcl.com
+  *			   - Config.h is not supported by Android
   *
   */

Please don't write dates and comments here. We use git to track this
informations. If you have changed a file just add simple line with your
name there.

Also the diff shows only change in the commend, is it incomplete too?

diff -crB ltp-full-20110228//include/tlibio.h ltp//include/tlibio.h
*** ltp-full-20110228//include/tlibio.h	2011-06-09 05:01:54.000000000 -0400
--- ltp//include/tlibio.h	2011-08-02 07:12:37.000000000 -0400
***************
*** 28,33 ****
--- 28,35 ----
   * For further information regarding this notice, see:
   *
   * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
+  * 08/01/11 - Updated: Anupam Srivastava, anupam_srivastava@hcl.com
+  *			   - aio.h is not supported by Android
   */
  
  #define LIO_IO_SYNC             00001   /* read/write */

The same problem as well.


... snip ...


diff -crB ltp-full-20110228//testcases/kernel/connectors/Android.mk ltp//testcases/kernel/connectors/Android.mk
*** ltp-full-20110228//testcases/kernel/connectors/Android.mk	2011-06-29 00:58:03.000000000 -0400
--- ltp//testcases/kernel/connectors/Android.mk	2011-06-29 01:37:34.000000000 -0400
***************
*** 1,19 ****
! ifneq ($(TARGET_SIMULATOR),true)
! LOCAL_PATH:= $(call my-dir)
! 
! include $(CLEAR_VARS)
! 
! subdirs := \
! 	external/ltp/testcases/kernel/pec/Android.mk
! 
! LOCAL_C_INCLUDES += $(LOCAL_PATH)
! LOCAL_C_INCLUDES += include
! 

This file has windows line ends, remove them.


The rest of the patch, if I understand it correctly mostly removes
subdirectories, which is simply wrong. There should be something similar
to ifeq(UCLINUX,1) to skip these tests.

You should also split the patch in several smaller so that each of them
changes one thing at a time.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2012-05-02 14:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19  5:52 [LTP] Porting of LTP on Android - Patch Anupam Srivastava - ERS, HCL Tech
2012-05-02 14:42 ` Cyril Hrubis [this message]
     [not found]   ` <0F68B52D2432864190BC72F760407FE934CE5FCDEC@NDA-HCLT-EVS04.HCLT.CORP.HCL.IN>
2012-05-16 16:37     ` Cyril Hrubis
  -- strict thread matches above, loose matches on Subject: below --
2011-08-08 13:13 Anupam Srivastava - ERS, HCL Tech
2011-08-13  3:59 ` Garrett Cooper
2011-08-13  4:25   ` Garrett Cooper
2012-01-11 12:53 ` sarath.tadi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120502144228.GF366@saboteur.suse.cz \
    --to=chrubis@suse.cz \
    --cc=Anupam_Srivastava@hcl.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox