Test post-commit hook for mirroring on github

This commit is contained in:
Rom Walton 2015-01-08 13:29:18 -05:00
parent a88c671310
commit 2a23035f3c
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
#!/usr/bin/env python
# $Id$
# Brute-force find at what point in time the automated tests stopped working.
# You better be using ccache!
# TODO: do a binary search instead of linear search.
range = ['2003-10-01', '2003-11-10']
import os, time
def ptime(t):
return time.mktime(time.strptime(t, '%Y-%m-%d'))
def doit(d):
print 'trying', d
dir = '/tmp/t.' + d
os.system('cvs co -D %s -d %s boinc' % (d,dir))
os.chdir(dir)
if 0 == os.system('./configure && make && cd test && ./test_uc.py'):
raise SystemExit('Woohoo! %s' %d)
range = map(ptime, range)
t = range[1]
tmin = range[0]
while t > tmin:
d = time.strftime('%Y-%m-%d', time.localtime(t))
doit(d)
t -= 86400