Files
valgrind/tests/python_test.sh
Mark Wielaard 26ebac7b4c Add prereqs for tests using python 3.9+
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.
2024-04-24 21:30:48 +02:00

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