mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
Test that JSON output produces valid JSON. Reviewed-by: Athira Jajeev <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
20 lines
327 B
Bash
Executable File
20 lines
327 B
Bash
Executable File
#!/bin/sh
|
|
# perf list tests
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
set -e
|
|
err=0
|
|
|
|
shelldir=$(dirname "$0")
|
|
# shellcheck source=lib/setup_python.sh
|
|
. "${shelldir}"/lib/setup_python.sh
|
|
|
|
test_list_json() {
|
|
echo "Json output test"
|
|
perf list -j | $PYTHON -m json.tool
|
|
echo "Json output test [Success]"
|
|
}
|
|
|
|
test_list_json
|
|
exit $err
|