summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/conf/include/ptest-packagelists-meta-oe.inc1
-rw-r--r--meta-oe/recipes-extended/pegtl/pegtl/run-ptest23
-rw-r--r--meta-oe/recipes-extended/pegtl/pegtl_3.2.7.bb15
3 files changed, 37 insertions, 2 deletions
diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
index 01bf975a15..0ea43f5972 100644
--- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
+++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc
@@ -33,6 +33,7 @@ PTESTS_FAST_META_OE = "\
33 nodejs \ 33 nodejs \
34 onig \ 34 onig \
35 oprofile \ 35 oprofile \
36 pegtl \
36 protobuf \ 37 protobuf \
37 pv \ 38 pv \
38 python3-pefile \ 39 python3-pefile \
diff --git a/meta-oe/recipes-extended/pegtl/pegtl/run-ptest b/meta-oe/recipes-extended/pegtl/pegtl/run-ptest
new file mode 100644
index 0000000000..e819628c9f
--- /dev/null
+++ b/meta-oe/recipes-extended/pegtl/pegtl/run-ptest
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3fail_count=0
4all_count=0
5
6for test_suite in src/test/pegtl/pegtl-test-*
7do
8 if "./$test_suite"
9 then
10 echo "PASS: $test_suite"
11 else
12 echo "FAIL: $test_suite"
13 fail_count=$((fail_count + 1))
14 fi
15 all_count=$((all_count + 1))
16done
17
18if [ $fail_count -eq 0 ]
19then
20 echo "PASS: All $all_count tests passed"
21else
22 echo "FAIL: $fail_count of $all_count tests failed"
23fi
diff --git a/meta-oe/recipes-extended/pegtl/pegtl_3.2.7.bb b/meta-oe/recipes-extended/pegtl/pegtl_3.2.7.bb
index 237828dbfc..2e32e3e788 100644
--- a/meta-oe/recipes-extended/pegtl/pegtl_3.2.7.bb
+++ b/meta-oe/recipes-extended/pegtl/pegtl_3.2.7.bb
@@ -3,11 +3,22 @@ HOMEPAGE="https://github.com/taocpp/PEGTL"
3LICENSE="MIT" 3LICENSE="MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=dccf35ef30bf912bb07b01d469965293" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=dccf35ef30bf912bb07b01d469965293"
5 5
6SRC_URI = "git://github.com/taocpp/PEGTL.git;protocol=https;branch=3.x" 6SRC_URI = " \
7 git://github.com/taocpp/PEGTL.git;protocol=https;branch=3.x \
8 file://run-ptest \
9"
10
7SRCREV = "cf639f7f4ee125f68e1ccfba8d99ebc0de57b9fe" 11SRCREV = "cf639f7f4ee125f68e1ccfba8d99ebc0de57b9fe"
8 12
9inherit cmake 13inherit cmake ptest
10 14
11S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
12 16
17do_install_ptest () {
18 install -d ${D}${PTEST_PATH}/src/test/pegtl/data
19 install -m 0755 ${B}/src/test/pegtl/pegtl-test-* ${D}${PTEST_PATH}/src/test/pegtl
20 install ${S}/src/test/pegtl/file_*.txt ${D}${PTEST_PATH}/src/test/pegtl
21 install ${S}/src/test/pegtl/data/*.json ${D}${PTEST_PATH}/src/test/pegtl/data
22}
23
13CXXFLAGS += " -Wno-error=type-limits" 24CXXFLAGS += " -Wno-error=type-limits"