Changeset 56056de in mod_gnutls for test/runtests


Ignore:
Timestamp:
Jul 23, 2015, 11:33:52 AM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
5d85ad3
Parents:
98ab9db
Message:

Test suite: Let runtests require a test ID

The Automake test harness calls each test case separately, so handling
multiple tests simultaneously isn't needed any more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r98ab9db r56056de  
    77set -e
    88
    9 tests="${1##t-}"
     9testid="${1##t-}"
     10
     11if [ -z "$testid" ] ; then
     12    echo -e "No test case selected.\nUsage: ${0} t-N" >&2
     13    exit 1
     14else
     15    testid=${srcdir}/tests/"$(printf "%02d" "$testid")"_*
     16fi
    1017
    1118if [ -n "${TEST_LOCK}" ]; then
     
    111118    fi
    112119}
    113 
    114 if [ -z "$tests" ] ; then
    115     tests=${srcdir}/tests/*
    116 else
    117     tests=${srcdir}/tests/"$(printf "%02d" "$tests")"_*
    118 fi
    119120
    120121if [ -n "${USE_MSVA}" ]; then
     
    150151fi
    151152
    152 for t in $tests; do
     153for t in $testid; do
    153154    if [ -z "${flock_cmd}" ]; then
    154155        echo "Warning: no lock file set"
Note: See TracChangeset for help on using the changeset viewer.