Merge pull request #429 from jbenet/makefile-all-commits

Makefile: add test_all_commits
This commit is contained in:
Juan Batiz-Benet 2014-12-08 20:47:10 -08:00
commit c51b6db012
2 changed files with 16 additions and 0 deletions

View File

@ -28,3 +28,9 @@ test_sharness:
test_sharness_expensive:
cd test/ && make TEST_EXPENSIVE=1
test_all_commits:
@echo "testing all commits between origin/master..HEAD"
@echo "WARNING: this will 'git rebase --exec'."
@test/bin/continueyn
GIT_EDITOR=true git rebase -i --exec "make test" origin/master

10
test/bin/continueyn Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Author: Juan Batiz-Benet <juan@benet.ai>
# MIT LICENSED
read -p "continue? [y/N] "
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
exit 0
fi
exit -1