Commit 966f0597 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

tests/Makefile: make snapshot_diff_current

parent ddd48c77
...@@ -26,11 +26,14 @@ test: ...@@ -26,11 +26,14 @@ test:
@echo @echo
@echo "*** All tests passed. Congratulations !" @echo "*** All tests passed. Congratulations !"
@echo @echo
$(MAKE) -C algo/tests snapshot $(MAKE) -C algo/tests snapshot_success
snapshot_diff: snapshot_diff:
$(MAKE) -C algo/tests snapshot_diff $(MAKE) -C algo/tests snapshot_diff
$(MAKE) -C algo/tests snapshot_diff_current
test_browser: unit_browser functional_browser test_browser: unit_browser functional_browser
...@@ -25,6 +25,7 @@ SHOULD_VDJ_ARCHIVE:=$(filter-out $(addprefix should-vdj-tests/,$(EXCLUDE_SHOULD_ ...@@ -25,6 +25,7 @@ SHOULD_VDJ_ARCHIVE:=$(filter-out $(addprefix should-vdj-tests/,$(EXCLUDE_SHOULD_
DATE=$(shell date +%Y-%m-%d--%H:%M:%S) DATE=$(shell date +%Y-%m-%d--%H:%M:%S)
SNAPSHOTS_DIR=./snapshots SNAPSHOTS_DIR=./snapshots
.PHONY: all force clean forcedep .PHONY: all force clean forcedep
...@@ -40,14 +41,22 @@ all: core $(EXEC) ...@@ -40,14 +41,22 @@ all: core $(EXEC)
snapshot: snapshot:
mkdir -p $(SNAPSHOTS_DIR) mkdir -p $(SNAPSHOTS_DIR)
grep . out-*.log should-get-tests/*.log should-vdj-tests/*.log > $(SNAPSHOT) grep --no-messages . out-*.log should-get-tests/*.log should-vdj-tests/*.log > $(SNAPSHOT)
snapshot_success: snapshot
touch snapshot-last ; mv snapshot-last snapshot-prev touch snapshot-last ; mv snapshot-last snapshot-prev
ln -s $(SNAPSHOT) snapshot-last ln -s $(SNAPSHOT) snapshot-last
make snapshot_diff | diffstat -cC make snapshot_diff | diffstat -cC
# Diff between the two last succeeded snasphots
snapshot_diff: snapshot_diff:
-diff -u -I ".*20..-..-...*" snapshot-prev snapshot-last -diff -u -I ".*20..-..-...*" snapshot-prev snapshot-last
# Diff between the last succeeded snasphot and the (possibly failed) current snapshot
-diff -u -I ".*20..-..-...*" snapshot-last $(SNAPSHOT_CURRENT)
should: vidjil $(SHOULD_LOG) should: vidjil $(SHOULD_LOG)
shouldvdj_if_python: shouldvdj_if_python:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment