Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
locojaydev
committed
Jun 5, 2012
1 parent
acd1eaa
commit fcfaef8
Showing
4 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
|
||
import os, subprocess | ||
|
||
def parse_filename(l): | ||
ns = l.split(' ', 3)[-1].rsplit('/', 1)[0] | ||
return os.path.join('./test', *ns.split('.')) + '.clj' | ||
|
||
def process_error(fn, l, lines): | ||
lnum = int(l.rsplit(' ', 1)[-1].split(':')[-1]) | ||
|
||
message = lines.pop(0) | ||
|
||
print '%s:%d:%s' % (fn, lnum, message) | ||
|
||
return message | ||
|
||
if __name__ == '__main__': | ||
out = subprocess.check_output(r"cake test | perl -pe 's/\e\[?.*?[\@-~]//g'", shell=True) | ||
|
||
prev = "" | ||
fn = None | ||
lines = out.splitlines() | ||
while lines: | ||
l = lines.pop(0) | ||
if l.startswith('cake test ') and '/' in l: | ||
fn = parse_filename(l) | ||
|
||
if l.startswith('FAIL!'): | ||
prev = process_error(fn, l, lines) | ||
else: | ||
prev = l | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"============================================================================ | ||
"Compiler: Clojure (cake test) | ||
"Maintainer: Steve Losh <steve@stevelosh.com> | ||
"License: MIT/X11 | ||
"============================================================================ | ||
|
||
" if exists("current_compiler") | ||
" finish | ||
" endif | ||
let current_compiler = "clojure" | ||
|
||
let s:cpo_save = &cpo | ||
set cpo-=C"endif | ||
|
||
let &l:makeprg=fnameescape(globpath(&runtimepath, 'compiler/cake-test-wrapper.py')) | ||
|
||
setlocal errorformat=%f:%l:%m | ||
|
||
let &cpo = s:cpo_save | ||
unlet s:cpo_save |
This file contains 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
Submodule vundle
updated
from dd8356 to 59bff0