summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/expat
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-05-13 22:56:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-14 07:57:27 +0100
commit6f8cc237bf3f252802904fc732aaf4e8f6c123b4 (patch)
tree794b8d3dae1b2e5aa0feef1b89e5e75294d05cea /meta/recipes-core/expat
parente63fd638d32a792eede20a8ca26cebfabb4fdd96 (diff)
downloadpoky-6f8cc237bf3f252802904fc732aaf4e8f6c123b4.tar.gz
expat: upgrade 2.2.10 -> 2.3.0
Drop 0001-Add-output-of-tests-result.patch (difficult to rebase). I have verified that ptests still pass, and print PASS for every test. If they start failing we can revisit what kind of output would be beneficial. (From OE-Core rev: ef1a76f9c130e7efaecae15ccb1d48a03fa17b9b) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/expat')
-rw-r--r--meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch83
-rw-r--r--meta/recipes-core/expat/expat/run-ptest4
-rw-r--r--meta/recipes-core/expat/expat_2.3.0.bb (renamed from meta/recipes-core/expat/expat_2.2.10.bb)7
3 files changed, 5 insertions, 89 deletions
diff --git a/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch b/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
deleted file mode 100644
index c5c18ead74..0000000000
--- a/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
+++ /dev/null
@@ -1,83 +0,0 @@
1From aa84835a00bfd65e784d58411e76f60658e939dc Mon Sep 17 00:00:00 2001
2From: Oleksandr Popovych <oleksandr.s.popovych@globallogic.com>
3Date: Tue, 18 Feb 2020 19:04:55 +0200
4Subject: [PATCH] Add output of tests result
5
6Added console output of testing results in form 'RESULT: TEST_NAME'.
7
8Changed verbose mode of test application set by '-v' ('--verbose')
9argument to CK_NORMAL.
10Added new supported argument '-vv' ('--extra-verbose') that changes
11verbose mode of test application to CK_VERBOSE. Results of each test
12are shown in output only if this mode is set.
13
14Upstream-Status: Denied
15
16This patch changes potentially deprecated feature that shoud be changed
17in upstream. [https://github.com/libexpat/libexpat/issues/382]
18
19Signed-off-by: Oleksandr Popovych <oleksandr.s.popovych@globallogic.com>
20---
21 tests/minicheck.c | 10 +++++++++-
22 tests/runtests.c | 4 +++-
23 2 files changed, 12 insertions(+), 2 deletions(-)
24
25diff --git a/expat/tests/minicheck.c b/expat/tests/minicheck.c
26index a5a1efb..94fa412 100644
27--- a/tests/minicheck.c
28+++ b/tests/minicheck.c
29@@ -164,6 +164,8 @@ srunner_run_all(SRunner *runner, int verbosity) {
30 if (tc->setup != NULL) {
31 /* setup */
32 if (setjmp(env)) {
33+ if (verbosity >= CK_VERBOSE)
34+ printf("SKIP: %s\n", _check_current_function);
35 add_failure(runner, verbosity);
36 continue;
37 }
38@@ -171,6 +173,8 @@ srunner_run_all(SRunner *runner, int verbosity) {
39 }
40 /* test */
41 if (setjmp(env)) {
42+ if (verbosity >= CK_VERBOSE)
43+ printf("FAIL: %s\n", _check_current_function);
44 add_failure(runner, verbosity);
45 continue;
46 }
47@@ -178,12 +182,16 @@ srunner_run_all(SRunner *runner, int verbosity) {
48
49 /* teardown */
50 if (tc->teardown != NULL) {
51- if (setjmp(env)) {
52+ if (setjmp(env)) {
53+ if (verbosity >= CK_VERBOSE)
54+ printf("PASS: %s\n", _check_current_function);
55 add_failure(runner, verbosity);
56 continue;
57 }
58 tc->teardown();
59 }
60+ if (verbosity >= CK_VERBOSE)
61+ printf("PASS: %s\n", _check_current_function);
62 }
63 tc = tc->next_tcase;
64 }
65diff --git a/tests/runtests.c b/expat/tests/runtests.c
66index 7791fe0..75724e5 100644
67--- a/tests/runtests.c
68+++ b/tests/runtests.c
69@@ -11619,9 +11619,11 @@ main(int argc, char *argv[]) {
70 for (i = 1; i < argc; ++i) {
71 char *opt = argv[i];
72 if (strcmp(opt, "-v") == 0 || strcmp(opt, "--verbose") == 0)
73- verbosity = CK_VERBOSE;
74+ verbosity = CK_NORMAL;
75 else if (strcmp(opt, "-q") == 0 || strcmp(opt, "--quiet") == 0)
76 verbosity = CK_SILENT;
77+ else if (strcmp(opt, "-vv") == 0 || strcmp(opt, "--extra-verbose") == 0)
78+ verbosity = CK_VERBOSE;
79 else {
80 fprintf(stderr, "runtests: unknown option '%s'\n", opt);
81 return 2;
82--
832.17.1
diff --git a/meta/recipes-core/expat/expat/run-ptest b/meta/recipes-core/expat/expat/run-ptest
index 1b39cec8e5..59d8ab57e3 100644
--- a/meta/recipes-core/expat/expat/run-ptest
+++ b/meta/recipes-core/expat/expat/run-ptest
@@ -18,6 +18,6 @@ TIME=$(which time)
18 18
19echo "Architecture: $(uname -m)" > ${output} 19echo "Architecture: $(uname -m)" > ${output}
20echo "Image: $(uname -sr)" >> ${output} 20echo "Image: $(uname -sr)" >> ${output}
21${TIME} -f 'Execution time: %e s' bash -c "testCheck runtests -vv" |& tee -a ${output} 21${TIME} -f 'Execution time: %e s' bash -c "testCheck runtests -v" |& tee -a ${output}
22${TIME} -f 'Execution time: %e s' bash -c "testCheck runtestspp -vv" |& tee -a ${output} 22${TIME} -f 'Execution time: %e s' bash -c "testCheck runtestspp -v" |& tee -a ${output}
23echo 23echo
diff --git a/meta/recipes-core/expat/expat_2.2.10.bb b/meta/recipes-core/expat/expat_2.3.0.bb
index fa263775b3..14d2855df3 100644
--- a/meta/recipes-core/expat/expat_2.2.10.bb
+++ b/meta/recipes-core/expat/expat_2.3.0.bb
@@ -8,11 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9e2ce3b3c4c0f2670883a23bbd7c37a9"
8 8
9SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \ 9SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \
10 file://libtool-tag.patch \ 10 file://libtool-tag.patch \
11 file://run-ptest \ 11 file://run-ptest \
12 file://0001-Add-output-of-tests-result.patch \ 12 "
13 "
14 13
15SRC_URI[sha256sum] = "b2c160f1b60e92da69de8e12333096aeb0c3bf692d41c60794de278af72135a5" 14SRC_URI[sha256sum] = "f122a20eada303f904d5e0513326c5b821248f2d4d2afbf5c6f1339e511c0586"
16 15
17EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF" 16EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF"
18 17