123456789101112131415161718192021222324252627282930
  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. mkdir lex
  18. touch lex/lexpfx-{foo,bar,baz}
  19. chmod +x lex/lexpfx-{foo,bar,baz}
  20. case $name in
  21. usage) tf_testflt -n "$name" -E "$o_err" -S 2 saturnin__main ;;
  22. esac
  23. }
  24. tf_do_subtests