@cryptotaxi247 / kubo / commits / b0e251bda

Makefile: add test_all_commits

Juan Batiz-Benet committed Dec 8, 2014 at 20:38 UTC b0e251bda103d53ba995dbbff3972d6394583ec9
2 files changed +16
Makefile
+6
@@ -28,3 +28,9 @@ test_sharness:
28
29 test_sharness_expensive:
30 cd test/ && make TEST_EXPENSIVE=1
31 +
32 +test_all_commits:
33 + @echo "testing all commits between origin/master..HEAD"
34 + @echo "WARNING: this will 'git rebase --exec'."
35 + @test/bin/continueyn
36 + GIT_EDITOR=true git rebase -i --exec "make test" origin/master
test/bin/continueyn new
+10
@@ -0,0 +1,10 @@
1 +#!/bin/sh
2 +# Author: Juan Batiz-Benet <juan@benet.ai>
3 +# MIT LICENSED
4 +
5 +read -p "continue? [y/N] "
6 +echo
7 +if [[ $REPLY =~ ^[Yy]$ ]]; then
8 + exit 0
9 +fi
10 +exit -1