12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. . "$TF_DIR/include/subtest.sh"
  3. . "$TF_DIR/include/tools.sh"
  4. PRETTY=plain
  5. . "$(shellfu-get path)" || tf_exit_error "failed to init shellfu"
  6. shellfu import saturnin || tf_exit_error "failed to import saturnin"
  7. tf_enum_subtests() {
  8. echo usage
  9. }
  10. tf_do_subtest() {
  11. local name=$1
  12. local cmd
  13. local o_err="oracle/$name.stderr"
  14. SATURNIN_CACHE_HOME=chm
  15. SATURNIN_LIBEXEC=lex
  16. SATURNIN_LIBEXEC_PREFIX=lexpfx-
  17. PRETTY_USAGE=self=lexpfx
  18. mkdir lex
  19. touch lex/lexpfx-{foo,bar,baz}
  20. chmod +x lex/lexpfx-{foo,bar,baz}
  21. case $name in
  22. usage) tf_testflt -n "$name" -E "$o_err" -S 2 saturnin__main ;;
  23. esac
  24. }
  25. tf_do_subtests