diff options
-rw-r--r-- | meta-oe/conf/include/ptest-packagelists-meta-oe.inc | 1 | ||||
-rw-r--r-- | meta-oe/recipes-extended/pegtl/pegtl/run-ptest | 23 | ||||
-rw-r--r-- | meta-oe/recipes-extended/pegtl/pegtl_3.2.7.bb | 15 |
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 | |||
3 | fail_count=0 | ||
4 | all_count=0 | ||
5 | |||
6 | for test_suite in src/test/pegtl/pegtl-test-* | ||
7 | do | ||
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)) | ||
16 | done | ||
17 | |||
18 | if [ $fail_count -eq 0 ] | ||
19 | then | ||
20 | echo "PASS: All $all_count tests passed" | ||
21 | else | ||
22 | echo "FAIL: $fail_count of $all_count tests failed" | ||
23 | fi | ||
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" | |||
3 | LICENSE="MIT" | 3 | LICENSE="MIT" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dccf35ef30bf912bb07b01d469965293" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=dccf35ef30bf912bb07b01d469965293" |
5 | 5 | ||
6 | SRC_URI = "git://github.com/taocpp/PEGTL.git;protocol=https;branch=3.x" | 6 | SRC_URI = " \ |
7 | git://github.com/taocpp/PEGTL.git;protocol=https;branch=3.x \ | ||
8 | file://run-ptest \ | ||
9 | " | ||
10 | |||
7 | SRCREV = "cf639f7f4ee125f68e1ccfba8d99ebc0de57b9fe" | 11 | SRCREV = "cf639f7f4ee125f68e1ccfba8d99ebc0de57b9fe" |
8 | 12 | ||
9 | inherit cmake | 13 | inherit cmake ptest |
10 | 14 | ||
11 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
12 | 16 | ||
17 | do_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 | |||
13 | CXXFLAGS += " -Wno-error=type-limits" | 24 | CXXFLAGS += " -Wno-error=type-limits" |