diff --git a/Makefile b/Makefile index 66da412..656b70c 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,12 @@ test: ## Run everything but just with 3 batches to test full pipeline snakemake $(SMK_PARAMS) -j 99999 --config batches=data/batches_small.txt -- download # download is not benchmarked scripts/benchmark.py --log logs/benchmarks/test_match_$(DATETIME).txt "snakemake $(SMK_PARAMS) --config batches=data/batches_small.txt nb_best_hits=1 -- match" scripts/benchmark.py --log logs/benchmarks/test_map_$(DATETIME).txt "snakemake $(SMK_PARAMS) --config batches=data/batches_small.txt nb_best_hits=1 -- map" - diff -s <(gunzip --stdout output/reads_1___reads_2___reads_3___reads_4.sam_summary.gz | cut -f -3) <(xzcat data/reads_1___reads_2___reads_3___reads_4.sam_summary.xz | cut -f -3) + @if diff -q <(gunzip --stdout output/reads_1___reads_2___reads_3___reads_4.sam_summary.gz | cut -f -3) <(xzcat data/reads_1___reads_2___reads_3___reads_4.sam_summary.xz | cut -f -3); then\ + echo "Success! Test run produced the expected output.";\ + else\ + echo "WARNING: FAIL. Test run DID NOT produce the expected output.";\ + exit 1;\ + fi download: ## Download the 661k assemblies and COBS indexes, not benchmarked snakemake $(SMK_PARAMS) -j 99999 -- download