Skip to contentSkip to conversation

perf test: new testsuite: perf stat tests

PATCH In review Michael Petlan 1 participant 1 message Dec 7, 2015 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 8/9 perf test: new testsuite: perf stat tests

This commit adds tests for perf stat tool.

---
 tools/perf/testsuite/base_stat/cleanup.sh          | 21 +++++++
 tools/perf/testsuite/base_stat/settings.sh         | 10 ++++
 tools/perf/testsuite/base_stat/test_basic.sh       | 68 ++++++++++++++++++++++
 tools/perf/testsuite/base_stat/test_hw.sh          | 50 ++++++++++++++++
 tools/perf/testsuite/base_stat/test_hwcache.sh     | 51 ++++++++++++++++
 .../perf/testsuite/base_stat/test_intel_uncore.sh  | 46 +++++++++++++++
 .../testsuite/base_stat/test_powerpc_hv_24x7.sh    | 60 +++++++++++++++++++
 .../base_stat/test_tracepoints_definition.sh       | 60 +++++++++++++++++++
 8 files changed, 366 insertions(+)
 create mode 100755 tools/perf/testsuite/base_stat/cleanup.sh
 create mode 100644 tools/perf/testsuite/base_stat/settings.sh
 create mode 100755 tools/perf/testsuite/base_stat/test_basic.sh
 create mode 100755 tools/perf/testsuite/base_stat/test_hw.sh
 create mode 100755 tools/perf/testsuite/base_stat/test_hwcache.sh
 create mode 100755 tools/perf/testsuite/base_stat/test_intel_uncore.sh
 create mode 100755 tools/perf/testsuite/base_stat/test_powerpc_hv_24x7.sh
 create mode 100755 tools/perf/testsuite/base_stat/test_tracepoints_definition.sh
tools/perf/testsuite/base_stat/cleanup.sh new file +21 -0
new file mode 100755
index 0000000..29e1ae6
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+#
+#	cleanup.sh of perf stat test
+#	Author: Michael Petlan <[email protected]>
+#
+#	Description:
+#		FIXME
+#
+#
+
+. ../common/init.sh
+. ./settings.sh
+
+find . -name \*.log | xargs -r rm
+test -d hw && rmdir hw
+test -d hwcache && rmdir hwcache
+test -d hv24x7 && rmdir hv_24x7
+test -d intel_uncore && rmdir intel_uncore
+print_overall_results 0
+exit 0
tools/perf/testsuite/base_stat/settings.sh new file +10 -0
new file mode 100644
index 0000000..a92dd73
@@ -0,0 +1,10 @@
+#
+#	settings.sh of perf_stat test
+#	Author: Michael Petlan <[email protected]>
+#
+#	Description:
+#		FIXME
+#
+#
+
+export TEST_NAME="perf_stat"
tools/perf/testsuite/base_stat/test_basic.sh new file +68 -0

68 lines not on this page · raw message

tools/perf/testsuite/base_stat/test_hw.sh new file +50 -0

50 lines not on this page · raw message

tools/perf/testsuite/base_stat/test_hwcache.sh new file +51 -0

51 lines not on this page · raw message

tools/perf/testsuite/base_stat/test_intel_uncore.sh new file +46 -0

46 lines not on this page · raw message

tools/perf/testsuite/base_stat/test_powerpc_hv_24x7.sh new file +60 -0

60 lines not on this page · raw message

tools/perf/testsuite/base_stat/test_tracepoints_definition.sh new file +60 -0

60 lines not on this page · raw message