Commit c8af0633 authored by jhammen's avatar jhammen
Browse files

shell script to test examples

parent e83c886e
checkerr()
{
if [ "${1}" -ne "0" ]; then
echo "error ${1} on ${2}"
exit ${1}
fi
}
testex()
{
echo "testing ${1}..."
bipscriptd ${1}/${1}.bip
checkerr $? ${1}
}
testexo()
{
echo "testing ${1}..."
bipscriptd restart.bip
bipscriptd ${1}/${1}.bip
checkerr $? ${1}
}
testex "abctune"
testex "controlplugins"
testex "hellosquirrel"
testex "midipatterns"
testex "mixaudio"
testex "programchange"
testex "randomnumbers"
testex "schedulemethods"
testex "schedulenotes"
#testex "scheduleosc"
testex "jinglebee"
cd robotjazz
bipscriptd robotjazz.bip
checkerr $? "robotjazz"
cd ..
echo "ALL TESTS PASSED"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment