#!/bin/bash

. "$TF_DIR/include/subtest.sh"
. "$TF_DIR/include/tools.sh"

tf_enum_subtests() {
    echo fixed
    echo basic
    echo extended
#   echo perl       # TODO: write test
}

tf_name2cmd() {
    local name=$1
    local t_in="test/ALL.stdin"
    local o_out="oracle/$name.stdout"
    local args
    case $name in
        fixed)       args="-F 'The mask *.* matches all.'" ;;
        basic)       args="-G 'he.*'" ;;
        extended)    args="-P '.*og?g'" ;;
    esac
    echo "tf_testflt -n $name -i $t_in -O $o_out grep $args"
}

tf_do_subtests