29 lines · 834 B · Shell
RawDownload
#!/bin/bash# SPDX-License-Identifier: GPL-2.0 if [ "x$PYTHON" = "x" ]then  python3 --version >/dev/null 2>&1 && PYTHON=python3fiif [ "x$PYTHON" = "x" ]then  python --version >/dev/null 2>&1 && PYTHON=pythonfiif [ "x$PYTHON" = "x" ]then  echo Skipping test, python not detected please set environment variable PYTHON.  exit 2fi # Set PYTHONPATH to find the in-tree built perf.so first, avoiding system-wide perf.soif [ -n "$PERF_EXEC_PATH" ] && [ -d "$PERF_EXEC_PATH/python" ]; then  PYTHONPATH_DIR="$PERF_EXEC_PATH/python"elif [ -d "$(dirname "$0")/../../python" ]; then  PYTHONPATH_DIR="$(dirname "$0")/../../python"elif [ -d "$(dirname "$0")/../python" ]; then  PYTHONPATH_DIR="$(dirname "$0")/../python"fi if [ -n "$PYTHONPATH_DIR" ]; then  export PYTHONPATH="$PYTHONPATH_DIR${PYTHONPATH:+:$PYTHONPATH}"fi

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t