All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libvirt: Add missing test helpers and remove windows 1252
@ 2016-09-05  6:52 zhe.he
  2016-09-06 13:36 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: zhe.he @ 2016-09-05  6:52 UTC (permalink / raw)
  To: meta-virtualization

From: He Zhe <zhe.he@windriver.com>

Add missing test helpers
We don't support windows encoding so remove that case

Signed-off-by: He Zhe <zhe.he@windriver.com>
---
 ...move-Windows-1252-check-from-esxutilstest.patch | 28 +++++++++++++++++++++
 .../0001-ptest-add-missing-test_helper-files.patch | 29 ++++++++++++++++++++++
 recipes-extended/libvirt/libvirt_1.3.5.bb          |  2 ++
 3 files changed, 59 insertions(+)
 create mode 100644 recipes-extended/libvirt/libvirt/0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch
 create mode 100644 recipes-extended/libvirt/libvirt/0001-ptest-add-missing-test_helper-files.patch

diff --git a/recipes-extended/libvirt/libvirt/0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch b/recipes-extended/libvirt/libvirt/0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch
new file mode 100644
index 0000000..217bdbc
--- /dev/null
+++ b/recipes-extended/libvirt/libvirt/0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch
@@ -0,0 +1,28 @@
+From ffc71da15c3da068f85d16617b6e0c0175fc0110 Mon Sep 17 00:00:00 2001
+From: He Zhe <zhe.he@windriver.com>
+Date: Tue, 23 Aug 2016 02:28:47 -0400
+Subject: [PATCH] ptest: Remove Windows-1252 check from esxutilstest
+
+Currently we use iconv from glibc-locale and it does not support
+Windows-1252 and we don't need support windows character encoding.
+
+Signed-off-by: He Zhe <zhe.he@windriver.com>
+---
+ tests/esxutilstest.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/tests/esxutilstest.c b/tests/esxutilstest.c
+index 44bdc84..3223de3 100644
+--- a/tests/esxutilstest.c
++++ b/tests/esxutilstest.c
+@@ -258,7 +258,6 @@ mymain(void)
+     DO_TEST(ParseDatastorePath);
+     DO_TEST(ConvertDateTimeToCalendarTime);
+     DO_TEST(EscapeDatastoreItem);
+-    DO_TEST(ConvertWindows1252ToUTF8);
+ 
+     return result == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
+ }
+-- 
+2.8.1
+
diff --git a/recipes-extended/libvirt/libvirt/0001-ptest-add-missing-test_helper-files.patch b/recipes-extended/libvirt/libvirt/0001-ptest-add-missing-test_helper-files.patch
new file mode 100644
index 0000000..b4f1e27
--- /dev/null
+++ b/recipes-extended/libvirt/libvirt/0001-ptest-add-missing-test_helper-files.patch
@@ -0,0 +1,29 @@
+From e625a42caca492fe7d52b70bbbf83ae4d99cb15e Mon Sep 17 00:00:00 2001
+From: He Zhe <zhe.he@windriver.com>
+Date: Tue, 23 Aug 2016 02:16:20 -0400
+Subject: [PATCH] ptest: add missing test_helper files
+
+Signed-off-by: He Zhe <zhe.he@windriver.com>
+---
+ tests/Makefile.am | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 1c85656..2f8b9eb 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -1422,8 +1422,10 @@ install-ptest:
+ 	@(for file in $(PTESTS); do \
+ 		if [ -f .libs/$$file ]; then \
+ 			install .libs/$$file $(DEST_DIR)/tests; \
+-		else \
++		elif [ -f $(srcdir)/$$file ]; then \
+ 			install $(srcdir)/$$file $(DEST_DIR)/tests; \
++		else \
++			install $(builddir)/$$file $(DEST_DIR)/tests; \
+ 		fi; \
+ 	done;)
+ 	@(if [ -d .libs ]; then install .libs/*.so $(DEST_DIR)/tests/.libs; fi;)
+-- 
+2.8.1
+
diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb
index 7271ebe..3eff58d 100644
--- a/recipes-extended/libvirt/libvirt_1.3.5.bb
+++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
@@ -35,6 +35,8 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.gz;name=libvirt \
            file://install-missing-file.patch \
            file://0001-nsslinktest-also-build-virAtomic.h.patch \
            file://0001-qemu-Let-empty-default-VNC-password-work-as-document.patch \
+           file://0001-ptest-add-missing-test_helper-files.patch \
+           file://0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch \
           "
 
 SRC_URI[libvirt.md5sum] = "f9dc1e63d559eca50ae0ee798a4c6c6d"
-- 
2.8.3



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

* Re: [PATCH] libvirt: Add missing test helpers and remove windows 1252
  2016-09-05  6:52 [PATCH] libvirt: Add missing test helpers and remove windows 1252 zhe.he
@ 2016-09-06 13:36 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2016-09-06 13:36 UTC (permalink / raw)
  To: He Zhe; +Cc: meta-virtualization

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

merged.

Bruce

On Mon, Sep 5, 2016 at 2:52 AM, <zhe.he@windriver.com> wrote:

> From: He Zhe <zhe.he@windriver.com>
>
> Add missing test helpers
> We don't support windows encoding so remove that case
>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
>  ...move-Windows-1252-check-from-esxutilstest.patch | 28
> +++++++++++++++++++++
>  .../0001-ptest-add-missing-test_helper-files.patch | 29
> ++++++++++++++++++++++
>  recipes-extended/libvirt/libvirt_1.3.5.bb          |  2 ++
>  3 files changed, 59 insertions(+)
>  create mode 100644 recipes-extended/libvirt/libvirt/0001-ptest-Remove-
> Windows-1252-check-from-esxutilstest.patch
>  create mode 100644 recipes-extended/libvirt/libvirt/0001-ptest-add-
> missing-test_helper-files.patch
>
> diff --git a/recipes-extended/libvirt/libvirt/0001-ptest-Remove-
> Windows-1252-check-from-esxutilstest.patch b/recipes-extended/libvirt/
> libvirt/0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch
> new file mode 100644
> index 0000000..217bdbc
> --- /dev/null
> +++ b/recipes-extended/libvirt/libvirt/0001-ptest-Remove-
> Windows-1252-check-from-esxutilstest.patch
> @@ -0,0 +1,28 @@
> +From ffc71da15c3da068f85d16617b6e0c0175fc0110 Mon Sep 17 00:00:00 2001
> +From: He Zhe <zhe.he@windriver.com>
> +Date: Tue, 23 Aug 2016 02:28:47 -0400
> +Subject: [PATCH] ptest: Remove Windows-1252 check from esxutilstest
> +
> +Currently we use iconv from glibc-locale and it does not support
> +Windows-1252 and we don't need support windows character encoding.
> +
> +Signed-off-by: He Zhe <zhe.he@windriver.com>
> +---
> + tests/esxutilstest.c | 1 -
> + 1 file changed, 1 deletion(-)
> +
> +diff --git a/tests/esxutilstest.c b/tests/esxutilstest.c
> +index 44bdc84..3223de3 100644
> +--- a/tests/esxutilstest.c
> ++++ b/tests/esxutilstest.c
> +@@ -258,7 +258,6 @@ mymain(void)
> +     DO_TEST(ParseDatastorePath);
> +     DO_TEST(ConvertDateTimeToCalendarTime);
> +     DO_TEST(EscapeDatastoreItem);
> +-    DO_TEST(ConvertWindows1252ToUTF8);
> +
> +     return result == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
> + }
> +--
> +2.8.1
> +
> diff --git a/recipes-extended/libvirt/libvirt/0001-ptest-add-
> missing-test_helper-files.patch b/recipes-extended/libvirt/
> libvirt/0001-ptest-add-missing-test_helper-files.patch
> new file mode 100644
> index 0000000..b4f1e27
> --- /dev/null
> +++ b/recipes-extended/libvirt/libvirt/0001-ptest-add-
> missing-test_helper-files.patch
> @@ -0,0 +1,29 @@
> +From e625a42caca492fe7d52b70bbbf83ae4d99cb15e Mon Sep 17 00:00:00 2001
> +From: He Zhe <zhe.he@windriver.com>
> +Date: Tue, 23 Aug 2016 02:16:20 -0400
> +Subject: [PATCH] ptest: add missing test_helper files
> +
> +Signed-off-by: He Zhe <zhe.he@windriver.com>
> +---
> + tests/Makefile.am | 4 +++-
> + 1 file changed, 3 insertions(+), 1 deletion(-)
> +
> +diff --git a/tests/Makefile.am b/tests/Makefile.am
> +index 1c85656..2f8b9eb 100644
> +--- a/tests/Makefile.am
> ++++ b/tests/Makefile.am
> +@@ -1422,8 +1422,10 @@ install-ptest:
> +       @(for file in $(PTESTS); do \
> +               if [ -f .libs/$$file ]; then \
> +                       install .libs/$$file $(DEST_DIR)/tests; \
> +-              else \
> ++              elif [ -f $(srcdir)/$$file ]; then \
> +                       install $(srcdir)/$$file $(DEST_DIR)/tests; \
> ++              else \
> ++                      install $(builddir)/$$file $(DEST_DIR)/tests; \
> +               fi; \
> +       done;)
> +       @(if [ -d .libs ]; then install .libs/*.so
> $(DEST_DIR)/tests/.libs; fi;)
> +--
> +2.8.1
> +
> diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb
> b/recipes-extended/libvirt/libvirt_1.3.5.bb
> index 7271ebe..3eff58d 100644
> --- a/recipes-extended/libvirt/libvirt_1.3.5.bb
> +++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
> @@ -35,6 +35,8 @@ SRC_URI = "http://libvirt.org/sources/
> libvirt-${PV}.tar.gz;name=libvirt \
>             file://install-missing-file.patch \
>             file://0001-nsslinktest-also-build-virAtomic.h.patch \
>             file://0001-qemu-Let-empty-default-VNC-password-work-as-document.patch
> \
> +           file://0001-ptest-add-missing-test_helper-files.patch \
> +           file://0001-ptest-Remove-Windows-1252-check-from-esxutilstest.patch
> \
>            "
>
>  SRC_URI[libvirt.md5sum] = "f9dc1e63d559eca50ae0ee798a4c6c6d"
> --
> 2.8.3
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 6706 bytes --]

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

end of thread, other threads:[~2016-09-06 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-05  6:52 [PATCH] libvirt: Add missing test helpers and remove windows 1252 zhe.he
2016-09-06 13:36 ` Bruce Ashfield

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.