![]() |
|
|||
File indexing completed on 2025-05-11 08:24:54
0001 #! /bin/sh 0002 # 0003 # RTEMS Tools Project (http://www.rtems.org/) 0004 # Copyright 2018 Chris Johns (chrisj@rtems.org) 0005 # All rights reserved. 0006 # 0007 # This file is part of the RTEMS Tools package in 'rtems-tools'. 0008 # 0009 # Redistribution and use in source and binary forms, with or without 0010 # modification, are permitted provided that the following conditions are met: 0011 # 0012 # 1. Redistributions of source code must retain the above copyright notice, 0013 # this list of conditions and the following disclaimer. 0014 # 0015 # 2. Redistributions in binary form must reproduce the above copyright notice, 0016 # this list of conditions and the following disclaimer in the documentation 0017 # and/or other materials provided with the distribution. 0018 # 0019 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 0020 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 0021 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 0022 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 0023 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 0024 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 0025 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 0026 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 0027 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 0028 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 0029 # POSSIBILITY OF SUCH DAMAGE. 0030 # 0031 0032 # 0033 # This script wraps python finding a suitable version to use. 0034 # 0035 base=$(dirname $0) 0036 PYTHON_CMD=${base}/rtems-test-check.py 0037 set -e 0038 if test ! -f $PYTHON_CMD; then 0039 echo "error: RTEMS Testsuite python command not found: $PYTHON_CMD" 0040 exit 5 0041 fi 0042 for py in python2 python3 python 0043 do 0044 set +e 0045 py_cmd=$(command -v $py) 0046 set -e 0047 if test -n "$RTEMS_PYTHON_OVERRIDE"; then 0048 if test "$RTEMS_PYTHON_OVERRIDE" != "$py"; then 0049 py_cmd="" 0050 fi 0051 fi 0052 if test -n "$py_cmd"; then 0053 exec $py_cmd $PYTHON_CMD $0 $* 0054 fi 0055 done 0056 echo "error: RTEMS Testsuite no valid python found" 0057 exit 5
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |