Last active
December 14, 2015 16:41
-
-
Save gromero/d41432ac79519f3ca733 to your computer and use it in GitHub Desktop.
Fast and dirty way to verify the number of tests passing ok per commit 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 | |
# Passed tests go here. Make sure it exists and is clean. | |
if [ ! -d /tmp/hhvm_test_logs ]; then | |
mkdir /tmp/hhvm_test_logs | |
else | |
rm -f /tmp/hhvm_test_logs/* | |
fi | |
# Truncate to zero previous log. | |
>/tmp/hhvm-tests.logs | |
rm -f /tmp/tests-passed* | |
# Move to git repository | |
cd /home/gromero/git/hhvm/ | |
# Hash for "finonacci" tag | |
FIBONACCI_COMMIT=`git show-ref --tags fibonacci | cut -d ' ' -f1` | |
# Get all logs from fibonacci to most recent one. | |
# Filter just our commits. | |
# Checkout commit. Update submodules. Clean. Build. Test. Do it again. | |
for i in `git log ${FIBONACCI_COMMIT}^..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} | |
git submodule update --recursive | |
make clean all | |
make -j 12 | |
if [ $? == 0 ]; then | |
hphp/test/run hphp/test/quick/ -a -vEval.JitRelocationSize=0 | |
PASSED=`cat /tmp/tests-passed* | wc -l` | |
else | |
PASSED="build_failed" | |
fi | |
mv -v /tmp/tests-passed* /tmp/hhvm_tests_logs | |
rm -f /tmp/tests-passed* | |
echo "${i} ${PASSED}" >> /tmp/hhvm-tests.logs | |
done | |
# Go home ;-) | |
cd ~/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment