Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 66 lines (51 sloc) 1.177 kb
#!/usr/bin/env zsh
__sm.cli.test.help()
{
printf "%b" "
Helper for testing SM Framework and extensions.
Usage - help:
sm test [help]
Usage - testing sm (has to be run from sm root):
#!/usr/bin/env zsh
eval \$( ./local test sm [module/to/include ...] )
Usage - testing extension sets (has to be run from set root):
#!/usr/bin/env zsh
eval \$( sm test set [module/to/include ...] )
Usage - testing extensions (has to be run from extensions root):
#!/usr/bin/env zsh
eval \$( sm test ext [module/to/include ...] )
"
}
__sm.cli.test.sm()
{
printf "%b" "
pushd \"$sm_path\" >/dev/null ;
export sm_script=/ ;
source ./local ;
__sm.log.fail() { __sm.log.fail.no_exit \"\$@\" ; return 121 ; } ;
__sm.log.error() { __sm.log.error.no_exit \"\$@\" ; return 122 ; } ;
set -o NO_ERR_EXIT ERR_RETURN ;
trap - USR2 ;
trap - ZERR ;
popd >/dev/null ;
"
while (( $# ))
do
printf "%b" "includes \"$1\" ;\n"
shift
done
}
__sm.cli.test.extension()
{
printf "%b" "
export extensions_search_paths_here=\"\$PWD\";
"
__sm.cli.test.sm "$@"
printf "%b" "
initial_pwd=\"\$PWD\";
"
}
__sm.cli.test.set()
{
__sm.cli.test.extension "$@"
}
Jump to Line
Something went wrong with that request. Please try again.