Save the output of 'make test' for later inspection

This commit is contained in:
Michael Hansen
2012-06-11 18:10:47 -07:00
parent 1faffc4a2e
commit cfbc806955
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@@ -16,3 +16,5 @@
/out/*.pdb
/out/BuildLog.htm
/bytes/*.cpp
/tests/*.pyc.err
/tests/*.pyc.src

View File

@@ -37,6 +37,7 @@ all: $(ALL)
clean:
rm -f $(COMMON) $(BYTE_OBJS) $(BYTE_SRCS)
rm -f tests/*.pyc.src tests/*.pyc.err
install:
mkdir -p $(PREFIX)/bin
@@ -48,7 +49,7 @@ test: all
errors=(); \
for f in ./tests/*.pyc; \
do \
stderr=$$( ./bin/pycdc "$$f" 2>&1 1>/dev/null ); \
stderr=$$( ./bin/pycdc "$$f" 2>$$f.err 1>$$f.src ); \
if [ "$$?" -eq "0" -a -z "$$stderr" ]; then \
echo -ne "\033[32m.\033[m"; \
else \