1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 if [ "x$PYTHON" = "x" ] 4 if [ "x$PYTHON" = "x" ] 5 then 5 then 6 python3 --version >/dev/null 2>&1 && PYTHON= 6 python3 --version >/dev/null 2>&1 && PYTHON=python3 7 fi 7 fi 8 if [ "x$PYTHON" = "x" ] 8 if [ "x$PYTHON" = "x" ] 9 then 9 then 10 python --version >/dev/null 2>&1 && PYTHON=p 10 python --version >/dev/null 2>&1 && PYTHON=python 11 fi 11 fi 12 if [ "x$PYTHON" = "x" ] 12 if [ "x$PYTHON" = "x" ] 13 then 13 then 14 echo Skipping test, python not detected plea 14 echo Skipping test, python not detected please set environment variable PYTHON. 15 exit 2 15 exit 2 16 fi 16 fi
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.