xref: /linux/tools/perf/tests/shell/list.sh (revision 41fd3cacd29f47f6b9c6474b27c5b0513786c4e9)
1#!/bin/sh
2# perf list tests
3# SPDX-License-Identifier: GPL-2.0
4
5set -e
6err=0
7
8shelldir=$(dirname "$0")
9# shellcheck source=lib/setup_python.sh
10. "${shelldir}"/lib/setup_python.sh
11
12test_list_json() {
13  echo "Json output test"
14  perf list -j | $PYTHON -m json.tool
15  echo "Json output test [Success]"
16}
17
18test_list_json
19exit $err
20