Bash script for improved c++ program testing