Changeset e78bc78 in mod_gnutls for test/newtest


Ignore:
Timestamp:
Jan 26, 2015, 10:43:35 AM (5 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
302965e
Parents:
87208b5
Message:

Adjust test tools and documentation to split tests and moved test dir

Paths, descriptions and an error message were adjusted in README and
setup. A bigger change was needed in the "newtest" script, which now
creates a script for "make check" to call. This script is not
automatically added to the list of tests in Makefile.am, but the user is
advised to add it when ready.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/newtest

    r87208b5 re78bc78  
    1010
    1111    tname="${TEST_NAME// /_}"
    12     newname="$(printf "%02d_%s" "$(( $(ls -d tests/* | sed 's|^[^/]*/\([0-9]*\)_.*|\1|' | sort -n | tail -n 1 | sed s/^0//) + 1 ))" "$tname")"
     12    newnum="$(( $(ls -d tests/* | sed 's|^[^/]*/\([0-9]*\)_.*|\1|' | sort -n | tail -n 1 | sed s/^0//) + 1))"
     13    newname="$(printf "%02d_%s" "${newnum}" "$tname")"
    1314
    1415    read -p "your new test will be named tests/$newname.  OK [Y/n]? "
     
    2021cp -a tests/00_basic "tests/$newname"
    2122
    22 printf "You can now edit %s\n" "$newname"
     23# create run script for make check
     24newscript="test-${newname}.bash"
     25echo '#!/bin/bash' >"${newscript}"
     26echo "make -f TestMakefile t-${newnum}" >>"${newscript}"
     27chmod a+x "${newscript}"
     28
     29echo "You can now edit ${newname}."
     30echo "When ready, add ${newscript} to TESTS in Makefile.am."
Note: See TracChangeset for help on using the changeset viewer.