Skip to content

Commit

Permalink
More user friendly end message when running make test
Browse files Browse the repository at this point in the history
  • Loading branch information
leoisl committed Mar 30, 2023
1 parent dd16537 commit 768d768
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 768d768

Please sign in to comment.