perf test: new testsuite: perf list tests
PATCH 5/9 perf test: new testsuite: perf list tests
This commit adds tests for perf list tool.
Signed-off-by Michael Petlan <[email protected]>
--- tools/perf/testsuite/base_list/cleanup.sh | 19 ++++++ tools/perf/testsuite/base_list/settings.sh | 15 +++++ tools/perf/testsuite/base_list/setup.sh | 20 +++++++ tools/perf/testsuite/base_list/test_basic.sh | 88 ++++++++++++++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100755 tools/perf/testsuite/base_list/cleanup.sh create mode 100644 tools/perf/testsuite/base_list/settings.sh create mode 100755 tools/perf/testsuite/base_list/setup.sh create mode 100755 tools/perf/testsuite/base_list/test_basic.sh
tools/perf/testsuite/base_list/cleanup.sh new file +19 -0
@@ -0,0 +1,19 @@ +#!/bin/bash + +# +# cleanup.sh of perf list test +# Author: Michael Petlan <[email protected]> +# +# + +# include working environment +. ../common/init.sh +. ./settings.sh + +THIS_TEST_NAME=`basename $0 .sh` + +find . -name \*.log | xargs -r rm +find . -name \*.err | xargs -r rm + +print_results 0 0 "clean-up logs" +exit $?
tools/perf/testsuite/base_list/settings.sh new file +15 -0
@@ -0,0 +1,15 @@ +# +# settings.sh of perf_list test +# Author: Michael Petlan <[email protected]> +# +# Description: +# FIXME +# +# + +export TEST_NAME="perf_list" +export MY_ARCH=`arch` +export MY_HOSTNAME=`hostname` +export MY_KERNEL_VERSION=`uname -r` +export MY_CPUS_ONLINE=`nproc` +export MY_CPUS_AVAILABLE=`cat /proc/cpuinfo | grep processor | wc -l`
tools/perf/testsuite/base_list/setup.sh new file +20 -0
@@ -0,0 +1,20 @@ +#!/bin/bash + +# +# setup.sh of perf list test +# Author: Michael Petlan <[email protected]> +# +# Description: +# +# FIXME - maybe the setup is not necessary +# +# + +# include working environment +. ../common/init.sh +. ./settings.sh + +THIS_TEST_NAME=`basename $0 .sh` + +print_overall_results 0 +exit $?
tools/perf/testsuite/base_list/test_basic.sh new file +88 -0
88 lines not on this page · raw message