Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (17 sloc) 458 Bytes
#!/bin/sh
echo "\033[44;37;1mRunning OpenCOR's tests...\033[0m"
WMsg="OpenCOR's tests must first be built before being run."
if [ "`uname -s`" = "Linux" ]; then
if [ -f build/bin/runtests ]; then
build/bin/runtests
else
echo $WMsg
fi
else
if [ -f build/OpenCOR.app/Contents/MacOS/runtests ]; then
build/OpenCOR.app/Contents/MacOS/runtests
else
echo $WMsg
fi
fi
echo "\033[42;37;1mAll done!\033[0m"