#!/bin/bash . "$TF_DIR/include/subtest.sh" . "$TF_DIR/include/tools.sh" tf_enum_subtests() { # # Enumerate tests to run # echo lsx_tricky echo lsv_tricky echo lsf_tricky echo direct_path echo included_path echo nonesuch echo empty echo naked echo simplest echo simple echo tricky } export SHELLFU_PATH=test/include tf_do_subtest() { # # Decode parts of test case name and compose test command # local name=$1 local cmd case $name in lsx_tricky) cmd="sfdoc --ls test/include/tricky.sh" ;; lsv_tricky) cmd="sfdoc --lsvar test/include/tricky.sh" ;; lsf_tricky) cmd="sfdoc --lsfun test/include/tricky.sh" ;; direct_path) cmd="sfdoc -e markdown test/other/path.sh" ;; included_path) cmd="sfdoc -I test/other -e markdown path" ;; *) cmd="sfdoc -e markdown $name" ;; esac tf_testflt -n "$name" -O "oracle/$name.stdout" -E "oracle/$name.stderr" "$cmd" } tf_do_subtests