summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2021-08-13 08:44:54 +0800
committerKhem Raj <raj.khem@gmail.com>2021-08-12 17:56:01 -0700
commit71c5cc44c72d6862618a89895290628b2840cbe2 (patch)
tree216d8ed1c88dc9c39c8f5d7c2851f764ab07b832 /meta-oe
parent344bb081f5c97878434fa2f6d93072dbfa577b6f (diff)
downloadmeta-openembedded-71c5cc44c72d6862618a89895290628b2840cbe2.tar.gz
jemalloc: improve the ptest output
Previouly we only show the output of each text program, actually each test program includes serveral test cases. Improve the ptest script to show the output of each test case. Before: # ./run-ptest [snip] PASS: tests/integration/MALLOCX_ARENA PASS: tests/integration/aligned_alloc [snip] After: # ./run-ptest [snip] PASS: test_MALLOCX_ARENA (non-reentrant) PASS: test_MALLOCX_ARENA (libc-reentrant) PASS: test_MALLOCX_ARENA (arena_new-reentrant) PASS: test_alignment_errors (non-reentrant) PASS: test_alignment_errors (libc-reentrant) PASS: test_alignment_errors (arena_new-reentrant) PASS: test_oom_errors (non-reentrant) PASS: test_oom_errors (libc-reentrant) PASS: test_oom_errors (arena_new-reentrant) PASS: test_alignment_and_size (non-reentrant) PASS: test_alignment_and_size (libc-reentrant) PASS: test_alignment_and_size (arena_new-reentrant) PASS: test_zero_alloc (non-reentrant) PASS: test_zero_alloc (libc-reentrant) PASS: test_zero_alloc (arena_new-reentrant) [snip] Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-devtools/jemalloc/files/run-ptest16
1 files changed, 9 insertions, 7 deletions
diff --git a/meta-oe/recipes-devtools/jemalloc/files/run-ptest b/meta-oe/recipes-devtools/jemalloc/files/run-ptest
index ea9d80cbb..b351f947e 100644
--- a/meta-oe/recipes-devtools/jemalloc/files/run-ptest
+++ b/meta-oe/recipes-devtools/jemalloc/files/run-ptest
@@ -5,13 +5,15 @@ for dir in tests/* ; do
5 cd $dir 5 cd $dir
6 for atest in * ; do 6 for atest in * ; do
7 if [ \( -x $atest \) -a \( -f $atest \) ] ; then 7 if [ \( -x $atest \) -a \( -f $atest \) ] ; then
8 ./$atest > ${atest}.stdout 2> ${atest}.stderr 8 rm -rf tests.log
9 if [ $? = 0 ] ; then 9 ./$atest > tests.log 2>&1
10 echo "PASS: $dir $atest" 10 sed -e '/: pass/ s/^/PASS: /g' \
11 rm ${atest}.stdout ${atest}.stderr 11 -e '/: skip/ s/^/SKIP: /g' \
12 else 12 -e '/: fail/ s/^/FAIL: /g' \
13 echo "FAIL: ${dir}/${atest}" 13 -e 's/: pass//g' \
14 fi 14 -e 's/: skip//g' \
15 -e 's/: fail//g' \
16 -e '/^--- pass:/d' tests.log
15 fi 17 fi
16 done 18 done
17 cd $saved_dir 19 cd $saved_dir