1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. . "$TF_DIR/include/subtest.sh"
  3. . "$TF_DIR/include/tools.sh"
  4. tf_enum_subtests() {
  5. echo fixed
  6. echo basic
  7. echo extended
  8. # echo perl # TODO: write test
  9. }
  10. tf_name2cmd() {
  11. local name=$1
  12. local t_in="test/ALL.stdin"
  13. local o_out="oracle/$name.stdout"
  14. local args
  15. case $name in
  16. fixed) args="-F 'The mask *.* matches all.'" ;;
  17. basic) args="-G 'he.*'" ;;
  18. extended) args="-P '.*og?g'" ;;
  19. esac
  20. echo "tf_testflt -n $name -i $t_in -O $o_out grep $args"
  21. }
  22. tf_do_subtests