@@ -856,21 +856,6 @@ function run_section()
for ((ix = 0; ix < ${#_list[*]}; !${#loop_status[*]} && ix++)); do
seq="${_list[$ix]}"
- if [ ! -f $seq ]; then
- # Try to get full name in case the user supplied only
- # seq id and the test has a name. A bit of hassle to
- # find really the test and not its sample output or
- # helping files.
- bname=$(basename $seq)
- full_seq=$(find $(dirname $seq) -name $bname* -executable |
- awk '(NR == 1 || length < length(shortest)) { shortest = $0 }\
- END { print shortest }')
- if [ -f $full_seq ] && \
- [ x$(echo $bname | grep -o "^$VALID_TEST_ID") != x ]; then
- seq=$full_seq
- fi
- fi
-
# the filename for the test and the name output are different.
# we don't include the tests/ directory in the name output.
export seqnum=${seq#$SRC_DIR/}
@@ -2,11 +2,5 @@
# Valid test names start with 3 digits "NNN":
# "[0-9]\{3\}"
-# followed by an optional "-":
-# "-\?"
-# followed by an optional combination of alphanumeric and "-" chars:
-# "[[:alnum:]-]*"
-# e.g. 999-the-mark-of-fstests
-#
VALID_TEST_ID="[0-9]\{3\}"
-VALID_TEST_NAME="$VALID_TEST_ID-\?[[:alnum:]-]*"
+VALID_TEST_NAME="$VALID_TEST_ID"
@@ -50,30 +50,6 @@ export AWK_PROG="$(type -P awk)"
echo "Next test id is $id"
shift
-read -p "Append a name to the ID? Test name will be $id-\$name. y,[n]: " -r
-if [[ $REPLY = [Yy] ]]; then
- # get the new name from user
- name=""
- while [ "$name" = "" ]; do
- read -p "Enter the name: "
- if [ "$REPLY" = "" ]; then
- echo "For canceling, use ctrl+c."
- elif echo "$id-$REPLY" | grep -q "^$VALID_TEST_NAME$"; then
- if [ -e "$tdir/$id-$REPLY" ]; then
- echo "File '$id-$REPLY' already exists, use another one."
- echo
- else
- name="$REPLY"
- fi
- else
- echo "A name can contain only alphanumeric symbols and dash!"
- echo
- fi
- done
-
- id="$id-$name"
-fi
-
echo "Creating test file '$id'"
if [ -f $tdir/$id ]