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

tests/Makefile: make snapshot_diff_current

parent ddd48c77
......@@ -26,11 +26,14 @@ test:
@echo
@echo "*** All tests passed. Congratulations !"
@echo
$(MAKE) -C algo/tests snapshot
$(MAKE) -C algo/tests snapshot_success
snapshot_diff:
$(MAKE) -C algo/tests snapshot_diff
snapshot_diff_current:
$(MAKE) -C algo/tests snapshot_diff_current
test_browser: unit_browser functional_browser
......
......@@ -25,6 +25,7 @@ SHOULD_VDJ_ARCHIVE:=$(filter-out $(addprefix should-vdj-tests/,$(EXCLUDE_SHOULD_
DATE=$(shell date +%Y-%m-%d--%H:%M:%S)
SNAPSHOTS_DIR=./snapshots
SNAPSHOT=$(SNAPSHOTS_DIR)/snapshot-log--$(DATE)
SNAPSHOT_CURRENT=$(SNAPSHOT)--current
.PHONY: all force clean forcedep
......@@ -40,14 +41,22 @@ all: core $(EXEC)
snapshot:
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
ln -s $(SNAPSHOT) snapshot-last
make snapshot_diff | diffstat -cC
# Diff between the two last succeeded snasphots
snapshot_diff:
-diff -u -I ".*20..-..-...*" snapshot-prev snapshot-last
# Diff between the last succeeded snasphot and the (possibly failed) current snapshot
snapshot_diff_current:
-make snapshot SNAPSHOT="$(SNAPSHOT_CURRENT)"
-diff -u -I ".*20..-..-...*" snapshot-last $(SNAPSHOT_CURRENT)
should: vidjil $(SHOULD_LOG)
shouldvdj_if_python:
......
Markdown is supported
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