All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add cgreen. Library to do unit test for C language
@ 2010-05-16  3:41 João Henrique Freitas
  2010-05-16  7:39 ` Koen Kooi
  0 siblings, 1 reply; 6+ messages in thread
From: João Henrique Freitas @ 2010-05-16  3:41 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

Hi,

---
 recipes/cgreen/cgreen.inc    |   15 +++++++++++++++
 recipes/cgreen/cgreen_svn.bb |   21 +++++++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 recipes/cgreen/cgreen.inc
 create mode 100644 recipes/cgreen/cgreen_svn.bb

diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
new file mode 100644
index 0000000..9c71db5
--- /dev/null
+++ b/recipes/cgreen/cgreen.inc
@@ -0,0 +1,15 @@
+DESCRIPTION = "Cgreen is a unit test framework for C language"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+INC_PR = "r0"
+
+BBCLASSEXTEND = "native sdk"
+
+inherit cmake
+
+#FILES_${PN}-dev += "${bindir}/*-config"
+#FILES_${PN}-utils = ""
diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
new file mode 100644
index 0000000..88dad6d
--- /dev/null
+++ b/recipes/cgreen/cgreen_svn.bb
@@ -0,0 +1,21 @@
+require cgreen.inc
+
+SRCREV = "334"
+PR = "${INC_PR}.0"
+
+S = "${WORKDIR}/cgreen"
+
+SRC_URI = "svn://cgreen.svn.sourceforge.net/svnroot/cgreen/trunk;module=cgreen;proto=https"
+
+EXTRA_OECONF = ""
+EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
+
+EXTRA_OECMAKE = ""
+
+OECMAKE_SOURCEPATH = "../cgreen"
+
+PARALLEL_MAKE = ""
+CCACHE = ""
+
+
+
-- 
1.7.0.4


-- 
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br

[-- Attachment #2: 0005-Add-cgreen.-Library-to-do-unit-test-for-C-language.patch --]
[-- Type: text/x-patch, Size: 1486 bytes --]

From cc3aa26deb62774434ae0037dc9bec9237f416d6 Mon Sep 17 00:00:00 2001
From: Joao H. Freitas <joaohf@gmail.com>
Date: Sat, 15 May 2010 15:41:26 -0300
Subject: [PATCH 5/7] Add cgreen. Library to do unit test for C language

---
 recipes/cgreen/cgreen.inc    |   15 +++++++++++++++
 recipes/cgreen/cgreen_svn.bb |   21 +++++++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 recipes/cgreen/cgreen.inc
 create mode 100644 recipes/cgreen/cgreen_svn.bb

diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
new file mode 100644
index 0000000..9c71db5
--- /dev/null
+++ b/recipes/cgreen/cgreen.inc
@@ -0,0 +1,15 @@
+DESCRIPTION = "Cgreen is a unit test framework for C language"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+INC_PR = "r0"
+
+BBCLASSEXTEND = "native sdk"
+
+inherit cmake
+
+#FILES_${PN}-dev += "${bindir}/*-config"
+#FILES_${PN}-utils = ""
diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
new file mode 100644
index 0000000..88dad6d
--- /dev/null
+++ b/recipes/cgreen/cgreen_svn.bb
@@ -0,0 +1,21 @@
+require cgreen.inc
+
+SRCREV = "334"
+PR = "${INC_PR}.0"
+
+S = "${WORKDIR}/cgreen"
+
+SRC_URI = "svn://cgreen.svn.sourceforge.net/svnroot/cgreen/trunk;module=cgreen;proto=https"
+
+EXTRA_OECONF = ""
+EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
+
+EXTRA_OECMAKE = ""
+
+OECMAKE_SOURCEPATH = "../cgreen"
+
+PARALLEL_MAKE = ""
+CCACHE = ""
+
+
+
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Add cgreen. Library to do unit test for C language
  2010-05-16  3:41 [PATCH] Add cgreen. Library to do unit test for C language João Henrique Freitas
@ 2010-05-16  7:39 ` Koen Kooi
  2010-05-16 21:05   ` João Henrique Freitas
  0 siblings, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2010-05-16  7:39 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16-05-10 05:41, João Henrique Freitas wrote:

> +PARALLEL_MAKE = ""
> +CCACHE = ""

Same comment as before, what is so special about cgreen that ccache
doesn't work?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL76EqMkyGM64RGpERAs3AAKCw0zPrgwqxKcq6zrUK7aPZHOXf+QCgrNBH
PyFYNadtwTs34m7vEIHUi8E=
=rKZT
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Add cgreen. Library to do unit test for C language
  2010-05-16  7:39 ` Koen Kooi
@ 2010-05-16 21:05   ` João Henrique Freitas
  2010-05-17 21:40     ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: João Henrique Freitas @ 2010-05-16 21:05 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1024 bytes --]

Nothing special. This was a mistake.

---
 recipes/cgreen/cgreen.inc    |    2 --
 recipes/cgreen/cgreen_svn.bb |    6 ------
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
index 9c71db5..eb3307e 100644
--- a/recipes/cgreen/cgreen.inc
+++ b/recipes/cgreen/cgreen.inc
@@ -11,5 +11,3 @@ BBCLASSEXTEND = "native sdk"

 inherit cmake

-#FILES_${PN}-dev += "${bindir}/*-config"
-#FILES_${PN}-utils = ""
diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
index 88dad6d..65f2f34 100644
--- a/recipes/cgreen/cgreen_svn.bb
+++ b/recipes/cgreen/cgreen_svn.bb
@@ -13,9 +13,3 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
 EXTRA_OECMAKE = ""

 OECMAKE_SOURCEPATH = "../cgreen"
-
-PARALLEL_MAKE = ""
-CCACHE = ""
-
-
-
-- 
1.7.0.4


-- 
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br

[-- Attachment #2: 0008-Remove-mistake-configs.patch --]
[-- Type: text/x-diff, Size: 969 bytes --]

From ec5f835f78bd4cfee7da3202ce075b2c6db3f5c2 Mon Sep 17 00:00:00 2001
From: Joao H. Freitas <joaohf@gmail.com>
Date: Sun, 16 May 2010 18:00:34 -0300
Subject: [PATCH v2 8/9] Remove mistake configs

---
 recipes/cgreen/cgreen.inc    |    2 --
 recipes/cgreen/cgreen_svn.bb |    6 ------
 2 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
index 9c71db5..eb3307e 100644
--- a/recipes/cgreen/cgreen.inc
+++ b/recipes/cgreen/cgreen.inc
@@ -11,5 +11,3 @@ BBCLASSEXTEND = "native sdk"
 
 inherit cmake
 
-#FILES_${PN}-dev += "${bindir}/*-config"
-#FILES_${PN}-utils = ""
diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
index 88dad6d..65f2f34 100644
--- a/recipes/cgreen/cgreen_svn.bb
+++ b/recipes/cgreen/cgreen_svn.bb
@@ -13,9 +13,3 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
 EXTRA_OECMAKE = ""
 
 OECMAKE_SOURCEPATH = "../cgreen"
-
-PARALLEL_MAKE = ""
-CCACHE = ""
-
-
-
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Add cgreen. Library to do unit test for C language
  2010-05-16 21:05   ` João Henrique Freitas
@ 2010-05-17 21:40     ` Khem Raj
  2010-05-23 18:49       ` João Henrique Freitas
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2010-05-17 21:40 UTC (permalink / raw)
  To: openembedded-devel

On (16/05/10 18:05), João Henrique Freitas wrote:
> Nothing special. This was a mistake.

instead of incremental change can you reply to your previous patch with
complete patch which includes this change as well. 

-Khem
> 
> ---
>  recipes/cgreen/cgreen.inc    |    2 --
>  recipes/cgreen/cgreen_svn.bb |    6 ------
>  2 files changed, 0 insertions(+), 8 deletions(-)
> 
> diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
> index 9c71db5..eb3307e 100644
> --- a/recipes/cgreen/cgreen.inc
> +++ b/recipes/cgreen/cgreen.inc
> @@ -11,5 +11,3 @@ BBCLASSEXTEND = "native sdk"
> 
>  inherit cmake
> 
> -#FILES_${PN}-dev += "${bindir}/*-config"
> -#FILES_${PN}-utils = ""
> diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
> index 88dad6d..65f2f34 100644
> --- a/recipes/cgreen/cgreen_svn.bb
> +++ b/recipes/cgreen/cgreen_svn.bb
> @@ -13,9 +13,3 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
>  EXTRA_OECMAKE = ""
> 
>  OECMAKE_SOURCEPATH = "../cgreen"
> -
> -PARALLEL_MAKE = ""
> -CCACHE = ""
> -
> -
> -
> -- 
> 1.7.0.4
> 
> 
> -- 
> -----------------------------------------------------------
> João Henrique Freitas - joaohf_at_gmail.com
> Campinas-SP-Brasil
> BSD051283
> LPI 1
> http://www.joaohfreitas.eti.br

> From ec5f835f78bd4cfee7da3202ce075b2c6db3f5c2 Mon Sep 17 00:00:00 2001
> From: Joao H. Freitas <joaohf@gmail.com>
> Date: Sun, 16 May 2010 18:00:34 -0300
> Subject: [PATCH v2 8/9] Remove mistake configs
> 
> ---
>  recipes/cgreen/cgreen.inc    |    2 --
>  recipes/cgreen/cgreen_svn.bb |    6 ------
>  2 files changed, 0 insertions(+), 8 deletions(-)
> 
> diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
> index 9c71db5..eb3307e 100644
> --- a/recipes/cgreen/cgreen.inc
> +++ b/recipes/cgreen/cgreen.inc
> @@ -11,5 +11,3 @@ BBCLASSEXTEND = "native sdk"
>  
>  inherit cmake
>  
> -#FILES_${PN}-dev += "${bindir}/*-config"
> -#FILES_${PN}-utils = ""
> diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
> index 88dad6d..65f2f34 100644
> --- a/recipes/cgreen/cgreen_svn.bb
> +++ b/recipes/cgreen/cgreen_svn.bb
> @@ -13,9 +13,3 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
>  EXTRA_OECMAKE = ""
>  
>  OECMAKE_SOURCEPATH = "../cgreen"
> -
> -PARALLEL_MAKE = ""
> -CCACHE = ""
> -
> -
> -
> -- 
> 1.7.0.4
> 

> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Add cgreen. Library to do unit test for C language
  2010-05-17 21:40     ` Khem Raj
@ 2010-05-23 18:49       ` João Henrique Freitas
  2010-05-26 20:04         ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: João Henrique Freitas @ 2010-05-23 18:49 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 3203 bytes --]

Hi,

Attached a unique patch.

Thanks

On Mon, May 17, 2010 at 6:40 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On (16/05/10 18:05), João Henrique Freitas wrote:
>> Nothing special. This was a mistake.
>
> instead of incremental change can you reply to your previous patch with
> complete patch which includes this change as well.
>
> -Khem
>>
>> ---
>>  recipes/cgreen/cgreen.inc    |    2 --
>>  recipes/cgreen/cgreen_svn.bb |    6 ------
>>  2 files changed, 0 insertions(+), 8 deletions(-)
>>
>> diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
>> index 9c71db5..eb3307e 100644
>> --- a/recipes/cgreen/cgreen.inc
>> +++ b/recipes/cgreen/cgreen.inc
>> @@ -11,5 +11,3 @@ BBCLASSEXTEND = "native sdk"
>>
>>  inherit cmake
>>
>> -#FILES_${PN}-dev += "${bindir}/*-config"
>> -#FILES_${PN}-utils = ""
>> diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
>> index 88dad6d..65f2f34 100644
>> --- a/recipes/cgreen/cgreen_svn.bb
>> +++ b/recipes/cgreen/cgreen_svn.bb
>> @@ -13,9 +13,3 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
>>  EXTRA_OECMAKE = ""
>>
>>  OECMAKE_SOURCEPATH = "../cgreen"
>> -
>> -PARALLEL_MAKE = ""
>> -CCACHE = ""
>> -
>> -
>> -
>> --
>> 1.7.0.4
>>
>>
>> --
>> -----------------------------------------------------------
>> João Henrique Freitas - joaohf_at_gmail.com
>> Campinas-SP-Brasil
>> BSD051283
>> LPI 1
>> http://www.joaohfreitas.eti.br
>
>> From ec5f835f78bd4cfee7da3202ce075b2c6db3f5c2 Mon Sep 17 00:00:00 2001
>> From: Joao H. Freitas <joaohf@gmail.com>
>> Date: Sun, 16 May 2010 18:00:34 -0300
>> Subject: [PATCH v2 8/9] Remove mistake configs
>>
>> ---
>>  recipes/cgreen/cgreen.inc    |    2 --
>>  recipes/cgreen/cgreen_svn.bb |    6 ------
>>  2 files changed, 0 insertions(+), 8 deletions(-)
>>
>> diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
>> index 9c71db5..eb3307e 100644
>> --- a/recipes/cgreen/cgreen.inc
>> +++ b/recipes/cgreen/cgreen.inc
>> @@ -11,5 +11,3 @@ BBCLASSEXTEND = "native sdk"
>>
>>  inherit cmake
>>
>> -#FILES_${PN}-dev += "${bindir}/*-config"
>> -#FILES_${PN}-utils = ""
>> diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
>> index 88dad6d..65f2f34 100644
>> --- a/recipes/cgreen/cgreen_svn.bb
>> +++ b/recipes/cgreen/cgreen_svn.bb
>> @@ -13,9 +13,3 @@ EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
>>  EXTRA_OECMAKE = ""
>>
>>  OECMAKE_SOURCEPATH = "../cgreen"
>> -
>> -PARALLEL_MAKE = ""
>> -CCACHE = ""
>> -
>> -
>> -
>> --
>> 1.7.0.4
>>
>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



-- 
-----------------------------------------------------------
João Henrique Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil
BSD051283
LPI 1
http://www.joaohfreitas.eti.br

[-- Attachment #2: cgreen.patch --]
[-- Type: text/x-diff, Size: 904 bytes --]

diff --git a/recipes/cgreen/cgreen.inc b/recipes/cgreen/cgreen.inc
new file mode 100644
index 0000000..8789375
--- /dev/null
+++ b/recipes/cgreen/cgreen.inc
@@ -0,0 +1,14 @@
+DESCRIPTION = "Cgreen is a unit test framework for C language"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+DEPENDS = "flex-native"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+INC_PR = "r0"
+
+BBCLASSEXTEND = "native sdk"
+
+inherit cmake
+
diff --git a/recipes/cgreen/cgreen_svn.bb b/recipes/cgreen/cgreen_svn.bb
new file mode 100644
index 0000000..65f2f34
--- /dev/null
+++ b/recipes/cgreen/cgreen_svn.bb
@@ -0,0 +1,15 @@
+require cgreen.inc
+
+SRCREV = "334"
+PR = "${INC_PR}.0"
+
+S = "${WORKDIR}/cgreen"
+
+SRC_URI = "svn://cgreen.svn.sourceforge.net/svnroot/cgreen/trunk;module=cgreen;proto=https"
+
+EXTRA_OECONF = ""
+EXTRA_OEMAKE = "INSTALL_PREFIX=${D}"
+
+EXTRA_OECMAKE = ""
+
+OECMAKE_SOURCEPATH = "../cgreen"

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Add cgreen. Library to do unit test for C language
  2010-05-23 18:49       ` João Henrique Freitas
@ 2010-05-26 20:04         ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2010-05-26 20:04 UTC (permalink / raw)
  To: openembedded-devel

On (23/05/10 15:49), João Henrique Freitas wrote:
> Hi,
> 
> Attached a unique patch.

You could have used git send-email to send your patches. I could not pull
them from patchwork or mbox verbatim. Anyway after applying bitbake cgreen
and it ends up like below

RROR: Function do_configure failed
NOTE: Task failed: ('function do_configure failed',
'/scratch/oe/work/armv5te-oe-linux-gnueabi/cgreen-svn-r0.0/temp/log.do_configure.29618')
ERROR: Logfile of failure stored in:
/scratch/oe/work/armv5te-oe-linux-gnueabi/cgreen-svn-r0.0/temp/log.do_configure.29618
Log data follows:
| -- The C compiler identification is GNU
| -- Check for working C compiler:
/scratch/oe/cross/armv5te/bin/arm-oe-linux-gnueabi-gcc
| -- Check for working C compiler:
/scratch/oe/cross/armv5te/bin/arm-oe-linux-gnueabi-gcc -- works
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Performing Test WITH_FPIC
| -- Performing Test WITH_FPIC - Success
| -- Performing Test WITH_STACK_PROTECTOR
| -- Performing Test WITH_STACK_PROTECTOR - Success
| -- Performing Test WITH_FORTIFY_SOURCE
| -- Performing Test WITH_FORTIFY_SOURCE - Success
| -- FLEX was not found.
| -- Configuring done
| CMake Error in src/CMakeLists.txt:
|   Cannot find source file "collector.c".  Tried extensions .c .C .c++ .cc
|   .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
| 


it could not find FLEX.

Thx
-Khem



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-26 20:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-16  3:41 [PATCH] Add cgreen. Library to do unit test for C language João Henrique Freitas
2010-05-16  7:39 ` Koen Kooi
2010-05-16 21:05   ` João Henrique Freitas
2010-05-17 21:40     ` Khem Raj
2010-05-23 18:49       ` João Henrique Freitas
2010-05-26 20:04         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.