| 1 | #!/bin/bash |
| 2 | # 'import perf' in python |
| 3 | # SPDX-License-Identifier: GPL-2.0 |
| 4 | # Just test if we can load the python binding. |
| 5 | |
| 6 | |
| 7 | shelldir= |
| 8 | # shellcheck source=lib/setup_python.sh |
| 9 | |
| 10 | |
| 11 | MODULE_DIR=/python |
| 12 | |
| 13 | if [ |
| 14 | then |
| 15 | CMD= |
| 16 | import sys |
| 17 | sys.path.insert(0, '') |
| 18 | import perf |
| 19 | print('success!') |
| 20 | EOF |
| 21 | ) |
| 22 | else |
| 23 | CMD= |
| 24 | import perf |
| 25 | print('success!') |
| 26 | EOF |
| 27 | ) |
| 28 | fi |
| 29 | |
| 30 | |
| 31 | |
| 32 | if ! | | |
| 33 | then |
| 34 | |
| 35 | fi |
| 36 |