mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
Adds a script tests/python_test.sh that checks whether there is a python3 binary and that it supports python version 3.9 or higher. Use this script in the various cachegrind/tests annotate vgtests as prereq.
10 lines
221 B
Bash
Executable File
10 lines
221 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# We need a python3 binary
|
|
type python3 2>/dev/null 1>/dev/null || exit 1
|
|
|
|
# And it needs to support at least version 3.9
|
|
python3 -c 'import sys; assert sys.version_info >= (3,9)' 2>/dev/null || exit 1
|
|
|
|
exit 0
|