3 # Compute the next available test id in a given test directory.
5 if [ $# != 1 ] || [ "$1" = "--help" ] || [ ! -d "tests/$1/" ]; then
6 echo "Usage: $0 test_dir"
15 while read found other_junk;
19 if [ "$id" != "$found" ]; then
23 done < <(cd "tests/$1/" ; ../../tools/mkgroupfile | \
24 grep "^$VALID_TEST_NAME\>" | tr - ' ')
26 if [ $eof -eq 1 ]; then