Skip to content

Instantly share code, notes, and snippets.

@jbeezley
Created April 9, 2015 21:12
Show Gist options
  • Save jbeezley/ecdf5ba61f1b16a5ff8c to your computer and use it in GitHub Desktop.
Save jbeezley/ecdf5ba61f1b16a5ff8c to your computer and use it in GitHub Desktop.
#!/bin/bash
eval "$(pyenv init -)"
stat=0
for d in build-gaia* ; do
pushd $d > /dev/null
echo "Testing $d..."
python --version
cmake .. &> configure.log && make &> make.log && ctest -VV -j4 &> test.log
if [ "$?" -ne "0" ] ; then
echo "Tests failed in $d"
((stat++))
fi
popd > /dev/null
done
if [[ "$stat" -eq 0 ]] ; then
echo "All tests passed!"
else
echo "$stat build(s) failed!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment