summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nlohmann-json/files/run-ptest
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2023-11-10 19:52:40 +0800
committerKhem Raj <raj.khem@gmail.com>2023-11-10 09:13:40 -0800
commit013b4d50432a3eba08a9cb54b9edf6b25a6378a8 (patch)
tree588cd7f66076ecc80c29adcd8bddf7ade8759944 /meta-oe/recipes-devtools/nlohmann-json/files/run-ptest
parente76ffb220aceac16bee1928bd3739a347414ccee (diff)
downloadmeta-openembedded-013b4d50432a3eba08a9cb54b9edf6b25a6378a8.tar.gz
nlohmann-json: Add ptest support
* Backport 2 patches [1] [2] to fix the build failure under tests dir. * Fetch the test data during do_fetch phase to avoid internet access during test as some tests need test data. # ./run-ptest PASS: test-algorithms_cpp11 PASS: test-allocator_cpp11 PASS: test-alt-string_cpp11 PASS: test-assert_macro_cpp11 PASS: test-binary_formats_cpp11 [snip] PASS: test-unicode5_cpp11 PASS: test-user_defined_input_cpp11 PASS: test-windows_h_cpp11 PASS: test-wstring_cpp11 [1] https://github.com/nlohmann/json/commit/6cec5aefc97ad219b6fd5a4132f88f7c8f6800ee [2] https://github.com/nlohmann/json/commit/660d0b58565073975d6f5d94365d6cbf150a4cf8 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nlohmann-json/files/run-ptest')
-rwxr-xr-xmeta-oe/recipes-devtools/nlohmann-json/files/run-ptest12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nlohmann-json/files/run-ptest b/meta-oe/recipes-devtools/nlohmann-json/files/run-ptest
new file mode 100755
index 0000000000..2f00267d50
--- /dev/null
+++ b/meta-oe/recipes-devtools/nlohmann-json/files/run-ptest
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3cd tests
4for atest in test-* ; do
5 rm -rf tests.log
6 ./${atest} > tests.log 2>&1
7 if [ $? = 0 ] ; then
8 echo "PASS: ${atest}"
9 else
10 echo "FAIL: ${atest}"
11 fi
12done