Changeset dcaba46 in mod_gnutls


Ignore:
Timestamp:
Nov 19, 2018, 2:37:26 AM (9 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
0020874
Parents:
0bed0a0
Message:

Fix newtest script

The generated test script now calls ./runtests instead of a no longer
existing Makefile, and newtest doesn't ask for a test name if one has
been passed on the command line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/newtest

    r0bed0a0 rdcaba46  
    77while [ "$confirmed" -eq 0 ]; do
    88
    9     read -e -p "describe your new test briefly: " -i "$tname" TEST_NAME
     9    if [ -z "${TEST_NAME}" ]; then
     10        read -e -p "describe your new test briefly: " -i "$tname" TEST_NAME
     11    fi
    1012
    1113    tname="${TEST_NAME// /_}"
     
    1315    newname="$(printf "%02d_%s" "${newnum}" "$tname")"
    1416
    15     read -p "your new test will be named tests/$newname.  OK [Y/n]? "
     17    read -p "your new test will be named tests/$newname. OK? [Y/n]"
    1618    if [ "$REPLY" == "" ] || [ "${REPLY/Y/y}" == "y" ]; then
    1719        confirmed=1
     
    2426newscript="test-${newname}.bash"
    2527echo '#!/bin/bash' >"${newscript}"
    26 echo "make -f TestMakefile t-${newnum}" >>"${newscript}"
     28echo "\${srcdir}/runtests t-${newnum}" >>"${newscript}"
    2729chmod a+x "${newscript}"
    2830
Note: See TracChangeset for help on using the changeset viewer.