Changeset 06ced25 in rtems


Ignore:
Timestamp:
Nov 7, 2018, 5:09:07 AM (12 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
0ac4a77
Parents:
947b679
git-author:
Chris Johns <chrisj@…> (11/07/18 05:09:07)
git-committer:
Chris Johns <chrisj@…> (11/08/18 23:20:00)
Message:

testsuite: Add python verison support to rtems-test-check.py

Closes #3579

Location:
testsuites
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/aclocal/rtems-test-check.m4

    r947b679 r06ced25  
    66 AC_REQUIRE([RTEMS_SOURCE_TOP])
    77 AC_MSG_CHECKING([${RTEMS_CPU}/${RTEMS_BSP} $1 test])
    8  tcheck="${RTEMS_SOURCE_ROOT}/testsuites/rtems-test-check.py"
     8 tcheck="${RTEMS_SOURCE_ROOT}/testsuites/rtems-test-check"
    99 tdata="${RTEMS_BSP}-testsuite.tcfg"
    1010 tincludes="${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/config:${RTEMS_SOURCE_ROOT}/testsuites"
  • testsuites/rtems-test-check.py

    r947b679 r06ced25  
    11#! /usr/bin/env python
    22#
    3 # Copyright 2017 Chris Johns <chrisj@rtems.org>
    4 # All rights reserved
     3# Copyright 2018 Chris Johns (chrisj@rtems.org)
     4# All rights reserved.
     5#
     6# This file is part of the RTEMS Tools package in 'rtems-tools'.
     7#
     8# Redistribution and use in source and binary forms, with or without
     9# modification, are permitted provided that the following conditions are met:
     10#
     11# 1. Redistributions of source code must retain the above copyright notice,
     12# this list of conditions and the following disclaimer.
     13#
     14# 2. Redistributions in binary form must reproduce the above copyright notice,
     15# this list of conditions and the following disclaimer in the documentation
     16# and/or other materials provided with the distribution.
     17#
     18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     19# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     20# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
     22# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     24# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     25# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     26# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     28# POSSIBILITY OF SUCH DAMAGE.
     29#
    530#
    631
     
    1035
    1136from __future__ import print_function
     37
    1238import os.path
    1339import sys
     
    2955# Arguments. Keep it simple.
    3056#
    31 if len(sys.argv) < 4:
     57sys_args = sys.argv[1:]
     58if len(sys_args) < 4:
    3259    eprint('error: invalid command line')
    3360    print('INVALID-TEST-DATA')
     
    3764args = 0
    3865
    39 if sys.argv[1] == '-v':
     66if sys_args[1] == '-v':
    4067    verbose = True
    4168    args = 1
    4269
    43 mode = sys.argv[args + 1]
    44 bsp = sys.argv[args + 2]
    45 includepaths = sys.argv[args + 4].split(':')
    46 testconfig = [find_testdata(includepaths, sys.argv[args + 3])]
    47 tests = sys.argv[args + 5:]
     70mode = sys_args[args + 1]
     71bsp = sys_args[args + 2]
     72includepaths = sys_args[args + 4].split(':')
     73testconfig = [find_testdata(includepaths, sys_args[args + 3])]
     74tests = sys_args[args + 5:]
    4875
    4976if verbose:
    50     eprint('cmd: %s' % (' '.join(sys.argv)))
     77    eprint('cmd: %s' % (' '.join(sys_args)))
    5178
    5279#
Note: See TracChangeset for help on using the changeset viewer.