Welcome to little lamb

Code » test-msb » next » tree

[next] / scripts / test

#!/bin/sh

if test $# -ne 1 || test $1 == "tst"; then
    echo "## Tests"
    echo
    i=0
    while test $i -lt 11; do
        printf '``` method-'$i
        time ./test$i
        echo '```'
        echo
        i=$(($i+1))
    done
fi

if test $# -ne 1 || test $1 == "alt"; then
    echo "## Alternative Tests"
    echo
    i=0
    while test $i -lt 11; do
        printf '``` method-'$i
        time ./test-alt$i
        echo '```'
        echo
        i=$(($i+1))
    done
fi