We use https://github.com/lehmannro/assert.sh for the tests. To install it just do:
cd ~/bin
wget https://raw.githubusercontent.com/lehmannro/assert.sh/master/assert.sh
chmod u+x assert.sh
To run the tests, just run the test_suite.sh
# scp /Users/brandl/projects/kotlin/kscript/kscript bioinfo:/home/brandl/bin/test/kscript/kscript
#git clone https://github.com/holgerbrandl/kscript ; export KSCRIPT_HOME=$(pwd)/kscript
export KSCRIPT_HOME="/Users/brandl/projects/kotlin/kscript"
#export KSCRIPT_HOME="/cygdrive/z/kscript"
## change into this/test directory
## make sure to use devel-version
export PATH=${KSCRIPT_HOME}:${PATH}
which kscript
## make sure assert.h is in PATH
which assert.sh || exit 1
cd ${KSCRIPT_HOME}
## build it
./gradlew shadowJar
## clean up the environment
#sdk use kotlin 1.1-RC
kscript --clear-cache
${KSCRIPT_HOME}/test/test_suite.sh
# # run again with kotlin 1.0.X
# sdk use kotlin 1.0.6
# kscript --clear-cache
# ./test/test_suite.sh
export PATH=echo ${PATH} | awk -v RS=: -v ORS=: '/kscript/ {next} {print}'
For more examples see https://github.com/lehmannro/assert.sh/blob/master/tests.sh
How to modulate PATH?
## remove devel version from path
PATH=`echo $PATH | sed -e 's/:\/Users\/brandl\/projects\/kotlin\/kscript/$/g'`
which kscript
kscript --version
which resdeps.kts
kscript --clear-cache
kscript https://git.io/v1cG6 my argu ments