Created
December 14, 2015 13:58
-
-
Save gromero/564e8eb2c04ae021a215 to your computer and use it in GitHub Desktop.
Bash script outline to verify number of passed tests since fibonacci tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
if [ ! -d /tmp/hhvm_test_logs ]; then | |
mkdir /tmp/hhvm_test_logs | |
fi | |
>/tmp/hhvm-tests.logs | |
rm -f /tmp/tests-passed* | |
cd /home/gromero/git/hhvm/ | |
#COMMIT=`git log --oneline -1 | cut -d' ' -f1` | |
#echo "Inspecting commit ${COMMIT}..." | |
FIBONACCI_COMMIT=`git show-ref --tags fibonacci | cut -d ' ' -f1` | |
#for i in `git log ${FIBONACCI_COMMIT}..HEAD --oneline | cut -d ' ' -f1 | xargs`; | |
for i in `git log 549233c13bb6891bcbd066c9b20571891f59403a^..HEAD --reverse --pretty=format:"%h %ae" | gawk '/gustavo.scalet|leonardo.bianconi|igor.nunes|gromero|rogealve/ {print $1}'` | |
do | |
echo Inspecting commit ${i} | |
git checkout ${i} | |
make -j 12 | |
hphp/test/run hphp/test/quick/ | |
PASSED=`cat /tmp/tests-passed* | wc -l` | |
rm -f /tmp/tests-passed* | |
echo "${i} ${PASSED}" >> /tmp/hhvm-tests.logs | |
done | |
git checkout next | |
cd ~/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment