|
@@ -17,7 +17,8 @@ _run() {
|
|
|
zargs=""
|
|
zargs=""
|
|
|
local OPTIND
|
|
local OPTIND
|
|
|
OPTIND=1
|
|
OPTIND=1
|
|
|
- while getopts "_xurtcinsvgzmefdl" flag
|
|
|
|
|
|
|
+ # "_xurtcinsvgzmefdl" === "_cdefgilmnrtsuvxz"
|
|
|
|
|
+ while getopts "_cdefgilmnrtsuvwxz" flag
|
|
|
do
|
|
do
|
|
|
case "x$flag" in
|
|
case "x$flag" in
|
|
|
'xr') ;;
|
|
'xr') ;;
|
|
@@ -29,6 +30,7 @@ _run() {
|
|
|
'xz') zargs="$zargs -tr" ;;
|
|
'xz') zargs="$zargs -tr" ;;
|
|
|
'xm') zargs="$zargs -tm" ;;
|
|
'xm') zargs="$zargs -tm" ;;
|
|
|
'xl') zargs="$zargs -tl" ;;
|
|
'xl') zargs="$zargs -tl" ;;
|
|
|
|
|
+ 'xw') zargs="$zargs -tx=10" ;;
|
|
|
*) ;;
|
|
*) ;;
|
|
|
esac
|
|
esac
|
|
|
done
|
|
done
|
|
@@ -37,7 +39,7 @@ _run() {
|
|
|
# echo ">>>>>>> TAGS: $ztags"
|
|
# echo ">>>>>>> TAGS: $ztags"
|
|
|
|
|
|
|
|
OPTIND=1
|
|
OPTIND=1
|
|
|
- while getopts "_xurtcinsvgzmefdl" flag
|
|
|
|
|
|
|
+ while getopts "_cdefgilmnrtsuvwxz" flag
|
|
|
do
|
|
do
|
|
|
case "x$flag" in
|
|
case "x$flag" in
|
|
|
'xt') printf ">>>>>>> REGULAR : "; go test "-tags=$ztags" $zargs ; sleep 2 ;;
|
|
'xt') printf ">>>>>>> REGULAR : "; go test "-tags=$ztags" $zargs ; sleep 2 ;;
|
|
@@ -63,6 +65,7 @@ if [[ "x$@" = "x" || "x$@" = "x-A" ]]; then
|
|
|
# All: r, x, g, gu
|
|
# All: r, x, g, gu
|
|
|
_run "-_tcinsed_ml" # regular
|
|
_run "-_tcinsed_ml" # regular
|
|
|
_run "-_tcinsed_ml_z" # regular with reset
|
|
_run "-_tcinsed_ml_z" # regular with reset
|
|
|
|
|
+ _run "-w_tcinsed_ml" # regular with max init len
|
|
|
_run "-_tcinsed_ml_f" # regular with no fastpath (notfastpath)
|
|
_run "-_tcinsed_ml_f" # regular with no fastpath (notfastpath)
|
|
|
_run "-x_tcinsed_ml" # external
|
|
_run "-x_tcinsed_ml" # external
|
|
|
_run "-gx_tcinsed_ml" # codecgen: requires external
|
|
_run "-gx_tcinsed_ml" # codecgen: requires external
|
|
@@ -79,6 +82,7 @@ elif [[ "x$@" = "x-C" ]]; then
|
|
|
# codecgen
|
|
# codecgen
|
|
|
_run "-gx_tcinsed_ml" # codecgen: requires external
|
|
_run "-gx_tcinsed_ml" # codecgen: requires external
|
|
|
_run "-gxu_tcinsed_ml" # codecgen + unsafe
|
|
_run "-gxu_tcinsed_ml" # codecgen + unsafe
|
|
|
|
|
+ _run "-gxuw_tcinsed_ml" # codecgen + unsafe + maxinitlen
|
|
|
elif [[ "x$@" = "x-X" ]]; then
|
|
elif [[ "x$@" = "x-X" ]]; then
|
|
|
# external
|
|
# external
|
|
|
_run "-x_tcinsed_ml" # external
|
|
_run "-x_tcinsed_ml" # external
|
|
@@ -98,5 +102,6 @@ Usage: tests.sh [options...]
|
|
|
just pass on the options from the command line
|
|
just pass on the options from the command line
|
|
|
EOF
|
|
EOF
|
|
|
else
|
|
else
|
|
|
|
|
+ # e.g. ./tests.sh "-w_tcinsed_ml"
|
|
|
_run "$@"
|
|
_run "$@"
|
|
|
fi
|
|
fi
|