Skip to content

Instantly share code, notes, and snippets.

@gromero
Created December 14, 2015 13:58
Show Gist options
  • Save gromero/564e8eb2c04ae021a215 to your computer and use it in GitHub Desktop.
Save gromero/564e8eb2c04ae021a215 to your computer and use it in GitHub Desktop.
Bash script outline to verify number of passed tests since fibonacci tag
#/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