From df956a6dcdf79086517c7c956f1deb7824c222b7 Mon Sep 17 00:00:00 2001 From: Chong Lu Date: Fri, 6 Jun 2014 09:25:10 +0800 Subject: oprofile: Add PTEST regression testing to oprofile The commit changes the oe-core oprofile recipe by adding the PTEST interface, implementing do_compile_ptest() and do_install_ptest(). The install routine adds several files that only the regression tests require. Also, a patch is necessary to inhibit executing the tests on the build host and to point to the correct target directory for the libutil++ test 'file-manip-tests'. That test requires the recipe to set SRCDIR in the build environment instead of determining the value from build-time host paths as for a self-hosted build. (From OE-Core rev: ac5a9835075a04726a64dbd669b9c89270b23865) Signed-off-by: Dave Lerner Signed-off-by: Chong Lu Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-kernel/oprofile/oprofile/run-ptest | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta/recipes-kernel/oprofile/oprofile/run-ptest (limited to 'meta/recipes-kernel/oprofile/oprofile/run-ptest') diff --git a/meta/recipes-kernel/oprofile/oprofile/run-ptest b/meta/recipes-kernel/oprofile/oprofile/run-ptest new file mode 100644 index 0000000000..583ee1b8a8 --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile/run-ptest @@ -0,0 +1,18 @@ +#!/bin/bash +saved_dir=$PWD +for dir in */tests ; do + cd $dir + for atest in * ; do + if [ \( -x $atest \) -a \( -f $atest \) ] ; then + ./$atest > ${atest}.stdout 2> ${atest}.stderr + if [ $? = 0 ] ; then + echo "PASS: $dir $atest" + rm ${atest}.stdout ${atest}.stderr + else + echo "FAIL: ${dir}/${atest}" + fi + fi + done + cd $saved_dir +done + -- cgit v1.2.3-54-g00ecf